/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: #000;
    color: #0f0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* Main container */
.crt-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

/* CRT overlay effects */
.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;

    /* Scanlines */
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );

    /* Vignette */
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.8);
}

/* CRT warm-up animation */
@keyframes crt-warmup {
    0% {
        filter: brightness(0) blur(20px);
        opacity: 0;
    }
    30% {
        filter: brightness(2) blur(10px);
        opacity: 0.5;
    }
    100% {
        filter: brightness(1) blur(0);
        opacity: 1;
    }
}

.crt-container {
    animation: crt-warmup 0.8s ease-out;
}

/* Terminal content */
.terminal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Custom scrollbar */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}

/* Title */
.ascii-title {
    color: #0f0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin-bottom: 2rem;
}

.ascii-title pre {
    margin: 0;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: clamp(8px, 1.5vw, 18px);
    line-height: 1.2;
    font-weight: normal;
}

/* Typewriter wrapper */
.typewriter-container {
    max-width: 800px;
    text-align: left;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.8;
}

/* Typewriter text */
.typewriter-text {
    color: #0f0;
    white-space: pre-wrap;
    display: inline;
}

.typewriter-text strong {
    color: #0ff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Caret */
.caret {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #0f0;
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.caret.hidden {
    display: none;
}

/* Podcast logos */
.podcast-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 3rem;
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.podcast-logos.visible {
    opacity: 1;
}

.podcast-logos a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.podcast-logos a:hover,
.podcast-logos a:focus {
    filter: brightness(1.2);
    transform: scale(1.1);
    outline: none;
}

.podcast-logos a:focus-visible {
    outline: 2px solid #0f0;
    outline-offset: 4px;
    border-radius: 4px;
}

.podcast-logos svg,
.podcast-logos img {
    width: 40px;
    height: 40px;
    display: block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .crt-container {
        animation: none;
        filter: none;
    }

    .caret {
        animation: none;
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .ascii-title pre {
        font-size: clamp(7px, 1.8vw, 14px);
    }

    .typewriter-container {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ascii-title pre {
        font-size: 6px;
    }

    .typewriter-container {
        font-size: 11px;
    }

    .podcast-logos {
        gap: 20px;
    }

    .podcast-logos svg,
    .podcast-logos img {
        width: 32px;
        height: 32px;
    }
}
