/* =====================================================
   Dark mode базовые стили
   ===================================================== */
body {
    background: #0f0f0f url('../background.png') fixed;
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* =====================================================
   Контейнер
   ===================================================== */
.roadmap-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

/* =====================================================
   Заголовок с версией и логотипом
   ===================================================== */
.roadmap-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.roadmap-header .logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.roadmap-header .logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
}

.roadmap-header h1 {
    margin: 0;
    color: #f1f5f9;
    font-size: 28px;
}

.roadmap-header .version {
    margin-left: auto;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid #667eea;
    border-radius: 20px;
    color: #a5b4fc;
    font-size: 14px;
    font-weight: bold;
}

/* =====================================================
   Таблица — базовые настройки
   ===================================================== */
.roadmap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    table-layout: fixed;
}

.roadmap-table thead th {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
    padding: 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

/* =====================================================
   Строка таблицы — многослойный фон (цвет + картинка)
   ===================================================== */
.roadmap-table tbody tr {
    --row-border: #334155;
    background-color: rgba(30, 41, 59, 0.5);
    transition: all 0.3s ease;
}

.roadmap-table tbody tr:hover {
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* =====================================================
   Ячейки таблицы — рамки и закругления
   ===================================================== */
.roadmap-table tbody td {
    position: relative;
    z-index: 1;
    padding: 16px;
    vertical-align: top;
    background: transparent;
    border-top: 1px solid var(--row-border);
    border-bottom: 1px solid var(--row-border);
}

.roadmap-table tbody td:first-child {
    padding: 8px;
    border-left: 4px solid var(--row-border);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.roadmap-table tbody td:last-child {
    border-right: 1px solid var(--row-border);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* =====================================================
   Жесткое распределение ширины столбцов
   ===================================================== */
.roadmap-table thead th:nth-child(1),
.roadmap-table tbody td:nth-child(1) {
    width: 40%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.roadmap-table thead th:nth-child(2),
.roadmap-table tbody td:nth-child(2) {
    width: 20%;
}

.roadmap-table thead th:nth-child(3),
.roadmap-table tbody td:nth-child(3) {
    width: 20%;
}

.roadmap-table thead th:nth-child(4),
.roadmap-table tbody td:nth-child(4) {
    width: 20%;
}

/* =====================================================
   Иконка задачи
   ===================================================== */
.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.task-icon img {
    width: 24px;
    height: 24px;
}

.task-icon i {
    font-size: 20px;
}

/* =====================================================
   Заголовок, дата и описание задачи
   ===================================================== */
.task-title {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.task-dates {
    font-size: 12px;
    color: #64748b;
}

.task-desc {
    margin-top: 12px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    border-left: 3px solid #667eea;
    border-radius: 4px;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

/* =====================================================
   Защитный слой под контентом задачи
   ===================================================== */
.task-content-wrapper {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================================================
   Прогресс-бар статуса
   ===================================================== */
.status-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
    display: flex;
}

.status-bar .segment {
    height: 100%;
    transition: width 0.3s ease;
}

.status-bar .segment.red { background: #ef4444; }
.status-bar .segment.orange { background: #f97316; }
.status-bar .segment.yellow { background: #eab308; }
.status-bar .segment.green { background: #22c55e; }

/* =====================================================
   Лейбл статуса (по центру)
   ===================================================== */
.status-label {
    display: block;
    width: fit-content;
    margin: 0 auto 8px auto;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.status-label.none { background: rgba(255, 255, 255, 0.1); color: #64748b; }
.status-label.planned { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.status-label.in_progress { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.status-label.testing { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.status-label.ready { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

/* =====================================================
   Адаптивность
   ===================================================== */
@media (max-width: 768px) {
    .roadmap-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

