/* ========================================
   Electric Toothbrush Australia - Styles
   Modern, Clean UI for 2026
   ======================================== */

/* CSS Variables */
:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f0ff;
    --secondary: #00b894;
    --secondary-dark: #00a17f;
    --accent: #ff6b6b;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a68;
    --text-light: #8888a0;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --bg-grey: #eef0f5;
    --border: #e0e4eb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

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

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

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

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

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

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

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

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

/* Header */
.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(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
}

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

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

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
}

.nav 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 {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-light) 100%);
}

.hero-content {
    max-width: 700px;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

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

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

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

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 17px;
    color: var(--text-medium);
}

/* Products Section */
.products {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

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

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

/* Product Card */
.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-image {
    height: 220px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--accent);
    color: white;
}

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

.product-badge.budget {
    background: var(--primary);
}

.product-content {
    padding: 24px;
}

.product-brand {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

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

.stars {
    color: #ffc107;
    letter-spacing: 2px;
}

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

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

.feature-tag {
    padding: 4px 10px;
    font-size: 12px;
    background: var(--bg-light);
    color: var(--text-medium);
    border-radius: 50px;
}

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

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.price-original {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-cta {
    display: flex;
    gap: 12px;
}

.product-cta .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
}

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

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

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

.progress-bar {
    height: 8px;
    background: var(--bg-grey);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.progress-text {
    font-size: 14px;
    color: var(--text-light);
}

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

.quiz-question h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-dark);
}

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

.quiz-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

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

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

.quiz-option input {
    display: none;
}

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

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.quiz-result {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.quiz-result h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.quiz-result .product-card {
    max-width: 400px;
    margin: 0 auto 24px;
}

.hidden {
    display: none !important;
}

/* Comparison Section */
.compare {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.compare-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.compare-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.compare-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.compare-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.compare-table th:first-child {
    width: 180px;
}

.compare-table td {
    font-size: 14px;
    color: var(--text-medium);
}

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

.compare-table .check {
    color: var(--secondary);
    font-weight: 600;
}

.compare-table .cross {
    color: var(--text-light);
}

/* Guide Section */
.guide {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.guide-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

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

.guide-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.guide-card p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.seo-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.seo-wrapper h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

.seo-wrapper p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 16px;
}

.seo-wrapper strong {
    color: var(--text-dark);
}

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

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

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-brand .logo {
    color: white;
}

.footer-brand .logo-text .au {
    color: #5cb3ff;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: white;
}

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

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

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

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

.affiliate-disclosure {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 64px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 24px;
        border-bottom: 1px solid var(--border);
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 16px;
    }

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

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

    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 28px;
    }

    .quiz-container {
        padding: 24px;
    }

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

    .compare-table {
        font-size: 13px;
    }

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

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

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

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

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

    .hero-buttons .btn {
        width: 100%;
    }

    .filter-tabs {
        gap: 8px;
    }

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

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

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

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-24 {
    margin-top: 24px;
}

.mb-24 {
    margin-bottom: 24px;
}
