@charset "UTF-8";

/*
    furnace-calculator-v1_0.css
    Estilos específicos da página "Calculadora de Combustível e Smelting".
    Depende de principal-v2_0.css e dos componentes genéricos de tools-v1_0.css
    (reaproveita .result-grid, .result-card e .formulas-box de lá).
*/

/* ── Tipo de fornalha ───────────────────────────────────────────────────── */
.furnace-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.furnace-type-card {
    background: var(--color05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
}

.furnace-type-card i {
    display: block;
    font-size: 1.6em;
    color: var(--color01);
    margin-bottom: 10px;
}

.furnace-type-card-name {
    font-size: 0.95em;
    font-weight: bold;
    color: white;
}

.furnace-type-card-desc {
    font-size: 0.75em;
    color: var(--color04);
    margin-top: 4px;
}

.furnace-type-card-speed {
    font-size: 0.75em;
    color: #7fb3ff;
    font-weight: bold;
    margin-top: 4px;
}

.furnace-type-card:hover {
    border-color: var(--color01);
}

.furnace-type-card.is-active {
    background: var(--color06);
    border-color: #3d5aa8;
}

.furnace-type-card.is-active i {
    color: #7fb3ff;
}

/* ── Item a fundir (entrada) ────────────────────────────────────────────── */
.smelt-input-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.smelt-input-block {
    flex: 1;
    min-width: 160px;
    text-align: left;
}

.smelt-input-block label {
    display: block;
    font-size: 0.85em;
    color: #cfd8dc;
    margin-bottom: 8px;
    font-weight: bold;
}

.smelt-input-block input {
    background-color: var(--color06);
    color: white;
    border: 2px solid var(--color01);
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.15em;
    font-weight: bold;
    height: 46px;
    padding: 0 14px;
}

.smelt-input-block input:focus {
    border-color: var(--color02);
    box-shadow: 0 0 5px var(--color02);
    outline: none;
}

.smelt-input-hint {
    font-size: 0.75em;
    color: var(--color04);
    margin-top: 6px;
    width: 100%;
}

/* ── Grids de seleção (itens / combustíveis) ────────────────────────────── */
.pick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.pick-card {
    background: var(--color05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
}

.pick-card-icon {
    font-size: 1.3em;
    line-height: 1;
    margin-bottom: 4px;
}

.pick-card-name {
    font-size: 0.72em;
    font-weight: bold;
    color: white;
}

.pick-card-sub {
    font-size: 0.64em;
    color: var(--color04);
    margin-top: 2px;
}

.pick-card:hover {
    border-color: var(--color01);
}

.pick-card.is-active {
    background: var(--color06);
    border-color: #3d5aa8;
}

.pick-card.is-active .pick-card-name {
    color: #7fb3ff;
}

/* ── Fornalha em operação ───────────────────────────────────────────────── */
.operation-flow {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color06);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}

.operation-flow-icon {
    position: relative;
    font-size: 1.8em;
    flex-shrink: 0;
}

.operation-flow-qty {
    position: absolute;
    bottom: -6px;
    right: -10px;
    font-size: 0.35em;
    background: var(--color05);
    color: white;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: bold;
}

.operation-flow-arrow {
    color: var(--color04);
    font-size: 1.1em;
    flex-shrink: 0;
}

.operation-flow-bar-block {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.operation-flow-bar-label {
    font-size: 0.85em;
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.operation-flow-bar-track {
    height: 10px;
    border-radius: 5px;
    background: var(--color05);
    overflow: hidden;
}

.operation-flow-bar-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #ffd97a, var(--color01));
    width: 100%;
}

.operation-flow-bar-caption {
    font-size: 0.75em;
    color: var(--color04);
    margin-top: 6px;
}

.operation-mismatch-hint {
    font-size: 0.78em;
    color: var(--color01);
    margin-bottom: 14px;
}

/* ── Comparativo de combustíveis ─────────────────────────────────────────── */
.fuel-compare-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.fuel-compare-row:last-child {
    margin-bottom: 0;
}

.fuel-compare-label {
    width: 130px;
    font-size: 0.8em;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.fuel-compare-track {
    flex: 1;
    height: 16px;
    border-radius: 4px;
    background: var(--color06);
    overflow: hidden;
}

.fuel-compare-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--color04);
}

.fuel-compare-fill.is-selected { background: #3d5aa8; }
.fuel-compare-fill.is-best { background: #3ac9a0; }

.fuel-compare-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.68em;
    color: var(--color04);
    margin-top: 8px;
    padding-left: 140px;
}

.fuel-compare-axis-caption {
    text-align: center;
    font-size: 0.72em;
    color: var(--color04);
    margin-top: 4px;
}

/* ── Tabela completa de combustíveis ─────────────────────────────────────── */
.fuel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.fuel-table th {
    text-align: left;
    font-size: 0.7em;
    color: var(--color04);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fuel-table th:not(:first-child),
.fuel-table td:not(:first-child) {
    text-align: right;
}

.fuel-table td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: white;
}

.fuel-table td.is-numeric {
    font-family: monospace;
    color: #7fb3ff;
}

.fuel-table-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fuel-table-eff-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.fuel-table-eff-track {
    width: 70px;
    height: 8px;
    border-radius: 4px;
    background: var(--color06);
    overflow: hidden;
}

.fuel-table-eff-fill {
    height: 100%;
    border-radius: 4px;
    background: #3ac9a0;
}

.fuel-table-eff-value {
    font-family: monospace;
    color: #3ac9a0;
    width: 34px;
}

.fuel-table tr.is-top .fuel-table-name span:first-child {
    color: #3ac9a0;
    font-weight: bold;
}

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media screen and (max-width: 700px) {
    .furnace-type-grid {
        grid-template-columns: 1fr;
    }

    .pick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .operation-flow {
        flex-wrap: wrap;
    }

    .operation-flow-bar-block {
        width: 100%;
    }

    .fuel-compare-label {
        width: 90px;
        font-size: 0.72em;
    }

    .fuel-compare-scale {
        padding-left: 100px;
    }

    .fuel-table {
        font-size: 0.72em;
    }

    .fuel-table th,
    .fuel-table td {
        padding: 6px;
    }

    .fuel-table-eff-track {
        width: 40px;
    }
}