:root {
    /* Premium Dark Palette */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-gold: #FFC000;
    --glass-bg: rgba(20, 20, 20, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);

    /* Spacing */
    --nav-height: 64px;
    --header-height: 60px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Russo One', sans-serif;
    letter-spacing: 0.5px;
}

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

/* Layout Shell - Mobile First, Full Width */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-dark);
    position: relative;
}

/* Header */
.app-header {
    height: var(--header-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
}

.logo h1 {
    font-size: 1.2rem;
    margin: 0;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
}

/* Main Content Area */
#main-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 40px;
}

.scroll-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Article Styles (The Core) --- */

.article-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Article Header */
.article-header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.article-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.article-header h1 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
    line-height: 1.1;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

.article-author {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
    padding-top: 5px;
}

/* Article Content */
.article-content h3 {
    color: #fff;
    border-left: 3px solid var(--accent-gold);
    padding-left: 15px;
    margin: 30px 0 15px 0;
    font-size: 1.4rem;
}

.article-content p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.article-content ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-content li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: #ddd;
    line-height: 1.5;
}

.article-content li::before {
    content: "STANDARD";
    /* Fallback */
    content: "🍺";
    position: absolute;
    left: -5px;
    top: 2px;
    font-size: 0.8rem;
}

/* Components */
.article-image {
    margin: 25px -16px;
    /* Bleed on mobile */
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.article-meta {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    justify-content: center;
}

.article-meta span {
    background: rgba(255, 192, 0, 0.1);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 192, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Signature Block */
.beer-signature {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.beer-signature>div {
    text-align: center;
}

.beer-signature .label {
    color: #666;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.beer-signature .value {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.beer-signature .highlight {
    color: var(--accent-gold);
}

/* Callout */
blockquote {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-left: 4px solid var(--accent-gold);
    margin: 25px 0;
    font-style: italic;
    color: #eee;
    border-radius: 0 8px 8px 0;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

/* Image Zoom Overlay */
#zoom-overlay {
    backdrop-filter: blur(5px);
}

@media (min-width: 600px) {
    .article-image img {
        border-radius: 12px;
    }

    .article-image {
        margin: 25px 0;
    }
}

/* --- GUIDE PAGE STYLES --- */
.guide-container {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    /* Full width */
    margin: 0 auto;
    color: var(--text-primary);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guide-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.guide-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-family: 'Russo One', sans-serif;
}

.guide-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

.guide-section {
    margin-bottom: 50px;
}

.guide-section h2 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 192, 0, 0.2);
    padding-bottom: 10px;
}

.intro-text {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ddd;
}

/* Beer Type Grid */
.beer-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.type-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.type-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.type-card h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.3rem;
}

.type-card .tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    color: var(--text-secondary);
}

.type-card p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 10px;
}

.food-pairing {
    font-size: 0.85rem !important;
    color: var(--accent-gold) !important;
    font-weight: 500;
}

/* Choice Flow */
.choice-flow {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
}

.choice-list {
    list-style: none;
    padding: 0;
}

.choice-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--accent-gold);
    line-height: 1.5;
    color: #ddd;
}

.highlight {
    color: var(--accent-gold);
    font-weight: bold;
}

/* Timeline */
.timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 10px;
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 192, 0, 0.3);
}

.timeline-item .date {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-item p {
    color: #ccc;
    line-height: 1.5;
}

/* About Section */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #eee;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 40px 0;
}

/* --- Style Map --- */
.style-map-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin: 20px 0;
    overflow: hidden;
}

.map-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.map-label {
    position: absolute;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
}

.map-label.top {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.map-label.bottom {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.map-label.left {
    top: 50%;
    left: 0px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
}

.map-label.right {
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
}

.beer-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 192, 0, 0.5);
    transition: transform 0.2s, background 0.2s;
}

.beer-dot:hover,
.beer-dot.active {
    transform: translate(-50%, -50%) scale(1.5);
    background: #fff;
    z-index: 10;
}

.beer-dot::after {
    content: attr(data-label);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.beer-dot:hover::after,
.beer-dot.active::after {
    opacity: 1;
}

/* --- Quiz UI --- */
.quiz-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

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

@media (min-width: 768px) {
    .style-map-container {
        height: 450px;
    }

    .quiz-options {
        flex-direction: row;
        justify-content: center;
    }
}

/* --- Utilities & PC Layout Fixes --- */
.hidden {
    display: none !important;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 192, 0, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* PC / Tablet - Optional Constrained Layout */
@media (min-width: 1200px) {
    .type-card {
        padding: 30px;
    }
}

/* Small Outline Button */
.btn-small-outline {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small-outline:hover {
    background: var(--accent-gold);
    color: #000;
}