/* ── Base body effects ──────────────────────────────────── */

body {
    background-image: radial-gradient(rgba(0, 255, 65, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* CRT scanline overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.04) 3px,
        rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ── Nav brand glitch ───────────────────────────────────── */

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.3); transform: none; }
    20%       { text-shadow: -3px 0 #ff00de, 3px 0 #00ffff; transform: translate(-2px) skewX(-0.5deg); }
    40%       { text-shadow:  3px 0 #ff00de,-3px 0 #00ffff; transform: translate(2px)  skewX( 0.5deg); }
    60%       { text-shadow: -1px 0 #ff00de, 1px 0 #00ffff; transform: translate(-1px); }
    80%       { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); transform: none; }
}

.nav-brand:hover,
.nav-link:hover {
    animation: glitch 0.35s steps(2) forwards;
}

/* ── Buttons ────────────────────────────────────────────── */

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #00ff41;
    color: #0d1117;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}
.btn-primary:hover {
    background: #00cc33;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #00ff41;
    border: 2px solid #00ff41;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: #00ff41;
    color: #0d1117;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* ── Terminal window ────────────────────────────────────── */

.terminal-window {
    background: #080c10;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    max-width: 42rem;
    margin: 0 auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 255, 65, 0.04);
}

.terminal-bar {
    background: #1c2128;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #30363d;
}

.terminal-dots { display: flex; gap: 0.5rem; align-items: center; }

.t-dot    { width: 12px; height: 12px; border-radius: 50%; }
.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-tgreen { background: #28c840; }

.terminal-tab {
    color: #6e7681;
    font-size: 0.8rem;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 1.5rem 2rem;
    min-height: 220px;
}

.t-line   { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.t-prompt { color: #00ff41; font-weight: bold; white-space: nowrap; font-size: 0.9rem; user-select: none; }
.t-cmd    { color: #f0f6fc; }

.t-output    { margin: 0.5rem 0 1.25rem 0; line-height: 1.7; }
.t-highlight { color: #f0f6fc; font-size: 2rem; font-weight: bold; display: block; text-shadow: 0 0 20px rgba(0, 255, 65, 0.12); }
.t-dim-text  { color: #8b949e; font-size: 0.95rem; line-height: 1.7; }

@keyframes t-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.t-cursor { color: #00ff41; margin-left: 1px; animation: t-blink 1s step-end infinite; }

/* ── Form elements ──────────────────────────────────────── */

.form-input {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.75rem;
    color: #f0f6fc;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.2);
}
.form-input::placeholder { color: #6e7681; }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 120px; }

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: #00ff41;
    color: #0d1117;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}
.submit-btn:hover { background: #00cc33; transform: translateY(-2px); box-shadow: 0 0 25px rgba(0, 255, 65, 0.5); }
.submit-btn:active { transform: translateY(0); }

/* HTMX loading states */
.btn-loading                { display: none; }
.htmx-request .btn-text     { display: none; }
.htmx-request .btn-loading  { display: inline; }

/* Form responses */
.response-success {
    margin-top: 1.5rem; padding: 1rem; border-radius: 6px;
    background: rgba(0, 255, 65, 0.1); color: white; display: block;
}
.response-error {
    margin-top: 1.5rem; padding: 1rem; border-radius: 6px;
    background: rgba(255, 0, 0, 0.1); border: 1px solid #ff4444; color: #ff4444; display: block;
}

/* ── About page: interest lists ─────────────────────────── */

.music-list, .activity-list, .movies-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}
.music-list li, .activity-list li, .movies-list li {
    color: #8b949e;
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    line-height: 1.5;
}
.music-list    li::before { content: '🎵'; position: absolute; left: 0; }
.activity-list li::before { content: '▸'; position: absolute; left: 0; color: #00ff41; font-weight: bold; }
.movies-list   li::before { content: '🎬'; position: absolute; left: 0; }
.music-list strong, .activity-list strong, .movies-list strong { color: #00ff41; }

/* ── Responsive tweaks ──────────────────────────────────── */

@media (max-width: 640px) {
    .terminal-body   { padding: 1rem 1.25rem; }
    .terminal-tab    { display: none; }
    .t-highlight     { font-size: 1.5rem; }
}
