/* =============================================
   LURDAN — style.css
   ============================================= */

/* 1. FONTS */
@font-face { font-family: 'WarsawGothic'; src: url('warsaw.ttf'); }
@font-face { font-family: 'OCR-Std';     src: url('ocr.ttf'); }
@font-face { font-family: 'Sandana';     src: url('sandana.ttf'); }

/* 2. ROOT VARIABLES */
:root {
    --subtitle-ratio: 0.128;
    --teal: #009982;
    --teal-dark: #007a68;
    --teal-glow: rgba(0, 153, 130, 0.5);
    --teal-faint: rgba(0, 153, 130, 0.05);
}

/* 3. BASE */
html { font-size: 100%; }

body {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #121212;
    color: var(--teal);
    font-family: 'Sandana', serif;
    margin: 0;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* 4. LOGO */
.logo-container {
    text-align: center;
    margin-top: 8vh;
    margin-bottom: 0;
    width: 100%;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    margin: 0 auto;
}

.logo-link:hover .logo-main {
    opacity: 0.8;
    transition: 0.3s;
}

.logo-main {
    font-family: 'WarsawGothic', sans-serif;
    font-size: clamp(5rem, 18vw, 13rem);
    font-weight: 400;
    margin: 0;
    text-transform: lowercase;
    line-height: 0.85;
    letter-spacing: 0.005em;
    display: block;
    text-align: center;
    cursor: pointer;
}

.logo-subtitle {
    display: block;
    font-family: 'Sandana', serif;
    font-size: calc(1em * var(--subtitle-ratio));
    margin-top: -0.35em;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    font-weight: normal;
}

/* 5. NAVIGATION */
nav {
    margin-top: 1vh;
    margin-bottom: 4vh;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
}

nav a {
    font-family: 'OCR-Std', monospace;
    color: var(--teal);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: lowercase;
}

/* 6. MAIN CONTENT */
main {
    width: 90%;
    max-width: 800px;
    text-align: center;
}

h2 {
    font-family: 'WarsawGothic', sans-serif;
    text-transform: lowercase;
    font-size: clamp(2rem, 8vw, 3rem);
}

/* 7. BUTTONS */
button {
    background-color: var(--teal);
    color: #000;
    border: none;
    padding: 1rem;
    font-family: 'OCR-Std', monospace;
    font-weight: bold;
    cursor: pointer;
    text-transform: lowercase;
    width: 100%;
    transition: 0.3s;
}

button:hover { background-color: var(--teal-dark); }

.control-btn {
    background: transparent;
    color: var(--teal);
    border: 1px solid var(--teal);
    padding: 8px 20px;
    font-size: 0.8rem;
    width: 260px;
    white-space: normal;
}

.control-btn:hover {
    background: var(--teal);
    color: #000;
}

.terminal-button {
    background: transparent;
    border: 1px solid var(--teal);
    color: var(--teal);
    font-family: 'OCR-Std', monospace;
    padding: 5px 15px;
    margin-top: 15px;
    cursor: pointer;
    text-transform: lowercase;
    width: auto;
    font-weight: normal;
}

.terminal-button:hover {
    background: var(--teal);
    color: #000;
}

/* 8. FORMS */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 5%;
    margin-bottom: 10vh;
    width: 100%;
}

input, textarea {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--teal);
    padding: 1rem;
    color: #fff;
    font-family: 'OCR-Std', monospace;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* 9. RELEASE / HOME */
.release-date {
    font-family: 'OCR-Std', monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    text-transform: lowercase;
    margin-bottom: 2vh;
    letter-spacing: 0.1em;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 8vh auto;
    border: 1px solid var(--teal);
    background: #000;
    line-height: 0;
}

.video-container iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

.presave-container {
    margin-top: 20px;
    text-align: center;
}

.presave-link { text-decoration: none; }

/* 10. CONTACT */
#contact h2 {
    font-family: 'Sandana', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--teal);
    text-transform: lowercase;
    letter-spacing: 0.01em;
    margin-bottom: 2vh;
    font-weight: 400;
}

/* 11. ABOUT */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: left;
}

.about-section { margin-bottom: 5vh; }

.about-title {
    font-family: 'Sandana', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--teal);
    text-transform: lowercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 400;
}

.about-text {
    font-family: 'OCR-Std', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--teal);
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.about-text a {
    color: var(--teal);
    font-weight: bold;
    text-decoration: underline;
}

/* 12. FOOTER & SOCIALS */
footer {
    width: 100%;
    padding: 20px 0 40px 0;
    text-align: center;
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 4vh 0;
    margin-top: 5vh;
}

