/* ════════════════════════════════════════════════════════════════════════════
   RECATOOLS — Roman Numeral Converter — style.css
   Tool-specific overrides only.
   Base styles live in /assets/css/tool-page.css.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Main input ──────────────────────────────────────────────────────────────── */
.roman-input-wrap {
    position: relative;
    flex: 1;
}

.tool-input {
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

/* ── Direction label ─────────────────────────────────────────────────────────── */
.direction-label-row {
    display:     flex;
    align-items: center;
    gap:         0.5rem;
    margin:      0.625rem 0 0;
    flex-wrap:   wrap;
}

#direction-label {
    font-size:   0.8125rem;
    color:       var(--muted);
    font-weight: 500;
}

/* ── Swap button ─────────────────────────────────────────────────────────────── */
#swap-btn {
    display:      inline-flex;
    align-items:  center;
    justify-content: center;
    gap:          0.375rem;
    padding:      0.5rem 1.125rem;
    background:   var(--bg);
    border:       1.5px solid var(--border);
    border-radius: 8px;
    font-size:    0.875rem;
    font-weight:  600;
    color:        var(--text);
    cursor:       pointer;
    transition:   border-color 0.15s, background 0.15s;
    white-space:  nowrap;
}
#swap-btn:hover {
    border-color: var(--accent);
    background:   #E8472F10;
    color:        var(--accent);
}

/* ── Output display ──────────────────────────────────────────────────────────── */
.roman-output-wrap {
    margin-top:  1.5rem;
    text-align:  center;
    padding:     1.75rem 1rem;
    border:      2px dashed var(--border);
    border-radius: 14px;
    background:  var(--bg);
    transition:  border-color 0.2s, background 0.2s;
    min-height:  90px;
    display:     flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:         0.375rem;
}
.roman-output-wrap:has(#roman-output.has-value) {
    border-style:  solid;
    border-color:  var(--accent);
    background:    #E8472F08;
}

#roman-output {
    font-family:  'IBM Plex Serif', Georgia, serif;
    font-size:    clamp(2rem, 8vw, 3.75rem);
    font-weight:  700;
    color:        #9ca3af;
    line-height:  1.1;
    transition:   color 0.2s, transform 0.15s;
    word-break:   break-word;
    letter-spacing: 0.04em;
}
#roman-output.has-value {
    color: var(--accent);
}

#output-summary {
    font-size:    0.9375rem;
    color:        var(--muted);
    font-weight:  500;
    margin-top:   0.125rem;
}

/* ── Step-by-step breakdown ──────────────────────────────────────────────────── */
#breakdown-section {
    margin-top:  1.25rem;
    padding:     1.125rem;
    border:      1.5px solid var(--border);
    border-radius: 10px;
    background:  var(--bg);
}
#breakdown-section[hidden] { display: none; }

.breakdown-label {
    font-size:   0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color:       var(--muted);
    margin-bottom: 0.75rem;
}

.breakdown-chips {
    display:    flex;
    flex-wrap:  wrap;
    align-items: center;
    gap:        0.5rem;
}

.breakdown-chip {
    display:      inline-flex;
    align-items:  center;
    gap:          0.35rem;
    padding:      0.3rem 0.75rem;
    border:       1.5px solid;
    border-radius: 999px;
    font-size:    0.9375rem;
    font-weight:  600;
    background:   transparent;
    transition:   transform 0.1s;
}
.breakdown-chip:hover {
    transform: translateY(-1px);
}

.breakdown-symbol {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size:   1.05rem;
    font-weight: 700;
}

.breakdown-value {
    font-size:   0.8125rem;
    opacity:     0.85;
}

.breakdown-plus {
    font-size:   1.125rem;
    font-weight: 700;
    color:       var(--muted);
    flex-shrink: 0;
}

/* ── Quick-select pills ──────────────────────────────────────────────────────── */
.quick-select-row {
    margin-top:  1.25rem;
    display:     flex;
    flex-wrap:   wrap;
    align-items: center;
    gap:         0.375rem;
}

.quick-select-label {
    font-size:   0.8125rem;
    font-weight: 600;
    color:       var(--muted);
    margin-right: 0.125rem;
    white-space: nowrap;
}

.quick-pill {
    padding:      0.25rem 0.6875rem;
    border:       1.5px solid var(--border);
    border-radius: 999px;
    font-size:    0.8125rem;
    font-weight:  600;
    color:        var(--text);
    background:   #fff;
    cursor:       pointer;
    transition:   border-color 0.15s, background 0.15s, color 0.15s;
}
.quick-pill:hover {
    border-color: var(--accent);
    background:   #E8472F10;
    color:        var(--accent);
}

/* ── Current year callout ────────────────────────────────────────────────────── */
.current-year-callout {
    margin-top:  1.25rem;
    padding:     0.75rem 1rem;
    background:  #4f46e510;
    border:      1.5px solid #4f46e540;
    border-radius: 8px;
    font-size:   0.9375rem;
    color:       #4f46e5;
    text-align:  center;
}
.roman-highlight {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size:   1.0625rem;
}

/* ── Error message ───────────────────────────────────────────────────────────── */
.error-msg {
    margin-top: 0.75rem;
    font-size:  0.9rem;
    color:      #dc2626;
    font-weight: 500;
}
.error-msg[hidden] { display: none; }

/* cache-buster: 2026-05-24T05:06:05Z */
