/* ============================================================
   ADR-041 — Style Select: убрано превью, сетка 2×2, изящная шкала
   ------------------------------------------------------------
   ВАЖНО: все селекторы ограничены #styleModal. Классы .modal-layout,
   .premium-modal-content, .act-strip, .style-card используются также
   в captionsModal и других местах — глобально их менять нельзя.
   JS не тронут: разметку по-прежнему строит _renderStyleCards()
   и _buildActStrip() из ui-presets.js, меняется только внешний вид.
   Подключается ПОСЛЕ theme.css.
   ============================================================ */

/* ---------- Оболочка: фиксированная высота 520px больше не нужна ---------- */
#styleModal .modal-layout {
    display: block;
    height: auto;
}

#styleModal .modal-options-side {
    padding: 26px;
}

#styleModal .modal-header-block {
    margin-bottom: 18px;
}

/* ---------- Сетка пресетов 2×2 вместо колонки со скроллом ---------- */
#styleModal .style-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow: visible;
    padding: 0;
}

/* ---------- Карточка пресета ---------- */
#styleModal .style-card {
    gap: 0;
    padding: 14px 15px 13px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: 'Outfit', sans-serif;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

#styleModal .style-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
}

#styleModal .style-card.active {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 2px #B794F6, 0 12px 28px var(--accent-glow);
}

#styleModal .style-card-top {
    align-items: center;
    margin-bottom: 11px;
}

#styleModal .style-card-name {
    font-size: 15px;
    letter-spacing: -0.01em;
}

/* Длительность — пилюля; у выбранного пресета заливается акцентом */
#styleModal .style-card-dur {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.045);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

#styleModal .style-card.active .style-card-dur {
    background: var(--accent-gradient);
    color: #fff;
}

#styleModal .style-card-desc {
    font-size: 10.5px;
    line-height: 1.45;
}

#styleModal .style-card.active .style-card-desc {
    color: var(--text-secondary);
}

/* ---------- Шкала актов: три капсулы вместо слитной полосы ---------- */
#styleModal .act-strip,
#styleModal .act-strip-sm {
    height: 6px;
    gap: 3px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    margin: 0 0 10px;
}

#styleModal .act-seg {
    border-radius: var(--radius-full);
    min-width: 8px;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

#styleModal .style-card.active .act-seg {
    opacity: 1;
}

/* Плоская заливка вместо градиента — на 6px градиент не читается */
#styleModal .phase-intro   { background: #FF99B3; }
#styleModal .phase-process { background: #B794F6; }
#styleModal .phase-payoff  { background: #70C0F0; }

/* Насечки ритма на полосе 6px превращаются в шум — скрываем */
#styleModal .act-tick {
    display: none;
}

/* ---------- Легенда фаз ---------- */
#styleModal .style-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0 0;
}

#styleModal .style-legend span {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    display: inline-flex;
    align-items: center;
}

#styleModal .style-legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

#styleModal .style-legend .lg-intro   { background: #FF99B3; }
#styleModal .style-legend .lg-process { background: #B794F6; }
#styleModal .style-legend .lg-payoff  { background: #70C0F0; }

/* ---------- Футер ---------- */
#styleModal .modal-footer {
    margin-top: 18px;
    padding-top: 16px;
}
