/* ========================================
   MattressProtector.au - Main Stylesheet
   Modern, Clean UI with Great UX
   ======================================== */

/* CSS Variables */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --secondary-dark: #059669;
    --accent: #F59E0B;
    --dark: #1F2937;
    --dark-light: #374151;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.hidden {
    display: none !important;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-au {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8f4f8 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero .highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--secondary);
    color: var(--white);
}

.btn-success:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Hero Illustration */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.bed-graphic {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    background: linear-gradient(145deg, var(--white), var(--gray-100));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.mattress {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    height: 35%;
    background: linear-gradient(180deg, #E8E8E8 0%, #D4D4D4 100%);
    border-radius: var(--radius);
}

.protector {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    height: 38%;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.2) 0%, rgba(79, 70, 229, 0.1) 100%);
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pillows {
    position: absolute;
    top: 25%;
    left: 15%;
    width: 35%;
    height: 20%;
    background: linear-gradient(145deg, var(--white), #F5F5F5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.pillows::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 80%;
    height: 100%;
    background: linear-gradient(145deg, var(--white), #F5F5F5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.shield-badge {
    position: absolute;
    top: 10%;
    right: 10%;
    background: var(--secondary);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   Features Banner
   ======================================== */
.features-banner {
    background: var(--dark);
    padding: 1.5rem 0;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 500;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

/* ========================================
   Products Section
   ======================================== */
.products-section {
    padding: 5rem 0;
    background: var(--gray-100);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.filter-group select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.view-toggle {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.625rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn svg {
    fill: var(--gray-500);
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--primary);
    background: var(--primary);
}

.view-btn:hover svg,
.view-btn.active svg {
    fill: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    width: 180px;
    height: 120px;
    background: linear-gradient(145deg, var(--gray-200), var(--gray-300));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.badge-bestseller {
    background: var(--accent);
    color: var(--white);
}

.badge-popular {
    background: var(--secondary);
    color: var(--white);
}

.badge-premium {
    background: var(--primary);
    color: var(--white);
}

.badge-value {
    background: var(--dark);
    color: var(--white);
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--accent);
    font-size: 0.875rem;
}

.rating-count {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-feature {
    padding: 0.25rem 0.625rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--gray-600);
}

.product-price {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.price-range {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.price-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-left: 0.25rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-actions .btn {
    flex: 1;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

.btn-compare {
    background: var(--gray-100);
    color: var(--dark);
    border: 1px solid var(--gray-300);
}

.btn-compare:hover {
    background: var(--gray-200);
}

.btn-compare.added {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary);
}

/* Products Table */
.products-table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th,
.products-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.products-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-table tr:hover {
    background: var(--gray-100);
}

.products-table .product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-table .product-thumb {
    width: 60px;
    height: 60px;
    background: var(--gray-200);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.products-table .product-details h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.products-table .product-details span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.products-table .feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.products-table .feature-tag {
    padding: 0.125rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
}

/* ========================================
   Quiz Section
   ======================================== */
.quiz-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

.quiz-section .section-header h2,
.quiz-section .section-header p {
    color: var(--white);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    transition: width 0.5s ease;
    width: 20%;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.quiz-content {
    min-height: 300px;
}

.quiz-question {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    padding: 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
}

.quiz-option-icon {
    font-size: 1.5rem;
}

.quiz-option-text {
    font-weight: 500;
    color: var(--dark);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Quiz Results */
.quiz-results {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.quiz-results h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.quiz-results > p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.quiz-recommendation {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.quiz-recommendation .product-card {
    max-width: 350px;
    margin: 0 auto;
}

.quiz-other-options {
    text-align: left;
}

.quiz-other-options h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.quiz-other-products {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.quiz-other-products .mini-product {
    flex-shrink: 0;
    width: 200px;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    text-align: center;
}

.mini-product-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mini-product h5 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.mini-product p {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.restart-quiz {
    margin-top: 1.5rem;
}

/* ========================================
   Compare Section
   ======================================== */
.compare-section {
    padding: 5rem 0;
    background: var(--white);
}

.compare-selector {
    margin-bottom: 2rem;
}

.compare-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.compare-slot {
    position: relative;
}

.compare-select {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background: var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}

.compare-select:hover,
.compare-select:focus {
    border-color: var(--primary);
    outline: none;
}

.clear-slot {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: var(--gray-400);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: none;
    transition: var(--transition);
}

.compare-slot.has-selection .clear-slot {
    display: block;
}

.clear-slot:hover {
    background: var(--dark);
}

.compare-table-container {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    min-height: 300px;
}

.compare-placeholder {
    text-align: center;
    color: var(--gray-500);
    padding: 4rem 0;
}

.compare-grid {
    display: grid;
    gap: 0;
}

.compare-row {
    display: grid;
    grid-template-columns: 180px repeat(3, 1fr);
    border-bottom: 1px solid var(--gray-300);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-cell {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.compare-cell.label {
    background: var(--white);
    font-weight: 600;
    color: var(--dark);
    justify-content: flex-start;
    text-align: left;
}

.compare-row.header .compare-cell {
    background: var(--white);
    font-weight: 600;
    padding: 1.5rem 1rem;
}

.compare-product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.compare-product-header .thumb {
    width: 80px;
    height: 80px;
    background: var(--gray-200);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.compare-product-header h4 {
    font-size: 0.9375rem;
}

.compare-product-header span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.compare-check {
    color: var(--secondary);
    font-size: 1.25rem;
}

.compare-cross {
    color: var(--gray-400);
    font-size: 1.25rem;
}

/* ========================================
   Buying Guide Section
   ======================================== */
.guide-section {
    padding: 5rem 0;
    background: var(--gray-100);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.guide-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   Size Guide Section
   ======================================== */
.size-guide-section {
    padding: 5rem 0;
    background: var(--white);
}

.size-table-wrapper {
    overflow-x: auto;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.size-table th,
.size-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.size-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.size-table tr:last-child td {
    border-bottom: none;
}

.size-table tr:hover td {
    background: var(--gray-100);
}

/* ========================================
   SEO Content Section
   ======================================== */
.seo-section {
    padding: 5rem 0;
    background: var(--gray-100);
}

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

.seo-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.seo-content h3 {
    font-size: 1.375rem;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.seo-content p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.affiliate-disclosure {
    color: var(--gray-500);
    font-size: 0.8125rem !important;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: none;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-illustration {
        max-width: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .features-grid {
        flex-direction: column;
        text-align: center;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .compare-slots {
        grid-template-columns: 1fr;
    }

    .compare-row {
        grid-template-columns: 100px repeat(3, 1fr);
        font-size: 0.8125rem;
    }

    .compare-cell {
        padding: 0.75rem 0.5rem;
    }

    .quiz-container {
        padding: 1.5rem;
    }

    .quiz-question h3 {
        font-size: 1.25rem;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .compare-row {
        grid-template-columns: 80px repeat(3, 1fr);
        font-size: 0.75rem;
    }
}

/* ========================================
   Animations & Utilities
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--dark);
    color: var(--white);
    font-size: 0.75rem;
    border-radius: var(--radius);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}
