/* ========================================
   Best Gum Australia - Styles
   Modern, Clean UI for 2026
   ======================================== */

/* CSS Variables */
:root {
    --primary: #00b894;
    --primary-dark: #00a085;
    --primary-light: #55efc4;
    --secondary: #6c5ce7;
    --accent: #fd79a8;
    --dark: #2d3436;
    --gray-900: #1a1a2e;
    --gray-800: #2d3748;
    --gray-700: #4a5568;
    --gray-600: #718096;
    --gray-500: #a0aec0;
    --gray-400: #cbd5e0;
    --gray-300: #e2e8f0;
    --gray-200: #edf2f7;
    --gray-100: #f7fafc;
    --white: #ffffff;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-md: 0 6px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --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: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-100);
}

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

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

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

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

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

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

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

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

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

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

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

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

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

.nav-links a {
    font-weight: 500;
    color: var(--gray-700);
    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%;
}

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

.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(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 50%, var(--primary-light) 100%);
    text-align: center;
}

.hero h1 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gray-900), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 32px;
}

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

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

.stat {
    text-align: center;
}

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

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

/* Section Common */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    font-size: 4rem;
    position: relative;
}

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

.product-badge.bestseller {
    background: var(--warning);
    color: var(--gray-900);
}

.product-content {
    padding: 20px;
}

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

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.product-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.product-tag {
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--gray-700);
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars {
    color: var(--warning);
}

.rating-number {
    font-weight: 600;
    color: var(--gray-800);
}

.product-card .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Quiz Section */
.quiz-section {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
}

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

.quiz-section .section-subtitle {
    opacity: 0.8;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    color: var(--gray-800);
}

.quiz-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.quiz-progress-step {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    transition: var(--transition);
}

.quiz-progress-step.active {
    background: var(--primary);
}

.quiz-progress-step.completed {
    background: var(--primary-dark);
}

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

.quiz-question h3 {
    margin-bottom: 8px;
}

.quiz-question p {
    color: var(--gray-600);
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quiz-option {
    padding: 20px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

.quiz-option-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.quiz-option-text {
    font-weight: 600;
    color: var(--gray-800);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

.quiz-result {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    color: var(--gray-800);
}

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

.result-product {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    text-align: left;
}

.result-product-image {
    font-size: 4rem;
    min-width: 100px;
    text-align: center;
}

.result-product-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.result-product-info p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

/* Compare Section */
.compare-section {
    background: var(--gray-100);
}

.compare-selector {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.compare-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.compare-chip {
    padding: 10px 16px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.compare-chip.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.compare-chip-icon {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-400);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.compare-chip.selected .compare-chip-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.compare-table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

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

.compare-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-900);
}

.compare-table th:first-child {
    text-align: left;
    background: var(--gray-200);
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--gray-50);
}

.compare-table .product-header {
    font-size: 2rem;
    margin-bottom: 8px;
}

.compare-table .product-name {
    font-weight: 700;
    margin-bottom: 4px;
}

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

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

/* Table Section */
.table-section {
    background: var(--white);
}

.table-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.table-search {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

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

.table-sort {
    padding: 12px 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

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

.products-table th {
    background: var(--gray-900);
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
}

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

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

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

.products-table .check {
    color: var(--success);
}

.products-table .cross {
    color: var(--danger);
}

/* SEO Section */
.seo-section {
    background: var(--gray-100);
    padding: 60px 0;
}

.seo-section h2 {
    margin-bottom: 24px;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--gray-700);
}

.seo-content h3 {
    color: var(--gray-800);
    margin: 32px 0 16px;
}

.seo-content p {
    margin-bottom: 16px;
}

.seo-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.seo-content li {
    margin-bottom: 12px;
    position: relative;
    list-style: disc;
}

.seo-content a {
    color: var(--primary);
    text-decoration: underline;
}

.seo-content a:hover {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
}

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

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

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

.footer-brand p {
    color: var(--gray-500);
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

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

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

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

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

    .hero {
        padding: 120px 0 60px;
    }

    .hero-stats {
        gap: 24px;
    }

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

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .compare-table {
        font-size: 0.875rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .filter-tabs {
        gap: 8px;
    }

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

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

    .quiz-container,
    .quiz-result {
        padding: 24px;
    }
}
