/* BeerDetective Styles */
/* Three themes switched via body class */

:root {
    --bg: #F7F5F0;
    --card: #FFFFFF;
    --accent: #D4AF37;
    --accent-hover: #E5C158;
    --secondary: #1E3A5F;
    --text: #1A1A2E;
    --text-light: #5A6A7A;
    --success: #2E8B57;
    --error: #A0522D;
    --border: #E0D8C8;
    --shadow: rgba(44, 24, 16, 0.08);
    --gradient: linear-gradient(135deg, #D4AF37 0%, #1E3A5F 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

/* Header */
.header {
    background: var(--card);
    box-shadow: 0 2px 20px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent) !important;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.burger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1001;
    position: relative;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.btn-full {
    width: 100%;
}

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

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

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

.hero-title span {
    color: var(--accent) !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

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

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent) !important;
    display: block;
}

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

.hero-visual {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.elegant-glass {
    width: 220px;
    height: 330px;
    filter: drop-shadow(0 10px 30px rgba(108, 92, 231, 0.2));
    animation: glassFloat 4s ease-in-out infinite;
    overflow: visible;
}

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

/* Old beer glass styles kept for other themes */
.beer-glass {
    width: 120px;
    height: 200px;
    position: relative;
}

.glass-body {
    width: 100%;
    height: 140px;
    background: rgba(212, 175, 55, 0.08);
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.beer-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85%;
    background: linear-gradient(to bottom, #F0C840 0%, #E8C020 30%, #D4AF37 60%, #C5A028 100%);
    animation: liquidWave 3s ease-in-out infinite;
}

.beer-liquid::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 15px;
    height: 60%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transform: skewX(-5deg);
}

.foam {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    height: 35px;
    background: linear-gradient(to bottom, #FFFFFF 0%, #F5F0E8 50%, rgba(255,255,255,0.9) 100%);
    border-radius: 50% 50% 45% 45%;
    animation: foamBounce 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -10px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rise 2s infinite ease-in;
}

.bubble:nth-child(1) { left: 20%; animation-delay: 0s; width: 6px; height: 6px; }
.bubble:nth-child(2) { left: 40%; animation-delay: 0.5s; width: 10px; height: 10px; }
.bubble:nth-child(3) { left: 60%; animation-delay: 1s; width: 7px; height: 7px; }
.bubble:nth-child(4) { left: 80%; animation-delay: 1.5s; width: 9px; height: 9px; }

@keyframes rise {
    0% { bottom: -10px; opacity: 0; }
    20% { opacity: 1; }
    100% { bottom: 100%; opacity: 0; }
}

.glass-stem {
    width: 20px;
    height: 40px;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.25);
    margin: 0 auto;
}

.glass-base {
    width: 60px;
    height: 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.25);
    border-radius: 5px;
    margin: 0 auto;
}

@keyframes liquidWave {
    0%, 100% { height: 85%; }
    50% { height: 88%; }
}

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

/* Progress */
.progress-section {
    padding: 60px 0;
    background: var(--bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.progress-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff !important;
    flex-shrink: 0;
}

.progress-info {
    flex: 1;
}

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

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-light);
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Levels */
.levels-section {
    padding: 60px 0;
}

.levels-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.level-node {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 24px;
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s;
}

.level-node:hover {
    transform: translateX(10px);
}

.level-active {
    border: 2px solid var(--accent) !important;
}

.level-active .level-badge {
    background: var(--accent) !important;
}

.level-active .level-icon {
    color: #fff !important;
}

.level-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.level-icon {
    font-size: 1.8rem;
    color: var(--accent) !important;
}

.level-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text);
}

.level-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.level-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
}

.level-status.locked {
    color: var(--text-light);
}

/* Courses */
.courses-section {
    padding: 80px 0;
    background: var(--bg);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow);
    border-color: var(--accent) !important;
}

.course-image {
    height: 180px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff !important;
}

.course-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.course-content {
    padding: 24px;
}

.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text);
}

.course-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-duration {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-level {
    font-size: 0.85rem;
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 12px;
    color: var(--text-light);
}

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

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 30px var(--shadow);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.quiz-progress {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.quiz-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 400px;
}

.quiz-question {
    min-height: 80px;
}

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text);
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 280px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.quiz-option:hover {
    border-color: var(--accent) !important;
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
}

.option-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent) !important;
    flex-shrink: 0;
}

.option-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.quiz-option.correct {
    border-color: var(--success);
    background: rgba(46, 139, 87, 0.1);
}

.quiz-option.correct .option-letter {
    background: var(--success);
    color: #fff !important;
}

.quiz-option.wrong {
    border-color: var(--error);
    background: rgba(160, 82, 45, 0.1);
}

.quiz-option.wrong .option-letter {
    background: var(--error);
    color: #fff !important;
}

.quiz-explanation {
    background: rgba(46, 139, 87, 0.1);
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease;
}

.explanation-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.explanation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--success);
}

