/* css/style.css */

body {
    background-color: #0b0b0b; /* Чуть глубже черного */
    color: #e0e0e0;
    font-family: 'Tahoma', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-image: radial-gradient(circle at 50% 0, #1a1a1a, #0b0b0b); /* Легкая подсветка сверху */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ЗАГОЛОВОК */
.header h1 {
    text-align: center;
    color: #ffd700;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* СЕТКА КНОПОК */
.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

/* --- ЗОЛОТЫЕ КНОПКИ (Beautiful Gold) --- */
.nav-btn {
    /* Градиент золота: от темного к светлому */
    background: linear-gradient(to top, #b8860b 0%, #e6c200 100%);
    border: 1px solid #ffd700;
    border-bottom: 2px solid #8a6608; /* Объем снизу */
    color: #111; /* Темный текст для контраста */
    
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800; /* Жирный шрифт */
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Блик при наведении */
.nav-btn:hover {
    background: linear-gradient(to top, #d4af37 0%, #ffe066 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); /* Свечение */
    transform: translateY(-2px);
    color: #000;
}

/* Активная кнопка (нажатая) */
.nav-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px #ffb400;
    border-color: #fff;
}

/* Закрепленные кнопки (Огонек) - если нужно */
.nav-btn-pinned {
    border: 1px solid #fff;
}

/* --- ТВОЙ БЛОК КОНТЕНТА (.fp-post) --- */
/* Мы применяем этот класс к id="content-viewer" */
#content-viewer {
    display: none; /* Скрыт по умолчанию */
    padding: 30px;
    min-height: 300px;
    color: #ccc;
    line-height: 1.6;

    /* Твой стиль: */
    background: #111; 
    border: 1px solid #2a2a2a; 
    border-radius: 4px; 
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: transform 0.3s, border-color 0.3s;
}

/* Золотая полоска сверху (как ты просил) */
#content-viewer::before {
    content: '';
    position: absolute; 
    top: 0; left: 0; right: 0; 
    height: 3px; /* Чуть толще сделал для заметности */
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    z-index: 2;
    box-shadow: 0 1px 10px #d4af37; /* Добавил свечение полоске */
}

/* Эффект при наведении на блок контента */
#content-viewer:hover {
    border-color: #444; /* Чуть светлее рамка */
}

/* Стили внутри текста */
#content-viewer h2, #content-viewer h3 { color: #ffb400; border-bottom: 1px solid #333; padding-bottom: 5px; }
#content-viewer a { color: #ffca28; text-decoration: none; }
#content-viewer a:hover { text-decoration: underline; }
#content-viewer img { max-width: 100%; border-radius: 3px; border: 1px solid #333; }
#content-viewer ul { list-style: square; color: #aaa; }

/* Дата обновления внизу */
.update-date {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #222;
    text-align: right;
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.pinned-btn {
    border: 1px solid #fff;
    box-shadow: 0 0 10px #ffb400; /* Золотое свечение */
    font-weight: 900;
}

/* --- ФИНАЛЬНЫЙ ФИКС МЕДИА (Картинки и Видео) --- */



/* 2. ВИДЕО (IFRAME YOUTUBE) - ЭТО ВАЖНО! */
#dynamic-body iframe, 
.content-box iframe {
    width: 100% !important;    /* Растягиваем на всю ширину */
    max-width: 100% !important;

    
    /* Магия для сохранения пропорций 16:9 (как на Ютубе) */
    aspect-ratio: 16 / 9;      
    height: auto !important;   
    
    border-radius: 5px;
    border: none;
    display: block;
    margin: 15px auto;
}


/* --- СТИЛИ ДЛЯ ПРОГРЕСС БАРА --- */
.progress-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Затемнение фона */
    z-index: 99999; /* Поверх всего */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.progress-box {
    width: 400px;
    background: #222;
    border: 2px solid #ffb400; /* Золотая рамка */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 180, 0, 0.3);
}

.progress-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

.progress-track {
    width: 100%;
    height: 20px;
    background: #444;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffca28, #ffb300); /* Золотой градиент */
    transition: width 0.2s;
}

.progress-text {
    color: #ffb400;
    font-weight: bold;
}