/*********************************************************
    CSS VARIABLES - Matching Pick My Bot Design
*********************************************************/
:root {
    /* Colors from the Next.js app */
    --primary: #3b82f6; /* blue-500 */
    --primary-dark: #1e40af; /* blue-800 */
    --accent: #06b6d4; /* cyan-500 */
    --brand-teal: #00A7B5; /* exact teal from mockup */
    --brand-dark-blue: #003C5A; /* exact dark blue from mockup */
    --brand-orange: #FF7A00; /* exact orange from mockup */
    
    /* Grays */
    --background: #ffffff;
    --muted-background: #f8fafc; /* slate-50 */
    --muted: #64748b; /* slate-500 */
    --muted-foreground: #64748b; /* slate-500 */
    --foreground: #0f172a; /* slate-900 */
    --border: #e2e8f0; /* slate-200 */
    
    /* Typography */
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-spacing: 5rem;
    --section-spacing-sm: 3rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/*********************************************************
    GLOBAL STYLES
*********************************************************/
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/*********************************************************
    TYPOGRAPHY
*********************************************************/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--foreground);
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 800;
}

h3 {
    font-size: 1.875rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    margin: 0 0 1rem 0;
    line-height: 1.75;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/*********************************************************
    UTILITY CLASSES
*********************************************************/
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--brand-dark-blue) !important;
}

.text-accent {
    color: var(--primary) !important;
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.section-spacing {
    padding: var(--section-spacing) 0;
}

.section-spacing-sm {
    padding: var(--section-spacing-sm) 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/*********************************************************
    MODERN HEADER & NAVIGATION
*********************************************************/

/* Modern Header */
.modern-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10000;
    transition: all 0.3s ease;
}

/* Override any default site-header styles */
.site-header.modern-header {
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 0 !important;
}

.modern-header .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.modern-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding: 1rem 0;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    height: 48px;
}

/* WordPress Custom Logo - High specificity */
.modern-header .header-logo .custom-logo-link .custom-logo,
.modern-header .header-logo .custom-logo-link img,
.modern-header .header-logo .custom-logo {
    height: 3 rem !important;
    width: auto !important;
    max-width: 140px !important;
    max-height: 3 rem !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

/* Custom Logo Image */
.modern-header .header-logo .logo-link .logo-image,
.modern-header .logo-image {
    height: 3 rem !important;
    width: auto !important;
    max-width: 140px !important;
    max-height: 3 rem !important;
    object-fit: contain !important;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 48px;
}

.logo-fallback {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
}

/* Main Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: flex;
        align-items: center;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

/* Mega Menu */
.mega-menu-item:hover .nav-link i,
.mega-menu-item.active .nav-link i {
    transform: rotate(180deg);
}

.mega-menu-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 1000px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
    margin-top: 0.5rem;
}

.mega-menu-item:hover .mega-menu-content,
.mega-menu-item.active .mega-menu-content {
    opacity: 1;
    visibility: visible;
}

.mega-menu-inner {
    padding: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 3rem;
}

.category-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--foreground);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
    flex-wrap: nowrap;
}

.category-header:hover {
    color: var(--primary);
}

