/* LodeQuest Theme - Gold Crest RPG */

.lodequest-page {
    --accent: #d4a94e;
    --accent-hover: #e7c877;
    --accent-glow: rgba(212, 169, 78, 0.3);
    --bg-primary: #0a0f1e;
    --bg-secondary: #0d1426;
    --bg-tertiary: #121a30;
    --bg-card: #0d1426;
    --border: #26304a;
    --border-light: #35425f;
    --gradient-primary: linear-gradient(135deg, #e7c877 0%, #b9852e 100%);
}

/* Parchment-glow background */
.terminal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 25%, rgba(212, 169, 78, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(62, 92, 168, 0.08) 0%, transparent 55%);
    z-index: 0;
    animation: crestGlow 6s ease-in-out infinite;
}

@keyframes crestGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Hero Styling */
.lodequest-hero {
    background:
        radial-gradient(ellipse at center 40%, rgba(212, 169, 78, 0.10) 0%, transparent 60%),
        linear-gradient(to bottom, #0d1426 0%, #0a0f1e 100%);
}

.lodequest-hero .hero-overlay {
    background: linear-gradient(to bottom,
        rgba(10, 15, 30, 0.2) 0%,
        rgba(10, 15, 30, 0.8) 100%);
    z-index: 1;
}

.lodequest-hero .container {
    z-index: 2;
}

.lodequest-hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(212, 169, 78, 0.5));
    animation: crestFloat 4s ease-in-out infinite;
}

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

.lodequest-title {
    font-family: 'Cinzel', 'Inter', serif !important;
    font-size: clamp(2.4rem, 8vw, 4.4rem) !important;
    letter-spacing: 0.12em;
    color: #e7c877;
    text-shadow:
        0 0 10px rgba(212, 169, 78, 0.8),
        0 0 20px rgba(212, 169, 78, 0.5),
        0 0 40px rgba(212, 169, 78, 0.3);
    background: none !important;
    -webkit-text-fill-color: #e7c877 !important;
}

/* Override tech stack tags */
.lodequest-page .project-tech-stack span {
    background: rgba(212, 169, 78, 0.08);
    border: 1px solid rgba(212, 169, 78, 0.3);
    color: #e7c877;
    font-family: 'Fira Code', monospace;
}

/* Override section titles */
.lodequest-page .section-title {
    font-family: 'Cinzel', 'Inter', serif;
    letter-spacing: 0.06em;
}

.lodequest-page .section-title::after {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(212, 169, 78, 0.5);
}

/* Architecture cards */
.lodequest-page .arch-card {
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid rgba(212, 169, 78, 0.2);
    backdrop-filter: blur(10px);
}

.lodequest-page .arch-card:hover {
    border-color: #d4a94e;
    box-shadow:
        0 0 20px rgba(212, 169, 78, 0.15),
        inset 0 0 20px rgba(212, 169, 78, 0.04);
}

.lodequest-page .arch-card h3 {
    color: #e7c877;
    font-family: 'Cinzel', 'Inter', serif;
    font-size: 1.1rem;
}

/* Code preview */
.lodequest-page .code-preview {
    border: 1px solid rgba(212, 169, 78, 0.3);
    background: rgba(7, 11, 22, 0.95);
    box-shadow:
        0 0 20px rgba(212, 169, 78, 0.1),
        inset 0 0 30px rgba(212, 169, 78, 0.02);
}

.lodequest-page .code-preview code {
    color: #e7c877;
    text-shadow: 0 0 4px rgba(212, 169, 78, 0.4);
}

/* Badges */
.lodequest-page .badge {
    background: rgba(212, 169, 78, 0.08);
    border: 1px solid rgba(212, 169, 78, 0.3);
    color: #e7c877;
    font-family: 'Fira Code', monospace;
}

/* Story stats */
.lodequest-page .story-stat-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(212, 169, 78, 0.4));
    font-family: 'Cinzel', 'Inter', serif;
}

/* Gallery Carousel */
.gallery-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.carousel-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-width: 0;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.carousel-slide.active {
    display: flex;
}

.slide-img {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(212, 169, 78, 0.3);
    background: #0d1426;
    box-shadow: 0 0 30px rgba(212, 169, 78, 0.08);
}

.slide-caption {
    font-family: 'Fira Code', monospace;
    color: #e7c877;
    font-size: 1rem;
    margin-top: 16px;
    text-align: center;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid rgba(212, 169, 78, 0.3);
    color: #e7c877;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    border-color: #d4a94e;
    background: rgba(212, 169, 78, 0.1);
    box-shadow: 0 0 15px rgba(212, 169, 78, 0.2);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #d4a94e;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: #d4a94e;
    box-shadow: 0 0 10px rgba(212, 169, 78, 0.5);
}

@media (max-width: 768px) {
    .gallery-carousel {
        gap: 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Alt background */
.lodequest-page .alt-bg {
    background: #0d1426;
}

/* Footer */
.lodequest-page .back-link:hover {
    color: #e7c877;
    text-shadow: 0 0 10px rgba(212, 169, 78, 0.5);
}

/* Scroll hint */
.lodequest-page .scroll-hint span {
    color: rgba(212, 169, 78, 0.6);
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.2em;
}

.lodequest-page .scroll-arrow {
    border-color: rgba(212, 169, 78, 0.6);
}

@media (max-width: 768px) {
    .lodequest-title {
        letter-spacing: 0.06em;
    }

    .lodequest-hero-logo {
        width: 110px;
    }
}
