/* Instagram Line Break Generator - tool-specific styles. Composes shared
 * primitives in tools.css; only this tool's layout lives here. */

:root {
    --ilb-accent: #d62976;
    --ilb-accent-dark: #962fbf;
    --ilb-accent-tint: #fdf2f8;
    --ilb-near: #d97706;
    --ilb-over: #dc2626;
}

.page-hero h1 .ilb-hero-mark {
    width: 1em;
    height: 1em;
    vertical-align: -0.12em;
    margin-right: 0.4rem;
    color: var(--ilb-accent);
}

/* ---- Standing instructions above the editor (the placeholder repeats
 * them but vanishes once text is pasted) ---- */
.ilb-intro { margin: 0 0 16px; font-size: 0.92rem; line-height: 1.55; color: #475569; }
.ilb-intro kbd {
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 1px 6px;
    border: 1px solid #d7dbe0;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #f8fafc;
    color: #1f2937;
}

/* ---- Two-column editor ---- */
.ilb-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ilb-col { display: flex; flex-direction: column; min-width: 0; }
.ilb-field-label { display: block; font-weight: 600; font-size: 0.92rem; color: #333; margin-bottom: 6px; }
.ilb-field-opt { font-weight: 400; color: #94a3b8; font-size: 0.82rem; }
.ilb-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 220px;
    resize: vertical;
    line-height: 1.6;
    flex: 0 0 auto;
}
.ilb-output { background: #fafafa; color: #1f2937; }
.ilb-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}
.ilb-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ilb-opt-label { font-size: 0.85rem; color: #475569; font-weight: 600; }
.ilb-select {
    font: inherit;
    font-size: 0.88rem;
    padding: 6px 28px 6px 10px;
    border: 1px solid #d7dbe0;
    border-radius: 8px;
    background-color: #fff;
    color: #1f2937;
    cursor: pointer;
    max-width: 100%;
}
.ilb-select:focus { outline: 2px solid var(--ilb-accent); border-color: var(--ilb-accent); }
.ilb-check { font-size: 0.85rem; color: #475569; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ilb-toolbar-hint { font-size: 0.82rem; color: #94a3b8; }
.ilb-copy-btn { padding: 9px 18px; font-size: 0.92rem; }

/* ---- Stats ---- */
.ilb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 18px 0 4px;
}
.ilb-stat {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.ilb-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ilb-accent-dark);
    font-variant-numeric: tabular-nums;
}
.ilb-stat-num small { font-size: 0.85rem; font-weight: 600; color: #94a3b8; }
.ilb-stat-label { font-size: 0.8rem; color: #64748b; }
.ilb-stat-bar { display: block; height: 6px; border-radius: 999px; background: #eef0f3; overflow: hidden; margin-top: 6px; }
.ilb-stat-bar i { display: block; height: 100%; width: 0; background: var(--ilb-accent); border-radius: 999px; transition: width 0.15s, background-color 0.15s; }
.ilb-stat.is-near .ilb-stat-num { color: var(--ilb-near); }
.ilb-stat.is-near .ilb-stat-bar i { background: var(--ilb-near); }
.ilb-stat.is-over .ilb-stat-num { color: var(--ilb-over); }
.ilb-stat.is-over .ilb-stat-bar i { background: var(--ilb-over); }

@media (max-width: 820px) {
    .ilb-columns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ilb-stats { grid-template-columns: 1fr 1fr; }
    .ilb-copy-btn { width: 100%; }
}
