/* ═══════════════════════════════════════════
   alopez.info — Ángel López personal page
   ═══════════════════════════════════════════ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161e;
    --bg-card-hover: #1c1c26;
    --text-primary: #e2e4e9;
    --text-secondary: #8b8fa3;
    --text-muted: #5a5e72;
    --accent: #00D68F;
    --accent-dim: #00B27A;
    --accent-glow: rgba(0, 214, 143, 0.15);
    --accent-glow-strong: rgba(0, 214, 143, 0.3);
    --border: #1e1e2a;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 214, 143, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 214, 143, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ─── NAV ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-logo span { color: var(--text-muted); }

.lang-switcher {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 2px;
    border: 1px solid var(--border);
}

.lang-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn:hover { color: var(--text-secondary); }

.lang-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 500;
}

/* ─── HERO ─── */
.hero {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border);
}

.hero-prompt {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-prompt .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
}

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

h1 {
    font-family: var(--font-mono);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--text-primary);
}

h1 .accent { color: var(--accent); }

.hero-titles {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.8;
}

.hero-titles a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.hero-titles a:hover { border-bottom-color: var(--accent); }

.hero-bio {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.8;
}

.hero-bio p { margin-bottom: 12px; }
.hero-bio p:last-child { margin-bottom: 0; }

/* ─── Social links ─── */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.25s;
    background: var(--bg-secondary);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ─── SECTIONS ─── */
section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header::before {
    content: '>';
    color: var(--text-muted);
}

h2 {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* ─── VIDEO ─── */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── FEEDS ─── */
.feeds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.feed-card:hover { border-color: var(--accent-dim); }

.feed-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
}

.feed-card-header svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.feed-card-body {
    padding: 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-card-body .placeholder-msg {
    padding: 24px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    font-family: var(--font-mono);
    line-height: 1.6;
}

.feed-card-body .placeholder-msg a {
    color: var(--accent);
    text-decoration: none;
}

.feed-card-body .placeholder-msg a:hover {
    text-decoration: underline;
}

/* ─── FOOTER ─── */
footer {
    padding: 40px 0;
    text-align: center;
}

.footer-line {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.footer-line a {
    color: var(--accent-dim);
    text-decoration: none;
}

.footer-line a:hover { text-decoration: underline; }

.footer-pgp {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    opacity: 0.6;
}

/* ─── ANIMATIONS ─── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .feeds-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero { padding: 48px 0 40px; }
    .social-links { flex-wrap: wrap; }
    .social-link { font-size: 12px; padding: 6px 12px; }
    section { padding: 40px 0; }
}