.category-icon {
    color: var(--brand-teal);
    font-size: 1rem;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-name {
    font-size: 0.9rem;
    line-height: 1.2;
    flex: 1;
}

.subcategory-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.subcategory-link {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.subcategory-link:hover {
    color: var(--primary);
}

.mega-menu-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.browse-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.browse-all-btn:hover {
    background: var(--muted-background);
    color: var(--primary);
}

.browse-all-btn i {
    font-size: 0.8rem;
}

/* Dropdown Menu */
.dropdown-item:hover .nav-link i,
.dropdown-item.active .nav-link i {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item:hover .dropdown-content,
.dropdown-item.active .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-link:hover {
    background: var(--muted-background);
    color: var(--primary);
    text-decoration: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-button:hover {
    background: var(--muted-background);
    color: var(--foreground);
}

.cta-button {
    display: none;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--brand-orange);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 0 !important;
}

@media (min-width: 768px) {
    .cta-button {
        display: flex;
    }
}

.cta-button:hover {
    background: #e56600;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* Hide dropdown chevrons in navigation */
.main-navigation .nav-link i {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 4px;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
    display: none; /* prevent desktop overflow & scroll */
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.mobile-logo-image {
    height: 28px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--muted-background);
    color: var(--foreground);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-cta {
    margin-top: auto;
    padding-top: 2rem;
}

.mobile-cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--brand-orange);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 0 !important;
}

.mobile-cta-button:hover {
    background: #e56600;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Force-hide mobile drawer on desktop even if toggled by JS */
@media (min-width: 1024px) {
    .mobile-menu,
    .mobile-menu-backdrop {
        display: none !important;
        right: -100% !important;
        left: auto !important;
    }
}

/* Responsive Mega Menu */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 2rem;
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .mega-menu-inner {
        padding: 1.5rem;
    }
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    .modern-header .header-content {
        min-height: 70px;
        padding: 0.75rem 0;
    }
    
    .header-logo {
        margin-right: 1rem;
        height: 42px;
    }
    
    .modern-header .header-logo .custom-logo-link .custom-logo,
    .modern-header .header-logo .custom-logo-link img,
    .modern-header .header-logo .custom-logo,
    .modern-header .header-logo .logo-link .logo-image,
    .modern-header .logo-image {
        height: 28px !important;
        max-width: 120px !important;
        max-height: 28px !important;
    }
}

@media (max-width: 480px) {
    .modern-header .container {
        padding: 0 0.75rem !important;
    }
    
    .modern-header .header-content {
        min-height: 64px;
        padding: 0.5rem 0;
    }
}

/*********************************************************
    HERO SECTION
*********************************************************/
.hero-section {
    padding: 4rem 0 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    margin-top: 2rem;
}

/*********************************************************
    SEARCH STYLES
*********************************************************/
.search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--background);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    font-size: 1rem;
}

.search-submit {
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/*********************************************************
    SEARCH MODAL
*********************************************************/
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    background: var(--background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    margin: 0 1rem;
}

.search-modal-header {
    padding: 2rem 2rem 1rem 2rem;
    position: relative;
}

.search-modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.875rem;
}

.search-modal-header p {
    margin: 0;
    color: var(--muted-foreground);
}

.search-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
}

.search-modal-body {
    padding: 0 2rem 2rem 2rem;
}

/*********************************************************
    SECTION STYLES
*********************************************************/
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.featured-tools-section {
    padding: 5rem 0;
}

.categories-section {
    padding: 5rem 0;
}

.why-choose-section {
    padding: 5rem 0;
    background: var(--muted-background);
}

.testimonials-section {
    padding: 5rem 0;
}

/*********************************************************
    CARD STYLES
*********************************************************/
.tool-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-logo {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0.5rem;
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--foreground);
}

.tool-tagline {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}

