/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Amazon Inspired */
    --bg-primary: #0F1111;
    --bg-secondary: #232F3E;
    --bg-tertiary: #37475A;

    --accent-red: #FF9900;
    /* Amazon Orange */
    --accent-red-light: #FFB700;
    --accent-red-dark: #E47911;

    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-tertiary: #A6A6A6;

    --glass-bg: rgba(35, 47, 62, 0.8);
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Spacing & Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --container-width: 1200px;
    --section-spacing: 120px;
    --section-spacing-mobile: 80px;

    /* Next Level Effects */
    --premium-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --accent-gradient: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--accent-red);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(160, 50, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 50, 50, 0.4);
    background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 100%);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-outline:hover {
    background: var(--accent-red);
    color: white;
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    padding: 60px;
    /* Default desktop padding */
}

@media (max-width: 768px) {
    .glass-card {
        padding: 24px !important;
    }

    .section-spacing {
        padding: 60px 0;
    }
}

.glass-card:hover {
    border-color: rgba(160, 50, 50, 0.3);
    transform: translateY(-4px);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
}

.nav-links li {
    position: relative;
}

/* Dropdown Menu */
.nav-links li.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    list-style: none;
    padding: 15px 0;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-links li.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content li a {
    padding: 12px 25px;
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-content li a:hover {
    background: rgba(255, 153, 0, 0.15);
    color: var(--accent-red) !important;
    padding-left: 35px;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.25rem;
    }
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 10px;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 80px 0 40px;
    margin-top: var(--section-spacing);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-title {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: 30px;
}

/* Responsive Grid Utilities */
.grid-responsive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {

    .grid-responsive,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* --- NEXT LEVEL EVOLUTION: Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Delay for grids */
.grid>*:nth-child(1) {
    transition-delay: 0.1s;
}

.grid>*:nth-child(2) {
    transition-delay: 0.2s;
}

.grid>*:nth-child(3) {
    transition-delay: 0.3s;
}

.grid>*:nth-child(4) {
    transition-delay: 0.4s;
}

/* Notification Bar */
.top-notification-bar {
    background: var(--accent-gradient);
    color: white;
    text-align: center;
    padding: 10px 40px 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 2002;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-notification-bar span {
    display: block;
    line-height: 1.4;
}

.close-notification {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
}

.close-notification:hover {
    opacity: 1;
}

/* Refined Glass Card Hover */
.glass-card:hover {
    border-color: var(--accent-red);
    box-shadow: var(--premium-shadow);
    transform: translateY(-8px);
    background: rgba(35, 47, 62, 0.9);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }

    .hero {
        padding: 120px 0 60px !important;
    }

    .main-nav {
        position: sticky;
        top: 0;
        background: var(--bg-primary);
    }

    .main-nav.scrolled {
        background: var(--glass-bg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 2000;
    padding: 60px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--glass-border);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-link {
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.close-drawer {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-tertiary);
}

/* Scroll to Top */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(160, 50, 50, 0.4);
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 2001;
}

.progress-bar {
    height: 100%;
    background: var(--accent-red);
    width: 0%;
}

/* Responsive Table Optimization */
@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -24px;
        padding: 0 24px;
    }

    .table-wrapper table {
        min-width: 600px;
    }
}

/* Provider Cards Grid */
.provider-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- NEXT LEVEL EVOLUTION: Trust Architecture --- */

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(74, 222, 128, 0.3);
    margin-bottom: 20px;
}

/* Author Bio Component */
.author-bio-card {
    margin-top: 80px;
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 30px;
    align-items: center;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-red);
}

.author-info h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.author-info p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Sticky Top Pick Sidebar Element */
.sticky-top-pick {
    background: var(--accent-gradient);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    color: white;
    box-shadow: var(--premium-shadow);
}

.sticky-top-pick h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-white {
    background: white;
    color: #E47911;
    width: 100%;
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 800;
    margin-top: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: #f8f9fa;
    transform: scale(1.02);
}

.provider-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.provider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-logo-area {
    padding: 30px;
    background: white;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #eee;
}

.card-logo-area img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}

.card-info-area {
    padding: 24px;
    background: #ffffff;
    text-align: center;
    color: #333;
    flex-grow: 1;
}

.card-info-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a202c;
    margin: 15px 0;
}

.card-banner {
    background: #0056b3;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.card-footer-rating {
    background: #1a202c;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rating-badge {
    background: #ff9900;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
}

.stars {
    color: #ff9900;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .provider-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-info-area {
        padding: 20px;
    }

    .card-logo-area {
        padding: 20px;
        height: 120px;
    }
}

/* --- NEXT LEVEL EVOLUTION: Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 800px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent-red);
    padding: 20px 0;
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    color: white;
    outline: none;
}

.close-search {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-search:hover {
    color: white;
}

.search-results-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- FAQ Accordion --- */
.faq-accordion {
    padding: 0 !important;
    overflow: hidden;
    cursor: pointer;
}

.faq-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-header h3 {
    font-size: 1.15rem;
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
    transition: transform 0.4s ease;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-body p {
    padding: 24px 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-accordion.active .faq-body {
    max-height: 500px;
}

.faq-accordion.active .faq-icon {
    transform: rotate(45deg);
}

.faq-accordion:hover .faq-header {
    background: rgba(255, 153, 0, 0.05);
}