/* Reusable UI components (mirror the .cshtml partials). */

/* brand lockup */
.wordmark { display: inline-flex; align-items: center; gap: 0.5rem; }
.wordmark-text {
    font-family: var(--font-serif);
    text-transform: lowercase;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--halo);
    font-size: 1.5rem;
    font-weight: 600;
}
.bolt-sm { height: 1.25rem; width: auto; }
.bolt-md { height: 1.5rem; width: auto; }
.bolt-lg { height: 2rem; width: auto; }

/* eyebrow / tag */
.tag { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--tide); }

/* surfaces */
.card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }

/* gradient text */
.text-charge { background-image: var(--charge); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn-charge {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: none; cursor: pointer; border-radius: var(--radius-sm);
    background: var(--charge); padding: 0.625rem 1.25rem;
    font-family: inherit; font-size: 0.95rem; font-weight: 600; color: #0b0d0e;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 30px -10px rgba(22, 255, 101, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.btn-charge:hover { transform: translateY(-2px); box-shadow: 0 14px 42px -10px rgba(22, 255, 101, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn-charge:active { transform: translateY(0); }
.btn-charge:disabled { transform: none; cursor: not-allowed; opacity: 0.5; box-shadow: none; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    cursor: pointer; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: transparent; padding: 0.5rem 1rem;
    font-family: inherit; font-size: 0.95rem; font-weight: 500; color: var(--halo);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: rgba(22, 255, 101, 0.6); background: rgba(22, 255, 101, 0.06); }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* form controls */
.field {
    width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--panel); padding: 0.625rem 0.875rem; color: var(--halo);
    font-family: inherit; font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field::placeholder { color: rgba(115, 149, 152, 0.5); }
.field:focus { outline: none; border-color: rgba(22, 255, 101, 0.7); box-shadow: 0 0 0 3px rgba(22, 255, 101, 0.16); }
.lbl { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 500; color: var(--foge); }

/* validation (asp-validation tag helpers) */
.field.input-validation-error { border-color: var(--danger); }
.field-validation-error { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: var(--danger); }
.validation-summary-errors { color: var(--danger); font-size: 0.875rem; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

/* status pill (component: _StatusPill) */
.status-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid var(--line);
}
.status-pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.status-done { color: var(--surge); border-color: rgba(22, 255, 101, 0.35); }
.status-generating { color: var(--arc); border-color: rgba(0, 254, 222, 0.35); }
.status-draft { color: var(--tide); }
.status-failed { color: var(--danger); border-color: rgba(255, 107, 107, 0.35); }

/* deck card (component: _DeckCard) */
.deck-card {
    display: flex; flex-direction: column; gap: 0.85rem; padding: 1.25rem;
    border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.deck-card:hover { border-color: rgba(22, 255, 101, 0.35); transform: translateY(-2px); }
.deck-card-title { font-size: 1.05rem; font-weight: 600; color: var(--halo); }
.deck-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.deck-card-date { font-size: 0.8rem; color: var(--tide); font-variant-numeric: tabular-nums; }

/* storyline slide card (component: _StorylineSlideCard) */
.slide-card { display: flex; gap: 1rem; padding: 1.15rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.slide-card-num {
    flex: none; width: 2rem; height: 2rem; border-radius: 0.6rem;
    display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
    color: #0b0d0e; background: var(--charge);
}
.slide-card-body { min-width: 0; }
.slide-card-framework { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tide); }
.slide-card-title { margin-top: 0.15rem; font-size: 1.05rem; font-weight: 600; color: var(--halo); }
.slide-card-bullets { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--foge); font-size: 0.9rem; }
.slide-card-bullets li { margin: 0.2rem 0; }

/* empty state */
.empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    padding: 4rem 1.5rem; text-align: center;
    border: 1px dashed var(--line); border-radius: var(--radius); color: var(--tide);
}
.empty-state .empty-title { color: var(--halo); font-size: 1.1rem; font-weight: 600; }
