/* Основные переменные */
:root {
    --bg-color: #0e1014;
    /* Основной фон */
    --header-bg-color: #1a1c21;
    /* Фон хедера */
    --card-bg-color: #1a1c21;
    /* Фон карточек */
    --border-color: #292d36;
    /* Границы */
    --accent-color: #00aaff;
    /* Голубой акцент */
--accent-gradient: linear-gradient(77deg, rgb(14 16 20) 0%, rgb(31 35 41) 37%, rgb(43 45 51) 100%);    --text-color: #ffffff;
    /* Основной текст */
    --muted-text-color: #b2b4bb;
    /* Приглушенный текст */
    --link-hover-color: #66d9ff;
    /* Голубой цвет при наведении */
    --border-radius: 10px;
    /* Радиус границы */
    --font-family: 'Arial', sans-serif;
}

/* Общие настройки */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Хедер */
header {
    background-color: var(--header-bg-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header .logo img {
    width: 160px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
a {
    color: var(--accent-color);
    text-decoration: none;
    /* Убираем подчеркивание */
    transition: color 0.3s;
}
.feature {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    /* Увеличен отступ внутри */
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 35%;
    /* Чуть увеличена ширина */
    min-width: 280px;
    /* Минимальная ширина */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Добавлены мягкие тени */
}

.feature:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(43, 110, 164, 0.5);
    /* Увеличенные тени при наведении */
}
.feature img {
    width: 100%;
    /* Заполняет доступное пространство */
    max-width: 450px;
    /* Увеличена максимальная ширина */
    height: auto;
    /* Сохраняем пропорции */
    margin: 0 auto;
    display: block;
    padding-bottom: 15px;
}
@media (max-width: 768px) {
    .feature img {
        width: 90%;
        /* Уменьшаем изображение на мобильных */
        max-width: 300px;
        /* Максимальная ширина для маленьких экранов */
    }
}
a:hover {
    color: var(--link-hover-color);
    text-decoration: none;
    /* Убираем подчеркивание при наведении */
}
header nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--link-hover-color);
}

/* Кнопки CTA */
.cta-button {
    background: var(--accent-gradient);
    color: var(--text-color);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 170, 255, 0.3);
}

.cta-button:hover {
    background: #00cfff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(43, 110, 164, 0.5);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0;
    background: var(--accent-gradient);
    color: var(--text-color);
    animation: gradient-animation 5s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: fade-in 1.5s ease;
}

.hero-section p {
    color: var(--muted-text-color);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* Секция Features */
.features-section {
    padding: 60px 0;
    background: var(--accent2-gradient);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.features-section h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 30%;
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.feature:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(43, 110, 164, 0.5);
}



.feature h3 {
    margin-bottom: 10px;
}

.feature p {
    color: var(--muted-text-color);
    font-size: 0.9rem;
}

/* Live Matches Section */
/* Основной стиль таблицы */
.live-section table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.live-section th,
.live-section td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.live-section th {
    background-color: var(--header-bg-color);
    color: var(--text-color);
}

.live-section td {
    color: var(--muted-text-color);
}

.live-section table tr:hover {
    background-color: rgba(43, 110, 164, 0.3);
    transition: background-color 0.3s;
}

/* Модальное окно */
.modal {
    display: none;
    /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.modal-content {
    background-color: var(--card-bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.past-matches-section {
    padding: 40px;
    background: var(--bg-color);
}

.past-matches-section h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 2rem;
}


.match-card {
    display: flex;
    align-items: flex-start;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.match-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(43, 110, 164, 0.5);
}

.match-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-header img {
    width: 32px;
    height: 32px;
}

.player-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.match-details {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.items {
    display: flex;
    gap: 5px;
}

.item {
    width: 35px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
}

.match-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
}
.matches-section {
    padding: 40px 0;
    background-color: var(--bg-color);
}
.matches-section h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
}
.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Две колонки */
    gap: 20px;
    /* Отступы между карточками */
}
.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    font-size: 0.9rem;
    color: var(--muted-text-color);
}

.value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: bold;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta-button.large {
    padding: 10px 20px;
    background: var(--accent-color);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
}

.cta-button.large:hover {
    background: var(--link-hover-color);
}