.tool-category {
    display: inline-block;
    background: var(--muted-background);
    color: var(--muted-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tool-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-pricing {
    font-weight: 600;
    color: var(--primary);
}

/*********************************************************
    STAR RATING
*********************************************************/
.star-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star-rating .fas,
.star-rating .far {
    color: #fbbf24; /* amber-400 */
    font-size: 0.875rem;
}

.rating-number {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

/*********************************************************
    FEATURE CARDS
*********************************************************/
.feature-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/*********************************************************
    TESTIMONIAL CARDS
*********************************************************/
.testimonial-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--foreground);
}

.author-title {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/*********************************************************
    FAQ SECTION
*********************************************************/
.faq-section {
    padding: 5rem 0;
    background: var(--muted-background);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: var(--muted-background);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/*********************************************************
    FOOTER STYLES
*********************************************************/
.site-footer {
    background: var(--foreground);
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo .custom-logo-link {
    display: inline-block;
    height: 60px;
    line-height: 1;
    margin-bottom: 1rem;
}

.footer-logo .custom-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.footer-description {
    color: #cbd5e1; /* slate-300 */
    line-height: 1.6;
}

.footer-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1; /* slate-300 */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #cbd5e1;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: white;
    text-decoration: none;
}

/*********************************************************
    NOTIFICATION SYSTEM
*********************************************************/
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10050;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateX(100%);
    animation: slideIn 0.3s ease-out forwards;
}

.notification.fade-out {
    animation: slideOut 0.3s ease-in forwards;
}

.notification-success {
    border-left: 4px solid #10b981; /* green-500 */
    background: #f0fdf4; /* green-50 */
    color: #065f46; /* green-800 */
}

.notification-error {
    border-left: 4px solid #ef4444; /* red-500 */
    background: #fef2f2; /* red-50 */
    color: #991b1b; /* red-800 */
}

.notification-warning {
    border-left: 4px solid #f59e0b; /* amber-500 */
    background: #fffbeb; /* amber-50 */
    color: #92400e; /* amber-800 */
}

.notification-info {
    border-left: 4px solid var(--primary);
    background: #eff6ff; /* blue-50 */
    color: #1e40af; /* blue-800 */
}

.notification-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ----------------- Roundup Feature Styles ----------------- */
.roundup-feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.roundup-feature {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--background);
    box-shadow: var(--shadow-sm);
}

.roundup-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.roundup-feature__placeholder { height: 100%; min-height: 220px; background: var(--muted-background); border-radius: var(--radius); border: 1px solid var(--border); }

.roundup-feature__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.roundup-feature__logo { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border); padding: 6px; background: #fff; }
.roundup-feature__title h3 { margin: 0; font-size: 1.25rem; }
.roundup-feature__pricing { margin-left: 0.5rem; font-weight: 600; color: var(--primary); }
.roundup-feature__intro { margin: 0.25rem 0 0.75rem 0; color: var(--muted-foreground); line-height: 1.6; }
.roundup-feature__lists { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.roundup-feature__lists h4 { margin: 0 0 0.25rem 0; font-size: 1rem; }
.roundup-feature__lists ul { margin: 0; padding-left: 0; }
.roundup-feature__lists .icon-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.25rem 1rem; }
.roundup-feature__lists li { margin: 0; }
.roundup-feature__body { display: flex; flex-direction: column; }
.roundup-feature__ctas { display: flex; gap: 0.9rem; margin-top: auto; justify-content: flex-end; }
.roundup-feature__ctas .btn { text-decoration: none; border-radius: 6px; padding: 0.65rem 1.1rem; font-weight: 700; font-size: 1rem; }
.roundup-feature__ctas .btn-primary { background: var(--brand-orange); color: #fff; }
.roundup-feature__ctas .btn-primary:hover { background: #e56600; color: #fff; }
.roundup-feature__ctas .btn-primary { border: 0 !important; }
.roundup-feature__ctas .btn-primary:focus,
.roundup-feature__ctas .btn-primary:focus-visible,
.roundup-feature__ctas .btn-primary:active { outline: none; box-shadow: none; }
.roundup-feature__ctas .btn-secondary { background: var(--primary); color: #fff; border: none; }
.roundup-feature__ctas .btn-secondary:hover { background: var(--primary-dark); color: #fff; }

/* Global icon-list styles (shared with single tool template) */
.icon-list { list-style: none; padding: 0; margin: 0 0 1.1rem 0; }
.icon-list-item { display: flex; align-items: flex-start; gap: .5rem; padding: .3rem 0; }
.icon-list-item i { margin-top: .15rem; }
.icon-list-features i { color: var(--brand-teal); }
.icon-list-pros i { color: #16a34a; }
.icon-list-cons i { color: #ef4444; }

@media (max-width: 900px) {
  .roundup-feature { grid-template-columns: 1fr; }
  .roundup-feature__lists .icon-list { grid-template-columns: 1fr; }
}

/* How we choose card */
.criteria-card {
  max-width: 860px;
  margin: 0 auto 1.25rem auto;
  padding: 1rem 1.25rem;
  background: var(--muted-background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.criteria-card__title { font-weight: 700; margin-bottom: 0.5rem; display:flex; align-items:center; gap:0.5rem; }
.criteria-card__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.35rem 1rem; }
.criteria-card__list li { position: relative; padding-left: 1.1rem; }
.criteria-card__list li:before { content: "\2713"; color: var(--brand-teal); position: absolute; left: 0; top: 0; }
@media (max-width: 700px) { .criteria-card__list { grid-template-columns: 1fr; } }

/* ----------------- Button Focus/Outline Reset (remove blue borders) ----------------- */
button:focus,
button:focus-visible,
button:active,
input[type="button"]:focus,
input[type="submit"]:focus,
.btn:focus,
.btn:focus-visible,
.btn:active,
.btn-check:focus + .btn,
.btn-chip:focus,
.cta-button:focus,
.mobile-cta-button:focus,
.search-submit:focus,
.mobile-menu-close:focus,
.search-button:focus,
.submit-review-btn-modern:focus,
.notification-close:focus {
  outline: none !important;
  box-shadow: none !important;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/*********************************************************
    FORM VALIDATION STYLES
*********************************************************/
.field-error {
    color: #ef4444; /* red-500 */
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

input.error,
textarea.error,
select.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgb(239 68 68 / 0.1) !important;
}

/*********************************************************
    RESPONSIVE DESIGN
*********************************************************/
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    /* Mobile notification adjustments */
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-submit {
        width: 100%;
        justify-content: center;
    }
}

/*********************************************************
    MODERN REVIEWS & RATINGS
*********************************************************/

/* Modern Rating Summary - Matching Mockup */
.rating-summary-modern {
    margin-bottom: 2rem;
}

.rating-breakdown-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.rating-number {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--foreground);
    min-width: 12px;
    text-align: left;
}

.star-icon {
    color: #fbbf24;
    font-size: 1rem;
    min-width: 16px;
    width: 16px;
    height: 16px;
}

.bar-container-modern {
    flex: 1;
    height: 16px;
    background-color: var(--brand-dark-blue);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.bar-fill-modern {
    height: 100%;
    background: var(--brand-teal);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.rating-count-modern {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    min-width: 20px;
    text-align: right;
    font-weight: 400;
}

/* Modern Review Form - Card Style like Mockup */
.review-form-container-modern {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.review-form-container-modern h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 0.375rem 0;
    line-height: 1.2;
}

.review-form-subtitle {
    color: var(--muted-foreground);
    margin: 0 0 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.review-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group-modern label {
    font-weight: 500;
    color: var(--foreground);
    font-size: 0.875rem;
}

.form-group-modern input[type="text"],
.form-group-modern input[type="email"],
.form-group-modern textarea {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--background);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-group-modern input[type="text"]:focus,
.form-group-modern input[type="email"]:focus,
.form-group-modern textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgb(59 130 246 / 0.1);
}

.form-group-modern textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Modern Star Rating Input - Matching Mockup */
.rating-input-modern {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    justify-content: flex-end;
}

.rating-input-modern input[type="radio"] {
    display: none;
}

.rating-input-modern .star-label {
    font-size: 1.5rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    user-select: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-input-modern .star-label:hover {
    color: #fbbf24;
    transform: scale(1.05);
}

.rating-input-modern input[type="radio"]:checked ~ .star-label,
.rating-input-modern .star-label:hover ~ .star-label {
    color: #fbbf24;
}

/* Submit Button - Orange Accent like Mockup */
.submit-review-btn-modern {
    background: var(--brand-orange);
    color: white;
    border: 0 !important;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
    line-height: 1.25;
}

.submit-review-btn-modern:hover {
    background: #e56b00;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.submit-review-btn-modern:active {
    background: #cc5f00;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-row-modern {
        grid-template-columns: 1fr;
    }
    
    .rating-breakdown-modern {
        max-width: 100%;
    }
    
    .review-form-container-modern {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .bar-container-modern {
        min-height: 16px;
    }
    
    .rating-bar-modern {
        gap: 0.375rem;
    }
    
    .rating-input-modern .star-label {
        font-size: 1.25rem;
        width: 20px;
        height: 20px;
    }
} 