@charset "UTF-8";

/*
    converter-ticks-v1_0.css
    Estilos específicos da página "Conversor de Ticks para Tempo".
    Depende de principal-v2_0.css e dos componentes genéricos de tools-v1_0.css.
*/

/* ── Direção da conversão ───────────────────────────────────────────────── */
.direction-toggle {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.direction-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--color05);
    border: 2px solid var(--color01);
    border-radius: 8px;
    color: #cfd8dc;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
}

.direction-btn i {
    color: var(--color01);
}

.direction-btn:hover {
    background: var(--color06);
}

.direction-btn.is-active {
    background: var(--color06);
    border-color: var(--color02);
    color: white;
}

.direction-btn.is-active i {
    color: var(--color02);
}

/* ── Campo de entrada ───────────────────────────────────────────────────── */
.tick-input-field {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.tick-input-field label {
    display: block;
    font-size: 0.8em;
    color: #cfd8dc;
    margin-bottom: 6px;
}

.tick-input-field input {
    background-color: var(--color06);
    color: white;
    border: 2px solid var(--color01);
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.3em;
    font-weight: bold;
    height: 50px;
    text-align: left;
    padding: 0 16px;
}

.tick-input-field input:focus {
    border-color: var(--color02);
    box-shadow: 0 0 5px var(--color02);
    outline: none;
}

.tick-input-hint {
    font-size: 0.78em;
    color: var(--color04);
    margin-top: 8px;
}

/* ── Grid de resultados ─────────────────────────────────────────────────── */
.result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.result-card {
    background: var(--color05);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
}

.result-card.is-wide {
    grid-column: span 2;
}

.result-card-label {
    font-size: 0.7em;
    letter-spacing: 0.06em;
    color: var(--color04);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.result-card-value {
    font-family: monospace;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    word-break: break-word;
}

.result-card-unit {
    font-size: 0.72em;
    color: var(--color01);
    margin-top: 2px;
}

/* ── Ciclo do dia ───────────────────────────────────────────────────────── */
.day-cycle-bar {
    position: relative;
    height: 34px;
    border-radius: 6px;
    max-width: 700px;
    margin: 0 auto 8px auto;
    background: linear-gradient(
        90deg,
        #0b1030 0%,
        #142257 12%,
        #4d6fb8 22%,
        #d9853b 28%,
        #ffe9b0 33%,
        #bfe3ff 40%,
        #bfe3ff 60%,
        #ffcf8a 67%,
        #d9853b 72%,
        #4d6fb8 78%,
        #142257 88%,
        #0b1030 100%
    );
}

.day-cycle-marker {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 46px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255,255,255,0.7);
    transform: translateX(-50%);
    transition: left 0.15s ease;
}

.day-cycle-labels {
    display: flex;
    justify-content: space-between;
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.72em;
    color: var(--color04);
}

.day-cycle-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 700px;
    margin: 10px auto 0 auto;
    font-size: 0.85em;
    color: #cfd8dc;
}

.day-cycle-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Presets ────────────────────────────────────────────────────────────── */
.presets-grid.ticks-presets {
    grid-template-columns: repeat(4, 1fr);
}

.preset-card-line.ticks {
    color: var(--color02);
    font-size: 0.85em;
    margin-bottom: 2px;
}

.preset-card-desc {
    font-size: 0.72em;
    color: var(--color04);
}

/* ── Contexto de uso ────────────────────────────────────────────────────── */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.usage-card {
    background: var(--color05);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
}

.usage-card-title {
    font-size: 0.85em;
    color: white;
    font-weight: bold;
    margin-bottom: 6px;
}

.usage-card-example {
    font-family: monospace;
    font-size: 0.82em;
    color: var(--color02);
}

/* ── Fórmulas de referência ─────────────────────────────────────────────── */
.formulas-box {
    background: var(--color06);
    border-radius: 8px;
    padding: 16px 18px;
    text-align: left;
    font-family: monospace;
    font-size: 0.88em;
    line-height: 1.9;
    color: #d4d9d9;
    overflow-x: auto;
}

.formulas-box .formula-label {
    color: white;
}

.formulas-box .formula-value {
    color: var(--color02);
}

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media screen and (max-width: 700px) {
    .direction-toggle {
        flex-direction: column;
    }

    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-card.is-wide {
        grid-column: span 2;
    }

    .presets-grid.ticks-presets,
    .usage-grid {
        grid-template-columns: 1fr;
    }

    .day-cycle-labels span:nth-child(2),
    .day-cycle-labels span:nth-child(4) {
        display: none;
    }
}