/* 28-temporal.css — time-of-day salutation + holiday badge
 *
 * The QUAD language: square corners, 1px hairline, copper accent,
 * mono type in wide tracking. No gradients on the badge — the
 * greeting area already carries the accent, so the badge stays
 * quiet and lets the headline breathe.
 */

.greeting-salutation {
    font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--c-accent, #cc9050);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.greeting-salutation::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-accent, rgba(204, 144, 80, 0.22));
    max-width: 180px;
}

/* ── Holiday badge ─────────────────────────────────────────── */

.greeting-holiday {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 5px 10px 5px 8px;
    font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--c-ink-dim, #8a8478);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-2, rgba(255, 255, 255, 0.08));
    box-shadow: var(--shadow-inset-bezel, inset 0 1px 0 rgba(255, 255, 255, 0.05));
    animation: holidayIn 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 220ms;
}

.greeting-holiday-emoji {
    font-size: 13px;
    line-height: 1;
    filter: saturate(1.15);
}

/* Today is the one that gets the copper — it is the only state
   where the badge is genuinely "happening now". */
.greeting-holiday--today {
    color: var(--c-accent-bright, #d4a86a);
    border-color: var(--border-accent, rgba(204, 144, 80, 0.22));
    background: rgba(204, 144, 80, 0.08);
}

.greeting-holiday--upcoming {
    color: var(--c-ink-dim, #8a8478);
}

.greeting-holiday--recent {
    opacity: 0.72;
}

@keyframes holidayIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Reduced motion ────────────────────────────────────────── */

body.reduced-ui .greeting-holiday {
    animation: none;
}

/* Device-based UI limitations disabled — all devices get full animations */

/* ── Mobile ────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .greeting-salutation {
        font-size: 10px;
        letter-spacing: 0.14em;
        margin-bottom: 10px;
    }
    .greeting-salutation::after {
        max-width: 96px;
    }
    .greeting-holiday {
        font-size: 9px;
        padding: 4px 8px 4px 6px;
    }
}
