/* ─────────────────────────────────────────────
   danh.me — Components Stylesheet
   Additional components not in main style.css
   ───────────────────────────────────────────── */

/* Terminal prompt on single posts */
.terminal-prompt {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: rgba(0, 255, 157, 0.04);
    border: 1px solid rgba(0, 255, 157, 0.15);
    border-radius: 4px;
    width: fit-content;
}

.prompt-user  { color: #00ff9d; }
.prompt-at    { color: #484f58; }
.prompt-host  { color: #00d4ff; }
.prompt-sep   { color: #484f58; }
.prompt-path  { color: #ffb347; }
.prompt-dollar{ color: #8b949e; }

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: #00ff9d;
    font-size: 13px;
    margin-left: 2px;
}

/* Code copy button */
.copy-btn {
    position: absolute;
    top: 10px;
    left: 16px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 3px;
    color: #00ff9d;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 10;
}

.copy-btn:hover {
    background: rgba(0, 255, 157, 0.2);
}

.copy-btn.copied {
    background: rgba(0, 255, 157, 0.25);
    color: #00cc7a;
}

/* Reading time badge */
.reading-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #484f58;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    padding: 2px 8px;
    margin-left: 8px;
}

/* Post number badge (archive) */
.post-number-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(0, 255, 157, 0.3);
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ─── Alert boxes (shortcode-style custom classes) ─── */
.alert-box {
    border-radius: 6px;
    padding: 14px 18px;
    margin: 1.5rem 0;
    font-size: 14px;
    border-left: 3px solid;
    font-family: 'JetBrains Mono', monospace;
}

.alert-box.info {
    background: rgba(0, 212, 255, 0.06);
    border-color: #00d4ff;
    color: #8b949e;
}

.alert-box.warning {
    background: rgba(255, 179, 71, 0.06);
    border-color: #ffb347;
    color: #8b949e;
}

.alert-box.danger {
    background: rgba(255, 75, 75, 0.06);
    border-color: #ff4b4b;
    color: #8b949e;
}

.alert-box.success {
    background: rgba(0, 255, 157, 0.06);
    border-color: #00ff9d;
    color: #8b949e;
}

.alert-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.alert-box.info strong    { color: #00d4ff; }
.alert-box.warning strong { color: #ffb347; }
.alert-box.danger strong  { color: #ff4b4b; }
.alert-box.success strong { color: #00ff9d; }

/* ─── Section heading with line ─── */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 24px;
}

.section-heading::before {
    content: '//';
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #00ff9d;
    font-weight: 700;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* ─── Skill / tech badge row ─── */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: 3px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #8b949e;
    margin: 3px;
    transition: all 0.15s ease;
}

.tech-badge:hover {
    border-color: rgba(0, 255, 157, 0.3);
    color: #00ff9d;
    background: rgba(0, 255, 157, 0.06);
}

/* ─── Sticky sidebar "about" card ─── */
.sidebar-about-card {
    text-align: center;
    padding: 24px 16px;
}

.sidebar-about-card .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 157, 0.4);
    margin: 0 auto 12px;
    display: block;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
}

.sidebar-about-card .name {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 4px;
}

.sidebar-about-card .bio {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #8b949e;
    line-height: 1.6;
}

/* ─── Social links row ─── */
.social-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 4px !important;
    color: #8b949e !important;
    font-size: 14px;
    transition: all 0.15s ease !important;
    text-shadow: none !important;
}

.social-links a:hover {
    border-color: rgba(0, 255, 157, 0.4) !important;
    color: #00ff9d !important;
    background: rgba(0, 255, 157, 0.08) !important;
}
