@charset "UTF-8";

/*
    mob-farm-calculator-v1_0.css
    Estilos específicos da página "Calculadora de Produção de Mob Farm".
    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á).
*/

/* ── Mob alvo ───────────────────────────────────────────────────────────── */
.mob-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.mob-card {
    background: var(--color05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
}

.mob-card i {
    display: block;
    font-size: 1.3em;
    margin-bottom: 6px;
}

.mob-card-icon {
    font-size: 1.5em;
    line-height: 1;
    margin-bottom: 6px;
}

.mob-card-name {
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.mob-card-xp {
    font-size: 0.68em;
    color: var(--color04);
    margin-top: 2px;
}

.mob-card:hover {
    border-color: var(--color01);
}

.mob-card.is-active {
    background: var(--color06);
    border-color: #3d5aa8;
}

.mob-card.is-active .mob-card-name {
    color: #7fb3ff;
}

/* ── Parâmetros da farm ─────────────────────────────────────────────────── */
.farm-param-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.farm-param-row:last-of-type {
    margin-bottom: 0;
}

.farm-param-label {
    font-size: 0.88em;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    width: 190px;
}

.farm-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--color06);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.farm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color01);
    cursor: pointer;
    border: 2px solid var(--color06);
}

.farm-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color01);
    cursor: pointer;
    border: 2px solid var(--color06);
}

.farm-param-value {
    font-family: monospace;
    font-weight: bold;
    color: var(--color02);
    width: 46px;
    text-align: right;
    flex-shrink: 0;
}

.farm-select-row {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.farm-select-block {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.farm-select-block label {
    display: block;
    font-size: 0.85em;
    color: #cfd8dc;
    margin-bottom: 8px;
    font-weight: bold;
}

.farm-select-hint {
    font-size: 0.75em;
    color: var(--color04);
    margin-top: 6px;
}

/* ── Produção por hora ──────────────────────────────────────────────────── */
.production-icon {
    font-size: 1.1em;
    margin-bottom: 6px;
    display: block;
}

/* ── Abas Drops / Gráfico por tempo ─────────────────────────────────────── */
.drops-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.drops-tabs .pbuttoncopy {
    flex: 0 0 auto;
}

.drops-view {
    display: none;
}

.drops-view.is-active {
    display: block;
}

/* ── Tabela de drops ────────────────────────────────────────────────────── */
.drops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.drops-table th {
    text-align: left;
    font-size: 0.72em;
    color: var(--color04);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.drops-table th:not(:first-child),
.drops-table td:not(:first-child) {
    text-align: right;
}

.drops-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: white;
}

.drops-table td.is-numeric {
    font-family: monospace;
    color: #7fb3ff;
}

.drop-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drop-rare-badge {
    display: inline-block;
    background: rgba(58, 201, 160, 0.2);
    color: #3ac9a0;
    font-size: 0.68em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

/* ── Gráfico por tempo ──────────────────────────────────────────────────── */
.time-chart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.time-chart-row:last-child {
    margin-bottom: 0;
}

.time-chart-label {
    width: 60px;
    font-size: 0.8em;
    color: var(--color04);
    flex-shrink: 0;
}

.time-chart-track {
    flex: 1;
    height: 16px;
    border-radius: 4px;
    background: var(--color06);
    overflow: hidden;
}

.time-chart-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #ffd97a, var(--color01));
}

.time-chart-value {
    width: 90px;
    text-align: right;
    font-family: monospace;
    font-size: 0.82em;
    color: white;
    flex-shrink: 0;
}

/* ── Comparativo de mobs ────────────────────────────────────────────────── */
.mob-compare-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mob-compare-row:last-child {
    margin-bottom: 0;
}

.mob-compare-label {
    width: 110px;
    font-size: 0.8em;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mob-compare-track {
    flex: 1;
    height: 16px;
    border-radius: 4px;
    background: var(--color06);
    overflow: hidden;
}

.mob-compare-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--color04);
}

.mob-compare-fill.is-active {
    background: #3d5aa8;
}

.mob-compare-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.68em;
    color: var(--color04);
    margin-top: 8px;
    padding-left: 120px;
}

.mob-compare-axis-caption {
    text-align: center;
    font-size: 0.72em;
    color: var(--color04);
    margin-top: 4px;
}

/* ── Referência de tempo para meta ──────────────────────────────────────── */
.goal-input-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.goal-input-block {
    flex: 1;
    min-width: 150px;
    text-align: left;
}

.goal-input-block label {
    display: block;
    font-size: 0.85em;
    color: #cfd8dc;
    margin-bottom: 8px;
    font-weight: bold;
}

.goal-input-block input {
    background-color: var(--color06);
    color: white;
    border: 2px solid var(--color01);
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1em;
    font-weight: bold;
    height: 46px;
    padding: 0 14px;
}

.goal-input-block input:focus {
    border-color: var(--color02);
    box-shadow: 0 0 5px var(--color02);
    outline: none;
}

.goal-result-box {
    background: var(--color06);
    border-radius: 8px;
    padding: 0 18px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-weight: bold;
    color: var(--color02);
    font-size: 1.05em;
    white-space: nowrap;
}

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media screen and (max-width: 700px) {
    .mob-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .farm-param-row {
        flex-wrap: wrap;
    }

    .farm-param-label {
        width: 100%;
    }

    .drops-table {
        font-size: 0.75em;
    }

    .drops-table th,
    .drops-table td {
        padding: 6px;
    }

    .mob-compare-label {
        width: 80px;
        font-size: 0.72em;
    }

    .mob-compare-scale {
        padding-left: 90px;
    }

    .goal-result-box {
        width: 100%;
    }
}