.close-button {
    margin-top: 10px;
    background: none;
    color: var(--muted-text-color);
    border: none;
    cursor: pointer;
}
/* Footer */
footer {
    background-color: var(--header-bg-color);
    text-align: center;
    padding: 20px 0;
    color: var(--muted-text-color);
    border-top: 1px solid var(--border-color);
}
/* поиск */
/* Центрирование основного контейнера */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    
    background-color: #1a1c21;
    /* Цвет фона */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Тень */
}
#top-players {
    margin-bottom: 40px;
    /* Отступ снизу для первой секции */
}

#seo-article {
    margin-top: 40px;
    /* Отступ сверху для второй секции */
}
/* Стили для строки поиска */
.search-bar {
    margin-bottom: 20px;
}
ul {
    list-style: none;
    /* Убирает точки */
    padding: 0;
    /* Убирает отступы внутри списка */
    margin: 0;
    /* Убирает внешние отступы списка */
}
.bg-blur {
    background: url(/static/images/blur.png) 0% 0% / cover no-repeat;
}
#player-search {
    width: 98%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #2b2d33;
    border-radius: 5px;
    background-color: #2b2d33;
    color: #fff;
}

#player-search::placeholder {
    color: #b2b4bb;
}

/* Сетка игроков */
#players-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Адаптивная сетка */
    gap: 20px;
}

/* Карточки игроков */
.player-card {
    background-color: #2b2d33;
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.player-card:hover {
    background-color: #35363a;
    /* Подсветка при наведении */
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Скругленные иконки */
}

.player-name {
    font-size: 16px;
    font-weight: bold;
}

.player-stats {
    text-align: right;
}

.player-stats span {
    display: block;
    font-size: 14px;
    color: #b2b4bb;
}
#players-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.player-row {
    display: grid;
    grid-template-columns: 50px 1fr 80px 1fr 80px 200px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2b2d33;
    color: #ffffff;
}

.player-row img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.winrate {
    font-weight: bold;
    color: #fff;
}

.winrate.red {
    color: #ff4d4d;
}

.winrate.green {
    color: #4caf50;
}

.progress-bar {
    background-color: #2b2d33;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
    width: 100%;
    margin-right: 10px;
    position: relative;
}

.progress {
    background-color: #fbbf24;
    height: 100%;
    border-radius: 5px;
}
.icons-wrapper {
    margin-left: 10px;
    display: flex;
    gap: 5px;
    justify-content: flex-start;
}

.icons-wrapper img {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    transition: transform 0.2s;
}
.icons-wrapper img:hover {
    transform: scale(1.1);
}
/* Стили для мини-описания героя */
.hero-tooltip {
    position: absolute;
    background-color: rgba(43, 45, 51, 0.9);
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 200px;
    white-space: normal;
}

.hero-icon {
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 4px;
}
.green {
    color: green;
}

.red {
    color: red;
}
.matches-info {
    text-align: center;
    font-size: 12px;
    color: #b2b4bb;
    margin-bottom: 5px;
    /* Отступ между числом матчей и прогресс-баром */
}
.seo-section {
    display: flex;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 1200px;
    margin: 0 auto;
    color: #b2b4bb;
    padding: 40px 5px;
}

.seo-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.seo-section h2 {
    color: var(--accent-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.seo-section h3 {
    color: var(--accent-color);
    font-size: 22px;
    margin: 20px 0;
}

.seo-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-section ul,
.seo-section ol {
    margin: 15px 0 15px 20px;
    list-style: disc;
}

.seo-section ul li,
.seo-section ol li {
    margin-bottom: 10px;
}
.breadcrumbs {
    font-size: 0.875rem;
    color: #b2b4bb;
    margin: 1rem 0;
    display: flex;
    gap: 0.5rem;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--accent-color);
}
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
}

.modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 50%;
    text-align: center;
    border-radius: 8px;
    color: #fff;
}

.modal-content img {
    width: 100px;
    height: 100px;
    margin: 20px auto;
}

.hidden {
    display: none;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.5;
}

.hidden {
    display: none;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
}
.breadcrumbs span {
    color: #ffffff;
}
/* Адаптивность */
@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
    }

    .feature {
        width: 90%;
    }
}

