/* =====================================================
   CONDENSED MILK AUSTRALIA - Main Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #E8A838;
    --primary-dark: #D4922E;
    --primary-light: #F5C66A;
    --secondary-color: #2C5530;
    --secondary-light: #3D7A43;
    --accent-color: #FFF8E7;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-light: #6B7280;
    --background: #FFFDF9;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

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

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

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(232, 168, 56, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 168, 56, 0.5);
}

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

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

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

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

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

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

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

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

.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 {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
    overflow: hidden;
}

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

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

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Visual Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.milk-can {
    position: relative;
    width: 180px;
    height: 240px;
}

.can-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #F5F5F5 0%, #E0E0E0 50%, #BDBDBD 100%);
    border-radius: 20px 20px 30px 30px;
    box-shadow:
        inset -10px 0 20px rgba(0, 0, 0, 0.1),
        inset 10px 0 20px rgba(255, 255, 255, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.can-body::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 30px;
    background: linear-gradient(180deg, #FFD700 0%, var(--primary-color) 100%);
    border-radius: 10px 10px 0 0;
}

.can-body::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 30px;
    background: linear-gradient(180deg, var(--primary-color) 0%, #FFD700 100%);
    border-radius: 0 0 15px 15px;
}

.can-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.drip {
    position: absolute;
    background: linear-gradient(180deg, #FFF8DC 0%, #FFE4B5 100%);
    border-radius: 0 0 50% 50%;
    animation: drip 3s ease-in-out infinite;
}

.drip-1 {
    width: 20px;
    height: 0;
    top: -5px;
    left: 30px;
    animation-delay: 0s;
}

.drip-2 {
    width: 15px;
    height: 0;
    top: -5px;
    right: 40px;
    animation-delay: 1.5s;
}

@keyframes drip {
    0%, 100% {
        height: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        height: 60px;
        opacity: 1;
    }
    90% {
        opacity: 0;
    }
}

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

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

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

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

.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

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

.view-btn svg {
    width: 18px;
    height: 18px;
}

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

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

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #FFF5E6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image .product-icon {
    font-size: 5rem;
    opacity: 0.9;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-badge.popular {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
}

.product-badge.value {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
}

.product-badge.premium {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.product-badge.organic {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.product-content {
    padding: 25px;
}

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

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

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

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

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

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

.rating-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

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

.compare-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--accent-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.compare-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Products Table */
.products-table-container {
    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: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

.products-table .product-icon-small {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hidden {
    display: none !important;
}

/* Quiz Section */
.quiz-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--accent-color) 100%);
}

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

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

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

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

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

.quiz-question {
    text-align: center;
    animation: fadeIn 0.4s ease;
}

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

.quiz-question h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
}

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

.quiz-option {
    padding: 20px 25px;
    background: var(--accent-color);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

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

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

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

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

.result-card {
    padding: 20px 0;
}

.result-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 25px;
}

.result-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.result-card > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.result-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.result-feature {
    padding: 8px 16px;
    background: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quiz-result .btn {
    margin: 0 10px 15px;
}

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

.compare-selector {
    margin-bottom: 40px;
}

.selector-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.selector-slot {
    position: relative;
}

.compare-select {
    width: 100%;
    padding: 16px 45px 16px 20px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
}

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

.selector-slot::after {
    content: '▼';
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-light);
    pointer-events: none;
}

.clear-slot {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-slot:hover {
    background: #EF4444;
    color: var(--white);
}

/* Compare Table */
.compare-table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

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

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

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: #FAFAFA;
    position: sticky;
    left: 0;
}

.compare-table .product-header {
    min-width: 200px;
}

.compare-table .product-header-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.compare-table .product-header-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.compare-table .product-header-brand {
    font-size: 0.85rem;
    color: var(--primary-dark);
}

.compare-table .check {
    color: #10B981;
    font-size: 1.3rem;
}

.compare-table .cross {
    color: #EF4444;
    font-size: 1.3rem;
}

.compare-table .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.compare-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--accent-color);
    border-radius: var(--radius-lg);
}

.compare-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.compare-empty p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* SEO Section */
.seo-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--white) 100%);
}

.seo-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 50px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.seo-article {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.seo-article h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.seo-article p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.seo-faq {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.seo-faq h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

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

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

.footer-brand p {
    color: #9CA3AF;
    line-height: 1.7;
}

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

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #9CA3AF;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.affiliate-disclosure {
    font-size: 0.8rem !important;
    color: #6B7280 !important;
}

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

    .hero-content h1 {
        font-size: 2.8rem;
    }

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

    .hero-visual {
        height: 300px;
    }

    .milk-can {
        width: 140px;
        height: 190px;
    }

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

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

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

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
        display: none;
    }

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

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

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

    .quiz-container {
        padding: 30px 20px;
    }

    .quiz-question h3 {
        font-size: 1.25rem;
    }

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

    .seo-faq {
        padding: 30px 20px;
    }

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

    .view-toggle {
        flex-direction: column;
        align-items: center;
    }
}

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

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

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

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

    .quiz-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .quiz-navigation .btn {
        width: 100%;
    }
}
