/* ===== CSS Variables ===== */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #ffd166;
    --accent: #06d6a0;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --text: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg: #fafafa;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

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

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

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.4rem;
}

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

.logo-text {
    color: var(--dark);
}

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

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}

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

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

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff5f0 0%, #fff9e6 50%, #f0fff4 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark);
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-chips {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.floating-chip {
    position: absolute;
    font-size: 4rem;
    animation: float 6s ease-in-out infinite;
}

.chip-1 {
    top: -100px;
    right: 0;
    animation-delay: 0s;
}

.chip-2 {
    top: 50px;
    right: 150px;
    animation-delay: 2s;
    font-size: 3rem;
}

.chip-3 {
    top: 150px;
    right: 30px;
    animation-delay: 4s;
    font-size: 2.5rem;
}

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

/* ===== Section Styling ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== Products Section ===== */
.products-section {
    background: var(--bg-white);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
}

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

.filter-group label {
    font-weight: 500;
    color: var(--text-light);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.sort-select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    background: white;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 10px;
    border: 2px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

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

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

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 2;
}

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

.product-badge.premium {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 8px 0;
}

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

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 600;
    color: var(--dark);
}

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

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.85rem;
}

.btn-compare {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-compare:hover,
.btn-compare.added {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

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

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

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

.products-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--dark);
}

.products-table tr:hover {
    background: #f8f9fa;
}

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

.products-table .product-emoji {
    font-size: 2rem;
}

.hidden {
    display: none !important;
}

/* ===== Compare Section ===== */
.compare-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.compare-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.compare-slot {
    width: 200px;
    height: 200px;
    background: white;
    border: 3px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.compare-slot:hover {
    border-color: var(--primary);
}

.compare-slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.plus-icon {
    font-size: 3rem;
    color: var(--border);
    transition: var(--transition);
}

.compare-slot:hover .plus-icon {
    color: var(--primary);
}

.compare-slot-filled {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    width: 100%;
}

.compare-slot-filled .compare-img {
    font-size: 4rem;
}

.compare-slot-filled .compare-name {
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.remove-compare {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #ff4444;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-compare:hover {
    transform: scale(1.1);
}

/* ===== Compare Modal ===== */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.compare-modal-content {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.compare-modal-header h3 {
    font-size: 1.2rem;
}

.close-modal {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--primary);
    color: white;
}

.compare-modal-search {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.compare-modal-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

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

.compare-modal-list {
    overflow-y: auto;
    padding: 10px;
}

.compare-modal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.compare-modal-item:hover {
    background: var(--bg);
}

.compare-modal-item .item-emoji {
    font-size: 2rem;
}

.compare-modal-item .item-info {
    flex: 1;
}

.compare-modal-item .item-name {
    font-weight: 600;
}

.compare-modal-item .item-brand {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Comparison Table ===== */
.comparison-table-wrapper {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.comparison-table-wrapper h3 {
    margin-bottom: 20px;
    text-align: center;
}

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

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

.comparison-table th {
    background: var(--bg);
    font-weight: 600;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table .winner {
    background: rgba(6, 214, 160, 0.1);
    color: var(--accent);
    font-weight: 600;
}

/* ===== Quiz Section ===== */
.quiz-section {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    color: white;
}

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

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-start,
.quiz-results {
    text-align: center;
}

.quiz-intro {
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.quiz-icon,
.results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.quiz-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.quiz-intro p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

/* Quiz Questions */
.quiz-questions {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

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

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.question-container h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 1rem;
    color: white;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
}

.quiz-option.selected {
    background: var(--primary);
    border-color: var(--primary);
}

/* Quiz Results */
.quiz-results {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.results-header {
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.results-products {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.result-product {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-align: left;
}

.result-product .result-emoji {
    font-size: 3rem;
}

.result-product .result-info {
    flex: 1;
}

.result-product .result-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
}

.result-product .result-reason {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.result-product .btn {
    white-space: nowrap;
}

/* ===== SEO Section ===== */
.seo-section {
    background: var(--bg-white);
}

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

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

.seo-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.seo-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-content li {
    color: var(--text-light);
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.seo-content li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.affiliate-disclosure {
    margin-top: 10px;
    font-size: 0.8rem !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-chips {
        opacity: 0.3;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

    .hero {
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

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

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

    .hero-chips {
        display: none;
    }

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

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

    .filter-buttons {
        justify-content: center;
    }

    .view-toggle {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .compare-slot {
        width: 150px;
        height: 150px;
    }

    .quiz-intro,
    .quiz-questions,
    .quiz-results {
        padding: 30px 20px;
    }

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

    .footer-brand {
        margin-bottom: 20px;
    }

    section {
        padding: 60px 0;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .btn {
        padding: 12px 24px;
    }

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

    .compare-selector {
        flex-direction: column;
        align-items: center;
    }

    .result-product {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
