/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

.btn-amazon {
    background: linear-gradient(135deg, #ff9900, #e88b00);
    color: #111;
    font-weight: 700;
}

.btn-amazon:hover {
    background: linear-gradient(135deg, #ffad33, #ff9900);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--accent-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

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

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

.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

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

.mobile-nav-link {
    padding: 12px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 80px 0;
    color: white;
}

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

.hero h1 {
    margin-bottom: 20px;
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
}

/* Features Bar */
.features-bar {
    background: var(--surface);
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--success-color);
    font-weight: bold;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: var(--surface);
}

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

.quiz-progress {
    margin-bottom: 32px;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.quiz-question {
    display: none;
}

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

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

.quiz-question h3 {
    text-align: center;
    margin-bottom: 24px;
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 1rem;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

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

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

.quiz-results {
    display: none;
    text-align: center;
}

.quiz-results.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.quiz-results h3 {
    margin-bottom: 24px;
    color: var(--primary-color);
}

.result-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.result-card .product-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.result-card h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.result-card .result-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.result-card .result-reason {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.result-card .result-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: var(--surface);
    cursor: pointer;
    min-width: 140px;
}

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

.view-toggle {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.view-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.view-btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.view-btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.grid-icon, .table-icon {
    display: block;
    line-height: 1;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        width: 100%;
    }
    .filter-select {
        flex: 1;
    }
    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-badge.best-seller {
    background: var(--accent-color);
    color: #111;
}

.product-badge.eco {
    background: var(--success-color);
}

.product-image-container {
    position: relative;
    background: #f1f5f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.product-image {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.product-compare-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

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

.product-info {
    padding: 20px;
}

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

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-type {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.spec {
    font-size: 0.875rem;
}

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

.spec-value {
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    color: var(--accent-color);
    letter-spacing: 2px;
}

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

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price .original {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

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

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

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

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

.products-table tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

.products-table .product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.products-table .product-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 4px;
}

.products-table .product-title {
    font-weight: 600;
}

.products-table .product-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* Compare Section */
.compare-section {
    padding: 80px 0;
    background: var(--surface);
}

.compare-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .compare-selector {
        grid-template-columns: 1fr;
    }
}

.compare-slot {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compare-select {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--background);
    cursor: pointer;
}

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

.compare-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

.compare-card.filled {
    border: 1px solid var(--border-color);
    border-style: solid;
}

.compare-card .empty-state {
    color: var(--text-muted);
}

.compare-card .compare-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 16px;
}

.compare-card h4 {
    margin-bottom: 8px;
}

.compare-card .compare-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.compare-table-container {
    overflow-x: auto;
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 20px;
}

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

.compare-table th,
.compare-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: var(--surface);
    position: sticky;
    left: 0;
}

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

.compare-table th:first-child {
    background: var(--surface);
    color: var(--text-primary);
}

.compare-table .highlight {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* Buying Guide Section */
.guide-section {
    padding: 80px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 992px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

.guide-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.guide-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.guide-card h3 {
    margin-bottom: 12px;
}

.guide-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.guide-pros-cons {
    list-style: none;
}

.guide-pros-cons li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.875rem;
}

.guide-pros-cons li::before {
    position: absolute;
    left: 0;
}

.guide-pros-cons li.pro::before {
    content: "✓";
    color: var(--success-color);
}

.guide-pros-cons li.con::before {
    content: "✗";
    color: var(--danger-color);
}

.guide-tips {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.guide-tips h3 {
    text-align: center;
    margin-bottom: 32px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

.tip {
    text-align: center;
}

.tip strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.tip p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* SEO Content Section */
.seo-section {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
}

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

.seo-content h2 {
    margin-bottom: 24px;
    color: var(--text-primary);
}

.seo-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.seo-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 576px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.footer-column h4 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.affiliate-disclosure {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    max-width: 600px;
    margin: 0 auto;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* Image placeholder */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}