.social-footer a {
    color: var(--teal);
    font-size: 1.8rem;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.social-footer a:hover {
    transform: scale(1.2);
    color: #00ffda;
    text-shadow: 0 0 10px var(--teal-glow);
}

.copyright-text {
    font-family: 'OCR-Std', monospace;
    font-size: 0.75rem;
    color: var(--teal);
    text-transform: lowercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

footer .footer-link,
footer p.copyright-text a.footer-link,
a.footer-link:visited {
    color: rgba(0, 153, 130, 0.7) !important;
    text-decoration: none !important;
}

footer .footer-link:hover,
a.footer-link:hover {
    color: var(--teal) !important;
    text-decoration: underline !important;
}

/* 13. SECTION HEADERS (shared) */
.section-header,
.sandana-title {
    font-family: 'Sandana', serif;
    color: var(--teal);
    text-align: center;
    text-transform: lowercase;
    margin-bottom: 4vh;
}

.sandana-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.ocr-status {
    font-family: 'OCR-Std', monospace;
    color: var(--teal);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.7;
    margin-top: 0;
    letter-spacing: 1px;
    text-transform: lowercase;
}

/* 14. MUSIC PAGE */
.music-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.track-wrapper {
    width: 100%;
    max-width: 700px;
}

.countdown-container {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--teal);
    margin: 20px auto;
    max-width: 500px;
}

.countdown-label {
    font-family: 'Sandana', serif;
    color: var(--teal);
    text-transform: lowercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.timer-display {
    font-family: 'OCR-Std', monospace;
    color: var(--teal);
    font-size: clamp(2rem, 8vw, 3.5rem);
    text-shadow: 0 0 15px rgba(0, 153, 130, 0.6);
    letter-spacing: -2px;
}

.countdown-subtext {
    font-family: 'OCR-Std', monospace;
    font-size: 0.8rem;
    color: var(--teal);
    opacity: 0.6;
    margin-top: 10px;
    text-transform: lowercase;
}

/* 15. GAMES ARCHIVE */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 30px;
    justify-content: center;
    padding: 40px 0;
}

.game-card {
    display: flex;
    flex-direction: column;
    background: #000;
    border: 1px solid var(--teal);
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.game-card:hover {
    box-shadow: inset 0 0 0 1px var(--teal);
}

.game-thumb {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--teal);
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease;
}

.game-card:hover .game-thumb { filter: grayscale(0%) brightness(0.9); }

.game-info {
    padding: 12px;
    font-family: 'OCR-Std', monospace;
    background: #000;
}

.game-name {
    display: block;
    color: var(--teal);
    font-size: 1.1rem;
    font-weight: normal;
    text-transform: uppercase;
}


/* 16. GAME PLAYER */
.game-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

.game-frame-wrapper {
    position: relative;
    width: 800px;
    height: 600px;
    border: 2px solid var(--teal);
    overflow: hidden;
    background: #000;
}

#ruffle-player-container,
#game-iframe {
    width: 100%;
    height: 100%;
}

#game-iframe {
    border: none;
    background: #000;
}

#scanline-layer, .scanlines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    animation: crt-flicker 6s infinite;
}

#scanline-layer.off, .scanlines.off { display: none !important; }

#scanline-layer::before, .scanlines::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.18) 2px,
        rgba(0, 0, 0, 0.18) 4px
    );
}

#scanline-layer::after, .scanlines::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at center,
            transparent 60%,
            rgba(0, 0, 0, 0.55) 100%
        ),
        linear-gradient(
            rgba(0, 20, 10, 0.08),
            rgba(0, 20, 10, 0.08)
        );
}

@keyframes crt-flicker {
    0%   { opacity: 1; }
    92%  { opacity: 1; }
    93%  { opacity: 0.85; }
    94%  { opacity: 1; }
    96%  { opacity: 0.92; }
    100% { opacity: 1; }
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.game-meta {
    text-align: center;
    opacity: 0.6;
}

/* 17. KEY MAP */
.key-map {
    margin: 30px auto 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
    border-top: 1px solid rgba(0, 153, 130, 0.2);
    padding-top: 20px;
}

.map-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'OCR-Std', monospace;
    text-transform: lowercase;
    font-size: 0.75rem;
    color: var(--teal);
    letter-spacing: 1px;
}

.map-row span:first-child {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
    font-size: 0.65rem;
}

/* 18. ARCHIVE YEAR */
.archive-year {
    font-family: 'OCR-Std', monospace;
    text-transform: lowercase;
}

/* 19. POSTS / BLOG */
.posts-header {
    margin-bottom: 2vh;
}

.posts-controls {
    margin-bottom: 3vh;
}

.post-card {
    background: var(--teal);
    border: 1px solid #000;
    color: #000;
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.post-title {
    font-family: 'Sandana', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 400;
    text-transform: lowercase;
    color: #000;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.post-date {
    font-family: 'OCR-Std', monospace;
    font-size: 0.75rem;
    color: #000;
    opacity: 0.5;
    text-transform: lowercase;
}

.post-tag {
    font-family: 'OCR-Std', monospace;
    font-size: 0.7rem;
    color: #000;
    border: 1px solid #000;
    padding: 2px 8px;
    text-transform: lowercase;
}

.post-body {
    font-family: 'OCR-Std', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #000;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}
.post-content-image {
    display: block;
    max-width: 100%; /* Prevents image from overflowing the post card */
    height: auto;
    margin: 1.2rem auto; /* Spaces it out from the text */
    border-radius: 4px; /* Optional: matches most modern UI styles */
}
/* 20. RESPONSIVE */
@media (max-width: 600px) {
    .social-footer {
        gap: 1.2rem;
        font-size: 1.5rem;
    }

    nav {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.85rem;
    }
}