/* ============================================================
   ADR-039 — Карточка проекта (Venom): интерактивные чипы + статус
   ------------------------------------------------------------
   Форма карточки (120px, grid 75px/1fr, radius 20px, focused)
   НЕ переопределяется — она задана в theme.css и остаётся как есть.
   Здесь только: геометрия колонки действий, чипы-лаунчеры, бейдж статуса.
   Подключается ПОСЛЕ theme.css.
   ============================================================ */

/* ---------- FIX-039a: колонка действий больше не фиксирована 80px ----------
   В theme.css было `2fr 2fr 80px` под старый чекбокс — бейдж статуса туда
   не помещался и обрезался. `auto` = по содержимому, остаток делят 2fr/2fr. */
.landscape-media-card .media-main-row {
    grid-template-columns: 2fr 2fr auto;
}

.landscape-media-card .media-column.media-video,
.landscape-media-card .media-column.media-audio {
    min-width: 0;
}

.landscape-media-card .media-column.media-actions {
    gap: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.landscape-media-card .media-column.media-actions .btn-remove-slot {
    flex: 0 0 auto;
}

/* ---------- Ряд статуса: 5 чипов вместо 4, ужимаем зазор ---------- */
.landscape-media-card .media-row-status {
    gap: 8px;
    overflow: hidden;
    min-width: 0;
}

/* ---------- Чип-лаунчер ---------- */
.status-chip.chip-launcher {
    cursor: pointer;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    user-select: none;
}

.status-chip.chip-launcher:hover {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.45);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.18);
}

.status-chip.chip-launcher:hover svg {
    opacity: 1;
    color: #C084FC;
}

.status-chip.chip-launcher:active {
    transform: translateY(0) scale(0.97);
}

/* Неактивный чип (Duration=Auto, Look=Off) — приглушён, но кликабелен */
.status-chip.chip-launcher:not(.active) {
    opacity: 0.65;
}

.status-chip.chip-launcher:not(.active):hover {
    opacity: 1;
}

/* ---------- Бейдж статуса слота (заменил мёртвый чекбокс) ---------- */
.slot-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.slot-status-badge.idle {
    background: rgba(107, 114, 128, 0.10);
    color: #6B7280;
    border-color: rgba(107, 114, 128, 0.20);
}

.slot-status-badge.uploading {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.28);
    animation: chipPulse 1.4s ease-in-out infinite;
}

.slot-status-badge.ready {
    background: rgba(139, 92, 246, 0.12);
    color: #8B5CF6;
    border-color: rgba(139, 92, 246, 0.28);
}

.slot-status-badge.running {
    background: rgba(255, 153, 179, 0.16);
    color: #E0568B;
    border-color: rgba(255, 153, 179, 0.35);
    animation: chipPulse 1.4s ease-in-out infinite;
}

.slot-status-badge.done {
    background: var(--accent-gradient);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px var(--accent-glow);
}

@keyframes chipPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}
