/* CSS Variables */
:root {
    --primary-color: #d4a039;
    --primary-dark: #b8862e;
    --secondary-color: #2c1810;
    --accent-color: #c75b12;
    --bg-color: #0f0f0f;
    --bg-light: #1a1a1a;
    --bg-card: #242424;
    --text-color: #f5f5f5;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(212, 160, 57, 0.2);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #fff;
}

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

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

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

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

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

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

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a0f00 0%, #2c1810 50%, #0f0f0f 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23d4a039" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 70px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Filters */
.filters {
    padding: 60px 20px 30px;
}

.filters h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

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

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

.filter-group select {
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 150px;
}

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

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--bg-card);
    padding: 5px;
    border-radius: var(--radius-sm);
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn svg {
    fill: var(--text-muted);
    transition: var(--transition);
}

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

.view-btn.active {
    background: var(--bg-light);
}

/* Products Grid */
.products {
    padding: 20px 20px 60px;
}

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

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #2c1810, #1a0f00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

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

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-style {
    display: inline-block;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

.product-stat strong {
    color: var(--primary-color);
}

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

.stars {
    color: var(--primary-color);
    letter-spacing: 2px;
}

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

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

.product-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

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

.product-actions .btn {
    flex: 1;
}

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

.products-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.products-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.products-table th:hover {
    background: var(--secondary-color);
}

.products-table tr:hover td {
    background: rgba(212, 160, 57, 0.05);
}

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

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

.products-table .beer-name {
    font-weight: 600;
}

.products-table .beer-brand {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.compare-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.compare-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.compare-slot {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.compare-select {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

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

.compare-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    border: 2px dashed var(--border-color);
    transition: var(--transition);
}

.compare-card.empty {
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.compare-card.filled {
    border-style: solid;
    border-color: var(--primary-color);
}

.compare-card .card-header {
    text-align: center;
    margin-bottom: 20px;
}

.compare-card .card-emoji {
    font-size: 4rem;
    margin-bottom: 10px;
}

.compare-card .card-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.compare-card .card-brand {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.compare-card .card-stats {
    flex: 1;
}

.compare-card .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.compare-card .stat-label {
    color: var(--text-muted);
}

.compare-card .stat-value {
    font-weight: 600;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

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

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

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    color: var(--text-muted);
}

.compare-table .highlight-best {
    color: var(--success-color);
    font-weight: 600;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a0f00 0%, #0f0f0f 100%);
}

.quiz-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

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

.quiz-progress {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

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

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.quiz-question p {
    color: var(--text-muted);
}

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

.quiz-option {
    padding: 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: rgba(212, 160, 57, 0.1);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: rgba(212, 160, 57, 0.2);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.quiz-result {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quiz-result h3 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.result-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 30px;
    border: 2px solid var(--primary-color);
}

.result-card .result-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
}

.result-card .result-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-card .result-brand {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.result-card .result-description {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.7;
}

.result-card .result-match {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* About/SEO Section */
.about-section {
    padding: 80px 20px;
    background: var(--bg-color);
}

.about-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

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

.seo-content h3:first-child {
    margin-top: 0;
}

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

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 60px 20px 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.affiliate-disclosure {
    font-size: 0.8rem !important;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border-color);
    }

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

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

    .hero h1 {
        font-size: 2rem;
    }

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

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

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

    .filter-group select {
        width: 100%;
    }

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

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

    .quiz-container {
        padding: 25px;
    }

    .quiz-navigation {
        flex-direction: column;
    }

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

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

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

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
