/* ========================================
   Best Cordial Australia - Styles
   Modern, Clean UI/UX Design
   ======================================== */

/* CSS Variables */
:root {
    --primary: #2d9d4e;
    --primary-dark: #248040;
    --primary-light: #e8f5ec;
    --secondary: #f5a623;
    --secondary-dark: #d4910f;
    --accent: #ff6b6b;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a68;
    --text-light: #7a7a9d;
    --bg-white: #ffffff;
    --bg-light: #f8faf9;
    --bg-gray: #f0f2f1;
    --border: #e0e4e2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.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-white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-buy {
    background: var(--secondary);
    color: white;
    font-size: 13px;
    padding: 10px 18px;
}

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

/* ========================================
   Header & Navigation
   ======================================== */
.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;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

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

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

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

.nav-links a {
    font-weight: 500;
    color: var(--text-medium);
    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 {
    color: var(--primary);
}

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

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-light) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

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

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

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

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

/* Animated Cordial Glass */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cordial-glass {
    width: 200px;
    height: 280px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    border-radius: 10px 10px 60px 60px;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.8);
}

.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(180deg, #a8e063 0%, #56ab2f 100%);
    border-radius: 0 0 57px 57px;
    animation: wave 3s ease-in-out infinite;
}

.liquid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s linear infinite;
}

.bubbles span {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: bubble 4s ease-in-out infinite;
}

.bubbles span:nth-child(1) { left: 20%; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 40%; animation-delay: 0.5s; width: 8px; height: 8px; }
.bubbles span:nth-child(3) { left: 60%; animation-delay: 1s; }
.bubbles span:nth-child(4) { left: 75%; animation-delay: 1.5s; width: 6px; height: 6px; }
.bubbles span:nth-child(5) { left: 30%; animation-delay: 2s; width: 12px; height: 12px; }

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes bubble {
    0% { bottom: 20%; opacity: 0; }
    50% { opacity: 1; }
    100% { bottom: 90%; opacity: 0; }
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

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

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

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

.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-gray);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-medium);
}

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

/* View Toggle */
.view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 24px;
}

.view-btn {
    padding: 10px;
    background: var(--bg-gray);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-medium);
}

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

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

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

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    z-index: 1;
}

.product-badge.bestseller { background: var(--primary); color: white; }
.product-badge.popular { background: var(--secondary); color: white; }
.product-badge.top-rated { background: #6366f1; color: white; }
.product-badge.new { background: var(--accent); color: white; }
.product-badge.premium { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }

.product-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
}

.product-icon {
    font-size: 72px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.product-info {
    padding: 20px;
}

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

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-meta .brand {
    font-size: 13px;
    color: var(--text-light);
}

.product-meta .rating {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
}

.product-desc {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-features {
    margin-bottom: 16px;
}

.product-features li {
    font-size: 13px;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

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

.btn-compare {
    flex: 1;
    padding: 10px 16px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-gray);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-medium);
}

.btn-compare:hover {
    background: var(--primary-light);
    color: var(--primary);
}

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

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

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

.products-table tr:hover {
    background: var(--bg-light);
}

.products-table .rating {
    color: var(--secondary);
    font-weight: 600;
}

/* ========================================
   Quiz Section
   ======================================== */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-light) 100%);
}

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

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

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

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

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

.quiz-question {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-question.active {
    display: block;
}

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

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

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

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

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

.option-icon {
    font-size: 32px;
}

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

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

.quiz-result .result-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

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

.result-product {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.result-product h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.result-product p {
    color: var(--text-medium);
    margin-bottom: 16px;
}

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

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

.compare-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.compare-slot {
    background: var(--bg-light);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.compare-slot.empty {
    opacity: 0.7;
}

.compare-slot.filled {
    border-style: solid;
    border-color: var(--primary);
    background: var(--bg-white);
}

.slot-placeholder {
    text-align: center;
    color: var(--text-light);
}

.slot-placeholder .plus-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.slot-content {
    text-align: center;
    padding: 16px;
    position: relative;
    width: 100%;
}

.slot-content .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.slot-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 8px;
}

/* Compare Table */
.compare-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--bg-light);
}

.clear-compare {
    display: block;
    margin: 0 auto;
}

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

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

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

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

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

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

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

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

.seo-content em {
    display: block;
    margin-top: 32px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-light);
    border-left: 4px solid var(--primary);
}

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

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

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

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

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

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

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

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

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

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

.affiliate-disclosure {
    font-size: 12px !important;
}

/* ========================================
   Utility Classes
   ======================================== */
.hidden {
    display: none !important;
}

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

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        order: -1;
    }

    .cordial-glass {
        width: 150px;
        height: 210px;
    }

    .footer-content {
        grid-template-columns: 1fr 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: 16px;
        box-shadow: var(--shadow-md);
    }

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

    .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: 120px 0 60px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

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

    .quiz-container {
        padding: 24px;
    }

    .quiz-question h3 {
        font-size: 18px;
    }

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

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

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

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

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

    .product-actions .btn,
    .product-actions .btn-compare {
        width: 100%;
    }

    .filter-tabs {
        gap: 8px;
    }

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