/* ===== ПОЛНЫЙ РЕДИЗАЙН HLSTATSX ДЛЯ L4D-DARKNESS.RU ===== */
/* Современный темный дизайн, новое меню, полная переделка */

/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0c0f;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #e0e0e0;
    line-height: 1.5;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1115 0%, #1a1e24 100%);
}

/* ===== НОВОЕ МЕНЮ (ПЕРЕДЕЛАННОЕ ПОЛНОСТЬЮ) ===== */
/* Собираем все кнопки в одно место */
.top-menu, .navigation, .menu, [class*="nav"], [class*="menu"] {
    background: rgba(18, 22, 28, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid #2a313c;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    margin: 20px auto !important;
    max-width: 1200px;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Все кнопки и ссылки меню */
.top-menu a, .navigation a, .menu a, 
[class*="nav"] a, [class*="menu"] a,
a[href*="mode=players"], a[href*="mode=clans"], 
a[href*="mode=weapons"], a[href*="mode=maps"],
a[href*="mode=help"], a[href*="mode=search"],
a[href*="mode=servers"], a[href*="mode=bans"] {
    display: inline-block !important;
    padding: 10px 20px !important;
    margin: 0 5px !important;
    background: #1e2630 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: 1px solid #2f3a48 !important;
    transition: all 0.3s ease !important;
}

/* Эффект при наведении */
.top-menu a:hover, .navigation a:hover, .menu a:hover,
[class*="nav"] a:hover, [class*="menu"] a:hover {
    background: #2d9cdb !important;
    border-color: #2d9cdb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(45, 156, 219, 0.4) !important;
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
table, .content, .main, .hlstats-content {
    background: rgba(18, 22, 28, 0.9) !important;
    border: 1px solid #2a313c !important;
    border-radius: 20px !important;
    padding: 25px !important;
    margin: 20px auto !important;
    max-width: 1200px !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

/* ===== ТАБЛИЦЫ (ПЕРЕДЕЛАННЫЕ) ===== */
table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    background: transparent !important;
}

/* Заголовки таблиц */
th, .table-header, [class*="header"] {
    background: #1e2630 !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 15px 20px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Ячейки таблиц */
td, .table-cell, [class*="cell"] {
    background: #1a1f27 !important;
    color: #e0e0e0 !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

/* Эффект при наведении на строку */
tr:hover td {
    background: #232b36 !important;
    transform: scale(1.01) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* ===== НИКНЕЙМЫ И ССЫЛКИ ===== */
a {
    color: #2d9cdb !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid transparent !important;
}

a:hover {
    color: #7fc9ff !important;
    border-bottom-color: #2d9cdb !important;
}

/* ===== ЗАГОЛОВКИ ===== */
h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
    margin: 20px 0 !important;
    font-weight: 600 !important;
    letter-spacing: -0.5px !important;
}

h1 {
    font-size: 32px !important;
    background: linear-gradient(135deg, #2d9cdb, #7fc9ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block !important;
}

/* ===== КНОПКИ (ВСЕ, ЧТО НАЖИМАЕТСЯ) ===== */
button, input[type="submit"], .button, [class*="btn"] {
    background: #1e2630 !important;
    color: #fff !important;
    border: 1px solid #2f3a48 !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

button:hover, input[type="submit"]:hover, .button:hover, [class*="btn"]:hover {
    background: #2d9cdb !important;
    border-color: #2d9cdb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(45, 156, 219, 0.4) !important;
}

/* ===== ФОРМЫ И ПОИСК ===== */
input[type="text"], input[type="search"], input[type="password"], select, textarea {
    background: #1a1f27 !important;
    border: 1px solid #2f3a48 !important;
    color: #fff !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    min-width: 200px !important;
}

input[type="text"]:focus, input[type="search"]:focus, select:focus {
    border-color: #2d9cdb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.2) !important;
}

/* ===== СТАТИСТИКА И ЦИФРЫ ===== */
.highlight, .stat, [class*="number"], [class*="value"] {
    color: #2d9cdb !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* ===== ПРОГРЕСС-БАРЫ ===== */
.progress-bar, [class*="progress"] {
    background: #1e2630 !important;
    border-radius: 20px !important;
    height: 8px !important;
    overflow: hidden !important;
}

.progress-bar-fill, [class*="progress"] div {
    background: linear-gradient(90deg, #2d9cdb, #7fc9ff) !important;
    height: 100% !important;
    border-radius: 20px !important;
}

/* ===== ФУТЕР ===== */
.footer, [class*="footer"], .copyright {
    background: transparent !important;
    color: #5f6b7a !important;
    text-align: center !important;
    padding: 30px 20px !important;
    margin-top: 40px !important;
    font-size: 13px !important;
    border-top: 1px solid #1e2630 !important;
}

/* ===== АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ ===== */
@media (max-width: 768px) {
    .top-menu, .navigation, .menu {
        border-radius: 20px !important;
        padding: 10px !important;
    }
    
    .top-menu a, .navigation a, .menu a {
        padding: 8px 15px !important;
        font-size: 12px !important;
        margin: 3px !important;
    }
    
    table, .content {
        padding: 15px !important;
    }
    
    td, th {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content, .main, table {
    animation: fadeIn 0.6s ease-out !important;
}

/* ===== СПЕЦИАЛЬНО ДЛЯ L4D СТИЛИСТИКИ ===== */
/* Добавляем зомби-акценты */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://l4d-darkness.ru/images/zombie-bg.png') repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Кнопки в стиле Left 4 Dead */
.top-menu a[href*="mode=players"]::before {
    content: '🧟 ';
    opacity: 0.8;
}

.top-menu a[href*="mode=weapons"]::before {
    content: '🔫 ';
}

.top-menu a[href*="mode=maps"]::before {
    content: '🗺️ ';
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ===== */
/* Красивые скроллбары */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1f27;
}

::-webkit-scrollbar-thumb {
    background: #2f3a48;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d9cdb;
}

/* Выделение текста */
::selection {
    background: #2d9cdb;
    color: #fff;
}

/* ===== ФИНАЛЬНЫЕ ПРАВКИ ===== */
/* Убираем старые фоны */
td[bgcolor], th[bgcolor], [style*="background"] {
    background: transparent !important;
}

/* Делаем все ссылки красивыми */
a img {
    filter: brightness(0.8) sepia(1) hue-rotate(180deg) !important;
    transition: all 0.3s ease !important;
}

a:hover img {
    filter: brightness(1) sepia(0) !important;
    transform: scale(1.1) !important;
}