/* ─────────────────────────────────────────────────────────────────────────
   Ciao Verbs, conjugation reference styles

   Scoped to the /italian-verbs/ tree: verb pages, group hubs, tense guides.
   Tokens come from styles.css; this file adds no new colours.
   ───────────────────────────────────────────────────────────────────────── */

/* ─── Verb page header ────────────────────────────────────────────────── */

.verb-hero {
    padding: var(--sp-xl) 0 var(--sp-lg);
    background: linear-gradient(180deg, var(--green-tint) 0%, #fff 100%);
    border-bottom: 1px solid var(--outline);
}

.verb-hero h1 {
    margin-bottom: var(--sp-xs);
}

.verb-hero__gloss {
    font-size: 1.15rem;
    color: var(--ink-muted);
    margin-bottom: var(--sp-md);
}

.verb-facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.verb-facts li {
    display: inline-flex;
    align-items: baseline;
    gap: var(--sp-xs);
    background: #fff;
    border: 1px solid var(--outline);
    border-radius: var(--r-full);
    padding: 0.3rem 0.8rem;
    font-size: 0.88rem;
    color: var(--ink-muted);
}

.verb-facts b {
    color: var(--ink);
}

.verb-facts .is-irregular {
    border-color: rgba(184, 132, 7, 0.45);
    background: #fdf7e6;
    color: var(--sunny-deep);
}

.verb-facts .is-regular {
    border-color: rgba(0, 121, 74, 0.3);
    background: var(--green-tint);
    color: var(--green-dark);
}

/* ─── Key-forms strip ─────────────────────────────────────────────────── */
/* The four forms every other tense is built from. Surfaced above the tables
   because "what is the participio passato of X" is itself a search. */

.key-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sp-md);
    margin: var(--sp-lg) 0 var(--sp-xl);
    padding: 0;
    list-style: none;
}

.key-forms li {
    background: var(--surface-container);
    border: 1px solid var(--outline);
    border-radius: var(--r-md);
    padding: var(--sp-md);
}

.key-forms dt,
.key-forms__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: var(--sp-xs);
}

.key-forms__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}

/* ─── Mood sections + conjugation tables ──────────────────────────────── */

.mood-group {
    margin-bottom: var(--sp-xl);
}

.mood-group__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-dark);
    padding-bottom: var(--sp-sm);
    border-bottom: 2px solid var(--green-tint);
    margin-bottom: var(--sp-lg);
}

.tense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-lg);
}

.conj-table {
    border: 1px solid var(--outline);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
}

.conj-table__head {
    padding: var(--sp-md);
    background: var(--surface-container);
    border-bottom: 1px solid var(--outline);
}

.conj-table__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.conj-table__english {
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin: 2px 0 0;
}

.conj-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.conj-table td {
    padding: 0.5rem var(--sp-md);
    border-bottom: 1px solid var(--surface-high);
}

.conj-table tr:last-child td {
    border-bottom: 0;
}

.conj-table__pronoun {
    width: 38%;
    color: var(--ink-faint);
    font-size: 0.9rem;
}

.conj-table__form {
    font-weight: 600;
}

/* Feminine agreement variant on compound essere tenses. Shown inline and
   dimmed: it is a second correct answer, not a separate row, and stacking it
   as its own row would double the length of every compound table. */
.conj-table__feminine {
    display: block;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--ink-faint);
}

.conj-note {
    padding: var(--sp-sm) var(--sp-md);
    background: var(--surface-container);
    border-top: 1px solid var(--outline);
    font-size: 0.82rem;
    color: var(--ink-faint);
}

/* ─── Verb index / hub ────────────────────────────────────────────────── */

.verb-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-sm);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-xl);
}

.verb-list a {
    display: block;
    padding: var(--sp-sm) var(--sp-md);
    border: 1px solid var(--outline);
    border-radius: var(--r-md);
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.verb-list a:hover {
    border-color: var(--green);
    background: var(--green-tint);
}

.verb-list__infinitive {
    font-weight: 700;
    color: var(--green-dark);
}

.verb-list__gloss {
    display: block;
    font-size: 0.85rem;
    color: var(--ink-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
    margin-bottom: var(--sp-lg);
    padding: 0;
    list-style: none;
}

.alpha-nav a {
    display: inline-block;
    min-width: 2.1rem;
    text-align: center;
    padding: 0.25rem 0.4rem;
    border: 1px solid var(--outline);
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.alpha-nav a:hover {
    background: var(--green-tint);
    border-color: var(--green);
}

/* ─── Tense guide ─────────────────────────────────────────────────────── */

.use-list {
    display: grid;
    gap: var(--sp-md);
    padding: 0;
    margin: 0 0 var(--sp-xl);
    list-style: none;
}

.use-case {
    border: 1px solid var(--outline);
    border-left: 4px solid var(--green-bright);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: var(--sp-md) var(--sp-lg);
    background: var(--surface);
}

.use-case h3 {
    margin-bottom: var(--sp-xs);
}

.use-case p {
    color: var(--ink-muted);
    margin-bottom: var(--sp-sm);
}

.example {
    margin: 0;
}

.example__it {
    font-weight: 600;
    color: var(--ink);
}

.example__en {
    color: var(--ink-faint);
    font-size: 0.92rem;
}

.pattern-table th:first-child,
.pattern-table td:first-child {
    white-space: nowrap;
}

.endings-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--sp-lg) 0;
    font-size: 0.97rem;
}

.endings-table th,
.endings-table td {
    text-align: left;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--outline);
}

.endings-table thead th {
    background: var(--surface-container);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.endings-table td:first-child {
    color: var(--ink-faint);
    width: 22%;
}

.endings-table strong {
    color: var(--green-dark);
}

/* ─── Cross-links ─────────────────────────────────────────────────────── */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    padding: 0;
    margin: 0 0 var(--sp-lg);
    list-style: none;
}

.chip-row a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--outline);
    border-radius: var(--r-full);
    background: var(--surface);
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--ink-muted);
}

.chip-row a:hover {
    border-color: var(--green);
    background: var(--green-tint);
    color: var(--green-dark);
}
