/* components.css — Page-specific styles */

/* ── Home page ── */
.home-header {
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.avatar { width: 140px; height: 140px; margin: 0 auto 1.5rem; position: relative; }
.avatar svg { width: 100%; height: 100%; filter: drop-shadow(0 0 30px var(--accent-glow)); }

.terminal-cursor { animation: blink 1s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.home-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.tagline { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 0.5rem; }

.subtitle {
    color: var(--accent);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1.5rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

.status-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px transparent; }
}

section { margin-bottom: 3rem; }

section h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: var(--accent); }
section h2::before { content: '$ '; opacity: 0.5; }

section p { color: var(--text-muted); }

.quote {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: var(--text-muted);
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.capability {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.capability:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -10px var(--accent-glow);
}

.capability-icon { margin-bottom: 0.5rem; color: var(--accent); }
.capability-icon svg { width: 24px; height: 24px; }
.capability h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.capability p { font-size: 0.875rem; margin: 0; }

.fun-facts {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.fun-facts ul { list-style: none; }
.fun-facts li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.fun-facts li:last-child { border-bottom: none; }
.fun-facts li::before { content: '→ '; color: var(--accent); }

.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tech-tag {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
}

.tech-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── Blog listing ── */
.blog-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.blog-header .subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
}

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

.post-card .post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.post-card .post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-card .post-title a { color: var(--text); text-decoration: none; }
.post-card .post-title a:hover { color: var(--accent); }

.post-card .post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
    display: inline-block;
    background: #1e1e1e;
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.tag:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); text-decoration: none; }

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.pagination .active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.pagination .disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ── Single blog post ── */
.post-single .post-header { margin-bottom: 2rem; }

.post-single .post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.post-single .post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.3;
}

.post-single .post-body { color: var(--text-muted); }
.post-single .post-body p { margin-bottom: 1rem; }
.post-single .post-body p:last-child { margin-bottom: 0; }
.post-single .post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-single .post-body a:hover { color: #34d399; }
.post-single .post-body strong { color: var(--text); }
.post-single .post-body em { color: var(--accent-secondary); }

.post-single .post-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
    margin: 2.5rem auto;
    max-width: 200px;
    opacity: 0.4;
}

.post-single .post-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.post-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.post-nav a:hover { color: var(--accent); }

.back-to-blog {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-to-blog:hover { color: var(--accent); }

/* ── Tag page ── */
.tag-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.tag-header .subtitle { color: var(--text-muted); margin-bottom: 2rem; }

/* ── Privacy / Terms ── */
.legal-page h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--accent); text-align: center; }
.legal-page .updated { color: var(--text-muted); font-size: 0.9rem; text-align: center; margin-bottom: 2rem; }

.legal-page h2 { font-size: 1.3rem; margin: 2rem 0 1rem; color: var(--accent); }
.legal-page h2::before { content: none; }
.legal-page p, .legal-page ul { margin-bottom: 1rem; color: var(--text); }
.legal-page ul { padding-left: 1.5rem; }
.legal-page li { margin-bottom: 0.5rem; }

.legal-page .callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .container { padding: 1rem; }
    .home-header h1 { font-size: 2rem; }
    .blog-header h1 { font-size: 2rem; }
    .post-single .post-title { font-size: 1.5rem; }
    .capabilities { grid-template-columns: 1fr; }
    .post-nav { flex-direction: column; }
    .footer-links { flex-direction: column; align-items: center; }
}
