/* ==========================================================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ЦВЕТОВАЯ ПАЛИТРА (RIOT CHAMPIONS UI)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Montserrat:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b1016; /* Глубокий благородный темный оттенок */
    color: #f0e6d2; /* Фирменный кремово-белый текст Riot */
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.5;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
}

/* Элегантный скроллбар в золотых тонах */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #5c574e;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   1.5 ВЕРХНЯЯ НАВИГАЦИЯ (МУЛЬТИВКЛАДОЧНЫЙ САЙТ)
   ========================================================================== */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #11171e;
    border: 1px solid #32281f;
    border-bottom: 2px solid #c8aa6e;
    padding: 14px 30px;
    margin-bottom: 40px;
    border-radius: 2px;
    flex-wrap: wrap;
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #f0e6d2;
    text-decoration: none;
    letter-spacing: 3px;
}
.nav-logo span { color: #c8aa6e; }

.nav-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.nav-tab {
    color: #a09b8c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    border: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-tab:hover { color: #f0e6d2; }
.nav-tab.active { color: #c8aa6e; border-color: #32281f; background-color: #161d26; }
.nav-tab.disabled { opacity: 0.45; cursor: not-allowed; }

.nav-tab .soon {
    font-size: 0.6rem;
    color: #c8aa6e;
    margin-left: 6px;
    vertical-align: super;
}

/* ==========================================================================
   1.6 ГЛАВНАЯ СТРАНИЦА (HERO + КАРТОЧКИ РАЗДЕЛОВ)
   ========================================================================== */
.hero {
    margin-bottom: 40px;
}
.hero-frame {
    position: relative;
    border: 1px solid #32281f;
    border-bottom: 2px solid #c8aa6e;
    overflow: hidden;
    border-radius: 2px;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}
.hero-portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: saturate(0.9);
}
.hero-overlay {
    position: relative;
    width: 100%;
    padding: 60px 40px;
    background: linear-gradient(transparent, rgba(11, 16, 22, 0.95) 70%);
}
.hero-overlay h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    letter-spacing: 6px;
    color: #f0e6d2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.hero-overlay p {
    color: #c8aa6e;
    margin: 12px 0 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.cta-btn {
    display: inline-block;
    color: #0b1016;
    background-color: #c8aa6e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 2px;
    transition: background-color 0.15s ease;
}
.cta-btn:hover { background-color: #f0e6d2; }

.home-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.home-card {
    display: block;
    background-color: #121920;
    border: 1px solid #232d36;
    padding: 30px;
    border-radius: 2px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-card:hover { border-color: #c8aa6e; box-shadow: 0 0 20px rgba(200,170,110,0.12); transform: translateY(-2px); }
.home-card.locked { opacity: 0.5; }
.home-card-title { font-family: 'Cinzel', serif; font-size: 1.3rem; color: #c8aa6e; margin-bottom: 12px; }
.home-card p { color: #a09b8c; font-size: 0.95rem; margin-bottom: 18px; }
.home-card-link { color: #c8aa6e; font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px; }
.home-card-soon {
    display: inline-block;
    font-size: 0.75rem;
    color: #a09b8c;
    border: 1px solid #232d36;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Элегантный скроллбар в золотых тонах */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0b1016;
}
::-webkit-scrollbar-thumb {
    background: #c8aa6e; /* Riot Gold */
    border-radius: 2px;
}

/* ==========================================================================
   2. ШАПКА САЙТА (OFFICIAL LAUNCHER BANNER)
   ========================================================================== */
header {
    text-align: center;
    padding: 60px 20px;
    background-color: #11171e;
    border: 1px solid #32281f; /* Мягкая темная граница */
    border-bottom: 2px solid #c8aa6e; /* Золотой акцент */
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

header h1 {
    font-family: 'Cinzel', serif; /* Премиальный античный шрифт для заголовков */
    font-weight: 700;
    font-size: 2.8rem;
    color: #f0e6d2;
    text-transform: uppercase;
    letter-spacing: 4px;
}

header p {
    color: #a09b8c; /* Приглушенный серый */
    font-size: 0.95rem;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   3. LEGO-БЛОКИ ЛИНИЙ (LANE MODULES)
   ========================================================================== */
.lane-block {
    background-color: #121920; /* Чистый плоский блок */
    border: 1px solid #232d36;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}

.lane-header {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #c8aa6e; /* Золотое название вкладки */
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #32281f;
    padding-bottom: 8px;
}

/* ==========================================================================
   4. СТРОГАЯ ТАБЛИЦА СЕТКИ (TACTICAL MATRIX)
   ========================================================================== */
.tier-table {
    width: 100%;
    border-collapse: collapse;
}

.tier-table th {
    background-color: #1a222d;
    color: #a09b8c;
    padding: 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-align: left;
    border: 1px solid #232d36;
}

.tier-table th:first-child {
    text-align: center;
    width: 120px;
    color: #f0e6d2;
}

/* Тонкое разделение по строкам без едких заливок */
.tier-table tr {
    border-bottom: 1px solid #1c252f;
}

/* Цветные подложки строк тира (Ease/Medium/Hard) как на макете */
.row-ease .tier-content   { background: linear-gradient(90deg, rgba(70, 211, 105, 0.07), transparent 60%); }
.row-medium .tier-content { background: linear-gradient(90deg, rgba(233, 187, 66, 0.07), transparent 60%); }
.row-hard .tier-content   { background: linear-gradient(90deg, rgba(230, 70, 70, 0.08), transparent 60%); }

.tier-label {
    font-family: 'Cinzel', serif;
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 10px;
    background-color: #141f29;
    border: 1px solid #232d36;
}

/* Изящные маркеры цвета сложности текста */
.row-ease .tier-label { color: #46d369; }
.row-medium .tier-label { color: #e9bb42; }
.row-hard .tier-label { color: #e64646; }

.tier-content {
    padding: 16px;
    background-color: rgba(16, 24, 32, 0.4);
    border: 1px solid #232d36;
    vertical-align: middle;
}

.champion-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 46px;
}

/* ==========================================================================
   5. КАРТОЧКА ЧЕМПИОНА (CHAMPION SLOT)
   ========================================================================== */
/* Карточка чемпиона по макету: квадратная иконка + имя под ней */
.champion-card {
    background-color: #1a222d;
    border: 1px solid #322a20;
    border-radius: 3px;
    padding: 8px 8px 6px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: 76px;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.champion-card .champ-name {
    font-size: 0.62rem;
    font-weight: 600;
    color: #a09b8c;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.15s ease;
}

/* Плавный Riot-эффект наведения золота */
.champion-card:hover {
    background-color: #242f3d;
    border-color: #c8aa6e;
    box-shadow: 0 0 12px rgba(200, 170, 110, 0.2);
    transform: translateY(-2px);
}
.champion-card:hover .champ-name { color: #f0e6d2; }

.champion-card:active {
    background-color: #161d26;
}

/* Минималистичная квадратная иконка чемпиона */
.champ-icon {
    width: 56px;
    height: 56px;
    border-radius: 3px;
    border: 1px solid #322a20;
    flex-shrink: 0;
    object-fit: cover;
    background-color: #0b1016;
}

/* Мини-полосы заполненности (популярность / винрейт) */
.stat-mini { display: flex; align-items: center; gap: 6px; }
.stat-mini-label { font-size: 0.55rem; color: #5c574e; letter-spacing: 1px; width: 28px; }
.stat-mini-val { font-size: 0.65rem; color: #a09b8c; width: 34px; text-align: right; }

.stat-track {
    flex: 1;
    height: 5px;
    background-color: #1a222d;
    border-radius: 2px;
    overflow: hidden;
}
.stat-track.mini { width: 70px; flex: none; }

.stat-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fill-high { background: linear-gradient(90deg, #7ee097, #46d369); }
.fill-med  { background: linear-gradient(90deg, #f3d477, #e9bb42); }
.fill-low  { background: linear-gradient(90deg, #f08a8a, #e64646); }

/* Легенда полос */
.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #a09b8c;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 50px;
}
.legend-item { display: flex; align-items: center; gap: 10px; }
.legend-bar { width: 46px; height: 6px; border-radius: 2px; display: inline-block; }
.legend-bar.fill-high { background: #46d369; }
.legend-bar.fill-med  { background: #e9bb42; }
.legend-bar.fill-low  { background: #e64646; }
.meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.meta-high { background-color: #46d369; }
.meta-med { background-color: #e9bb42; }
.meta-low { background-color: #e64646; }

/* ==========================================================================
   6. ПАНЕЛЬ РАЗБОРА МАТЧАПА (MATCHUP STAGE INFOPANEL)
   ========================================================================== */
.detail-panel {
    display: none;
    background-color: #11171e;
    border: 1px solid #c8aa6e;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-radius: 2px;
    animation: riotFadeIn 0.2s ease-out;
}

@keyframes riotFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #32281f;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.detail-title-wrap { display: flex; align-items: center; gap: 20px; }

.detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    border: 1px solid #c8aa6e;
    background-color: #0b1016;
    display: none;
}

.detail-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #f0e6d2;
    letter-spacing: 1px;
}

.detail-badges {
    display: flex;
    gap: 12px;
}

.badge {
    font-weight: 600;
    padding: 6px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 1px;
}
.badge-tier { background-color: #1a222d; color: #c8aa6e; border: 1px solid #322a20; }
.badge-pop { background-color: #141b22; color: #a09b8c; border: 1px solid #232d36; }

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #c8aa6e;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.strategy-box {
    background-color: #161d26;
    border: 1px solid #232d36;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 1.05rem;
    color: #d8cfc4;
}

/* Большие полосы метрик в инфо-панели (зарезервировано)
.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 34px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-label {
    width: 220px;
    flex-shrink: 0;
    color: #a09b8c;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-row .stat-track { height: 10px; flex: 1; }

.stat-value {
    width: 56px;
    text-align: right;
    color: #f0e6d2;
    font-weight: 700;
    font-size: 0.9rem;
}
*/

/* ==========================================================================
   7. КРОСС-ПЛАТФОРМЕННАЯ АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 992px) {
    .tier-table, .tier-table tbody, .tier-table tr, .tier-table td, .tier-table th {
        display: block;
        width: 100%;
    }
    
    .tier-table th { display: none; }
    
    .tier-table tr {
        margin-bottom: 25px;
        border: 1px solid #232d36;
        background-color: #141f29;
    }
    
    .tier-label {
        padding: 14px;
        text-align: left;
        background-color: #1a222d;
        font-size: 1.1rem;
        border: none;
        border-bottom: 1px solid #232d36;
    }
    
    .tier-content {
        padding: 12px;
        border: none;
        background: transparent;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Карточки-плитки в несколько колонок на мобильных */
    .champion-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    }
    .champion-card { width: 100%; }

    .hero-overlay h1 { font-size: 2rem; letter-spacing: 3px; }
}

/* Новый блок с мыслями о Кейл */
.thoughts-section {
    background-color: #11171e;
    border: 1px solid #32281f;
    border-bottom: 2px solid #c8aa6e;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 2px;
}
.thoughts-section h2 {
    font-family: 'Cinzel', serif;
    color: #c8aa6e;
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.thoughts-section h3 {
    color: #f0e6d2;
    font-size: 1.2rem;
    margin: 25px 0 15px;
}
.thoughts-section p {
    color: #a09b8c;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}






/* Блок сравнения Кейл один-в-один с картинки */
.kayle-vs-block {
    background-color: #121920; /* Цвет как у .lane-block */
    border: 1px solid #232d36;
    padding: 40px;
    border-radius: 2px;
    max-width: 900px;
    margin: 0 auto 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.kayle-vs-columns {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.kayle-vs-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kayle-vs-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #c8aa6e; /* Riot Gold */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.kayle-vs-img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #322a20;
    border-radius: 3px;
    margin-bottom: 30px;
}

.kayle-vs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.kayle-vs-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Цвета текста строго по кодам из вашего CSS */
.kayle-vs-list li.plus {
    color: #46d369; /* Зеленый (+ meta-high) */
}

.kayle-vs-list li.minus {
    color: #e64646; /* Красный (- meta-low) */
}

.kayle-vs-list li.role {
    color: #5dade2; /* Голубой цвет роли */
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-top: 25px;
    letter-spacing: 1px;
}

/* Нижний блок для общих свойств */
.kayle-vs-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #232d36;
    text-align: center;
}

/* Адаптивность для мобилок (колонки встают друг под друга) */
@media (max-width: 768px) {
    .kayle-vs-columns {
        flex-direction: column;
        gap: 40px;
    }
}