.explanation-content p {
    color: var(--text);
    line-height: 1.6;
}

.quiz-next-btn {
    margin-top: auto;
    padding-top: 20px;
}

.quiz-footer {
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

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

.quiz-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
}

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

/* Achievements */
.achievements-section {
    padding: 80px 0;
    background: var(--bg);
}

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

.achievement-card {
    background: var(--card);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    border-top: 4px solid transparent;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow);
    border-color: var(--accent) !important;
}

.achievement-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-card:nth-child(1) .achievement-icon { color: #E8A838; }
.achievement-card:nth-child(2) .achievement-icon { color: #4A90A4; }
.achievement-card:nth-child(3) .achievement-icon { color: #C44D56; }
.achievement-card:nth-child(4) .achievement-icon { color: #5A8F4E; }
.achievement-card:nth-child(5) .achievement-icon { color: #8B6FAA; }
.achievement-card:nth-child(6) .achievement-icon { color: #D4883A; }

.achievement-card:nth-child(1) { border-top: 4px solid #E8A838; }
.achievement-card:nth-child(2) { border-top: 4px solid #4A90A4; }
.achievement-card:nth-child(3) { border-top: 4px solid #C44D56; }
.achievement-card:nth-child(4) { border-top: 4px solid #5A8F4E; }
.achievement-card:nth-child(5) { border-top: 4px solid #8B6FAA; }
.achievement-card:nth-child(6) { border-top: 4px solid #D4883A; }

.achievement-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.achievement-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.achievement-points {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent) !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Ambassador */
.ambassador-section {
    padding: 80px 0;
    background: var(--card);
}

.ambassador-card {
    background: var(--gradient);
    border-radius: 24px;
    padding: 50px;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ambassador-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.ambassador-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.ambassador-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.ambassador-list li {
    font-size: 1rem;
    opacity: 0.95;
}

.ambassador-note {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 24px;
}

/* Footer */
.footer {
    background: #1E3A5F;
    color: #A0B4C8;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #D4A574;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #A09080;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #D4A574;
}

.footer-credits {
    text-align: center;
    color: #A09B94;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

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

.modal-content h2 {
    margin-bottom: 24px;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-content input {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent) !important;
}

/* Design Switcher */
.design-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 260px;
    border: 2px solid #E0E0E0;
    font-family: 'Open Sans', sans-serif;
}

.design-switcher h3 {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #1A1A1A;
    font-weight: 700;
}

.variant-btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
}

.variant-btn:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
}

.variant-btn.active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    font-weight: 600;
}

.variant-btn .v-name {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    font-size: 0.85rem;
}

.variant-btn .v-desc {
    font-size: 0.75rem;
    color: #666;
}

.color-preview {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* ========== THEME: ROYAL (Yellow Beer) ========== */
body.theme-royal {
    --bg: #FFF8F0;
    --card: #FFFFFF;
    --accent: #F5D030;
    --accent-hover: #F8D840;
    --secondary: #2C3E50;
    --text: #2C3E50;
    --text-light: #5D6D7E;
    --success: #27AE60;
    --error: #E74C3C;
    --border: #E8DDD0;
    --shadow: rgba(44, 62, 80, 0.06);
    --gradient: linear-gradient(135deg, #F5D030 0%, #2C3E50 100%);
}

body.theme-royal .hero {
    background: linear-gradient(180deg, #FFF8F0 0%, #FFF0E0 100%);
}

body.theme-royal .footer {
    background: #2C3E50;
    color: #B0BEC5;
}

body.theme-royal .footer-logo {
    color: #F5D030;
}

body.theme-royal .footer-links a {
    color: #90A4AE;
}

body.theme-royal .footer-links a:hover {
    color: #F5D030;
}

body.theme-royal .glass-body {
    background: rgba(245, 208, 48, 0.12);
    border-color: rgba(245, 208, 48, 0.3);
}

body.theme-royal .beer-liquid {
    background: linear-gradient(to bottom, #F5D030, #E8C020);
}

body.theme-royal .glass-stem,
body.theme-royal .glass-base {
    background: rgba(245, 208, 48, 0.15);
    border-color: rgba(245, 208, 48, 0.25);
}

/* ========== THEME: BLUE ========== */
body.theme-blue {
    --bg: #FFFFFF;
    --card: #FAFBFC;
    --accent: #3B5998;
    --accent-hover: #4A6AA8;
    --secondary: #8B9DC3;
    --text: #333333;
    --text-light: #666666;
    --success: #27AE60;
    --error: #E74C3C;
    --border: #E8ECF0;
    --shadow: rgba(0, 0, 0, 0.04);
    --gradient: linear-gradient(135deg, #3B5998 0%, #8B9DC3 100%);
}

body.theme-blue .hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F4F8 100%);
}

body.theme-blue .footer {
    background: #3B5998;
    color: #C8D6E5;
}

body.theme-blue .footer-logo {
    color: #FFFFFF;
}

body.theme-blue .footer-links a {
    color: #A0B8D8;
}

body.theme-blue .footer-links a:hover {
    color: #FFFFFF;
}

body.theme-blue .glass-body {
    background: rgba(59, 89, 152, 0.08);
    border-color: rgba(59, 89, 152, 0.25);
}

body.theme-blue .beer-liquid {
    background: linear-gradient(to bottom, #3B5998, #2D4373);
}

body.theme-blue .glass-stem,
body.theme-blue .glass-base {
    background: rgba(59, 89, 152, 0.12);
    border-color: rgba(59, 89, 152, 0.2);
}

/* ========== THEME: PURPLE ========== */
body.theme-purple {
    --bg: #F8F9FA;
    --card: #FFFFFF;
    --accent: #6C5CE7;
    --accent-hover: #7D6EF0;
    --secondary: #A29BFE;
    --text: #2D3436;
    --text-light: #636E72;
    --success: #00B894;
    --error: #D63031;
    --border: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.05);
    --gradient: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
}

body.theme-purple .hero {
    background: linear-gradient(135deg, #F8F9FA 0%, #EDE9FE 100%);
}

body.theme-purple .footer {
    background: #2D3436;
    color: #B2BEC3;
}

body.theme-purple .footer-logo {
    color: #A29BFE;
}

body.theme-purple .footer-links a {
    color: #636E72;
}

body.theme-purple .footer-links a:hover {
    color: #A29BFE;
}

body.theme-purple .glass-body {
    background: rgba(108, 92, 231, 0.08);
    border-color: rgba(108, 92, 231, 0.25);
}

body.theme-purple .beer-liquid {
    background: linear-gradient(to bottom, #6C5CE7, #5A4ED1);
}

body.theme-purple .glass-stem,
body.theme-purple .glass-base {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.2);
}

/* Purple theme: yellow beer icons */
body.theme-purple .logo-icon {
    color: #F5D030;
}

body.theme-purple .beer-liquid {
    background: linear-gradient(to bottom, #F5D030, #E8C020);
}

body.theme-purple .level-icon {
    color: #F5D030;
}

body.theme-purple .course-icon {
    color: #F5D030;
}

/* Purple theme: level badges different colors */
body.theme-purple .level-node:nth-child(1) .level-icon { color: #27AE60; }
body.theme-purple .level-node:nth-child(2) .level-icon { color: #3498DB; }
body.theme-purple .level-node:nth-child(3) .level-icon { color: #F39C12; }
body.theme-purple .level-node:nth-child(4) .level-icon { color: #9B59B6; }

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .header-actions {
        display: none !important;
    }
    
    .nav.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--card);
        padding: 20px;
        box-shadow: 0 4px 20px var(--shadow);
        z-index: 1000;
    }
    
    .nav.mobile-open ~ .header-actions,
    .header-actions.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: static;
        background: var(--card);
        padding: 20px;
        gap: 10px;
        border-top: 1px solid var(--border);
    }

    .progress-container {
        flex-direction: column;
        text-align: center;
    }

    .ambassador-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px;
    }

    .quiz-container {
        padding: 20px;
        min-height: 480px;
    }

    .quiz-options {
        min-height: 240px;
    }
    
    .quiz-question h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .quiz-option {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .design-switcher {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    
    .footer-credits {
        padding: 0 20px;
        text-align: center;
    }
}

/* Fix link colors in content pages */
.container a {
    color: #FF9F43;
    text-decoration: underline;
}
.container a:hover {
    color: #FECA57;
    text-decoration: none;
}

/* Mobile auth buttons inside nav - menu style */

/* Mobile quiz options */
@media (max-width: 768px) {
    .quiz-options {
        gap: 8px;
        min-height: auto;
    }
    
    .quiz-option {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 12px;
        gap: 10px;
    }
    
    .quiz-option .option-letter {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Mobile auth buttons - unified menu style */
.nav-auth-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-auth-mobile {
        display: flex;
        flex-direction: column;
        padding-top: 10px;
        border-top: 1px solid var(--border);
        margin-top: 10px;
    }
    
    .nav-auth-mobile .btn {
        width: 100%;
        text-align: left;
        padding: 12px 0;
        background: transparent !important;
        border: none !important;
        color: var(--accent) !important;
        font-weight: 500;
        text-decoration: none;
        margin-bottom: 4px;
    }
    
    .nav-auth-mobile .btn:last-child {
        margin-bottom: 0;
    }
    
    .nav-auth-mobile .btn:hover {
        color: var(--accent-hover) !important;
        background: transparent !important;
    }
    
    .nav-auth-mobile form {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .nav-auth-mobile button.btn-outline {
        width: 100%;
        border: 2px solid #e74c3c !important;
        color: #e74c3c !important;
        background: transparent;
    }
}

/* Mobile quiz options */
@media (max-width: 768px) {
    .quiz-options {
        gap: 8px;
        min-height: auto;
    }
    
    .quiz-option {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 12px;
        gap: 10px;
    }
    
    .quiz-option .option-letter {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
