/* Analytics consent prompt.
 *
 * Styled to match the terminal window on the landing page: same glass-card
 * surface, the same traffic-light dots in danger/warning/accent, a centred
 * host title, and the accent-coloured visitor@ijaz:~$ prompt.
 *
 * Loaded by the homepage and both blog templates via /assets/consent.css.
 */

.consent-term {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 60;
    max-width: 40rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(22, 22, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(42, 42, 45, 0.6);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.consent-term.hidden { display: none; }
.consent-term.is-dragging { transition: none; }

/* Title bar */
.consent-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(13, 13, 14, 0.8);
    border-bottom: 1px solid #2A2A2D;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.consent-term.is-dragging .consent-bar-top { cursor: grabbing; }
.consent-dots { display: flex; align-items: center; gap: 0.5rem; }
.consent-dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; display: block; }
.consent-dot-r { background: rgba(255, 49, 49, 0.6); }
.consent-dot-y { background: rgba(255, 184, 0, 0.6); }
.consent-dot-g { background: rgba(0, 255, 163, 0.6); }
.consent-title { font-size: 0.75rem; color: #5A5A5D; }
.consent-spacer { width: 3.5rem; }              /* balances the dots, centring the title */

/* Body */
.consent-body { padding: 1.25rem 1.5rem 1.5rem; }
.consent-cmd { font-size: 0.8rem; color: #E8E8E8; margin: 0 0 0.9rem; }
.consent-user { color: #00FFA3; }
.consent-q { font-size: 0.95rem; font-weight: 700; color: #00FFA3; margin: 0 0 0.6rem; }
.consent-text { font-size: 0.8rem; line-height: 1.8; color: #8A8A8D; margin: 0; }
.consent-text strong { color: #E8E8E8; font-weight: 700; }

.consent-more {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0;
    text-align: left;
    background: none;
    border: none;
    color: #8A8A8D;
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.consent-more:hover { color: #E8E8E8; }
.consent-more-sign { color: #00FFA3; margin-right: 0.35rem; }

.consent-detail { font-size: 0.75rem; line-height: 1.75; color: #8A8A8D; margin-top: 0.7rem; }
.consent-detail.hidden { display: none; }
.consent-detail ul { margin: 0.4rem 0 0.6rem; padding-left: 1.1rem; }
.consent-detail li { margin: 0.2rem 0; list-style: none; position: relative; }
.consent-detail li::before { content: "-"; color: #00FFA3; position: absolute; left: -1.1rem; }
.consent-detail p { margin: 0.4rem 0; }

/* Actions */
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.consent-btn {
    flex: 1 1 10rem;
    text-align: left;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #2A2A2D;
    background: transparent;
    color: #8A8A8D;
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.consent-btn:hover { color: #E8E8E8; border-color: #5A5A5D; background: rgba(22, 22, 24, 0.9); }
.consent-btn-yes {
    border-color: rgba(0, 255, 163, 0.45);
    background: rgba(0, 255, 163, 0.09);   /* filled by default, so the preferred action reads first */
    color: #E8E8E8;
}
.consent-btn-yes:hover {
    border-color: rgba(0, 255, 163, 0.75);
    background: rgba(0, 255, 163, 0.16);
}
.consent-key { color: #00FFA3; margin-right: 0.4rem; }
