/* ============================================================
   RINGWORLD.QUEST - ISOMETRIC MEGASTRUCTURE DESIGN
   ============================================================ */

/* Color Palette */
:root {
    --color-dark-brown: #3B2B1D;
    --color-sky-blue: #7BB3C9;
    --color-forest-green: #5E8C61;
    --color-charcoal: #1C1410;
    --color-rust-orange: #C75B39;
    --color-golden: #E8A94E;
    --color-cream: #F5D89A;
    --color-off-white: #FFF3E0;

    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-charcoal);
    color: var(--color-off-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================================
   RING PROGRESS INDICATOR
   ============================================================ */
.ring-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(28, 20, 16, 0.8);
    z-index: 1000;
    border-bottom: 1px solid var(--color-sky-blue);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-sky-blue), var(--color-golden));
    width: 0%;
    transition: width 0.1s linear;
}

.progress-label {
    position: fixed;
    top: 12px;
    left: 20px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--color-sky-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 1001;
}

/* ============================================================
   RING MAP NAVIGATION
   ============================================================ */
.ring-map {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ring-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--color-sky-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.ring-label:hover {
    opacity: 1;
    border: 1px solid var(--color-sky-blue);
    color: var(--color-golden);
}

.ring-label.active {
    opacity: 1;
    color: var(--color-golden);
    border: 1px solid var(--color-golden);
    box-shadow: 0 0 8px rgba(232, 169, 78, 0.3);
}

/* ============================================================
   BIOME SECTIONS - STACKED VIEWPORT CONTAINERS
   ============================================================ */
.biome-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1200px;
}

.isometric-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.9;
}

/* Plains Section */
.plains {
    background: linear-gradient(180deg, var(--color-sky-blue) 0%, var(--color-cream) 50%, var(--color-golden) 100%);
}

.plains-iso {
    background: linear-gradient(135deg, transparent 0%, rgba(94, 140, 97, 0.1) 50%, transparent 100%);
}

/* Ocean Section */
.ocean {
    background: linear-gradient(180deg, var(--color-sky-blue) 0%, #5A7FA0 100%);
}

.ocean-iso {
    background:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(123, 179, 201, 0.2) 20px, rgba(123, 179, 201, 0.2) 22px),
        linear-gradient(135deg, transparent 0%, rgba(91, 127, 160, 0.15) 100%);
}

/* Mountain Section */
.mountain {
    background: linear-gradient(180deg, #A89968 0%, var(--color-cream) 50%, #D4A574 100%);
}

.mountain-iso {
    background:
        linear-gradient(135deg, rgba(199, 91, 57, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, transparent 0%, rgba(94, 140, 97, 0.15) 50%);
}

/* Forest Section */
.forest {
    background: linear-gradient(180deg, var(--color-forest-green) 0%, #3D6B47 100%);
}

.forest-iso {
    background:
        repeating-linear-gradient(30deg, transparent, transparent 30px, rgba(95, 110, 60, 0.2) 30px, rgba(95, 110, 60, 0.2) 32px),
        linear-gradient(135deg, transparent 0%, rgba(60, 107, 71, 0.15) 100%);
}

/* City Section */
.city {
    background: linear-gradient(180deg, #2C2416 0%, var(--color-charcoal) 100%);
}

.city-iso {
    background:
        repeating-linear-gradient(45deg, transparent 0%, transparent 20px, rgba(232, 169, 78, 0.1) 20px, rgba(232, 169, 78, 0.1) 22px),
        repeating-linear-gradient(-45deg, transparent 0%, transparent 20px, rgba(123, 179, 201, 0.1) 20px, rgba(123, 179, 201, 0.1) 22px),
        linear-gradient(135deg, transparent 0%, rgba(199, 91, 57, 0.1) 100%);
}

/* Rim Wall Section */
.rim-wall {
    background: linear-gradient(180deg, var(--color-dark-brown) 0%, #1C1410 100%);
}

.rim-iso {
    background:
        linear-gradient(90deg, transparent 0%, rgba(232, 169, 78, 0.08) 25%, transparent 50%, rgba(123, 179, 201, 0.08) 75%, transparent 100%),
        linear-gradient(0deg, rgba(199, 91, 57, 0.15) 0%, transparent 50%);
}

/* ============================================================
   CONTENT TERMINALS
   ============================================================ */
.content-terminal {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: rgba(28, 20, 16, 0.85);
    border: 2px solid var(--color-sky-blue);
    box-shadow:
        0 0 30px rgba(123, 179, 201, 0.2),
        inset 0 0 20px rgba(123, 179, 201, 0.05);
    backdrop-filter: blur(8px);
    animation: terminal-glow 3s ease-in-out infinite;
}

@keyframes terminal-glow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(123, 179, 201, 0.2),
            inset 0 0 20px rgba(123, 179, 201, 0.05);
    }
    50% {
        box-shadow:
            0 0 40px rgba(123, 179, 201, 0.35),
            inset 0 0 25px rgba(123, 179, 201, 0.1);
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-golden);
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(232, 169, 78, 0.3);
}

.section-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-cream);
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 400;
}

/* Info Markers */
.info-marker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid rgba(123, 179, 201, 0.4);
    border-bottom: 1px solid rgba(123, 179, 201, 0.4);
    margin-top: 20px;
}

.marker-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-sky-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.marker-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-golden);
    font-weight: 400;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    position: relative;
    z-index: 10;
    background-color: var(--color-charcoal);
    border-top: 2px solid var(--color-sky-blue);
    padding: 60px 40px;
    text-align: center;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.footer-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-cream);
    margin-bottom: 15px;
}

.footer-text em {
    color: var(--color-golden);
    font-style: italic;
}

.footer-meta {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--color-sky-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
    .ring-map {
        display: none;
    }

    .progress-label {
        left: 10px;
        font-size: 0.65rem;
    }

    .content-terminal {
        margin: 20px;
        padding: 40px 25px;
        border-width: 1px;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .section-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .content-terminal {
        margin: 15px;
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .section-text {
        font-size: 0.9rem;
    }

    .info-marker {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
