/* --- ЦВЕТОВЫЕ ТЕМЫ --- */

:root {
    --main-color: #f1c40f; /* Желтый */
    --main-color-rgba: rgba(241, 196, 15, 0.5);
    --bg-image: url('images/Drow_1.webp'); 
}

[data-theme="green"] {
    --main-color: #2ecc71; /* Зеленый */
    --main-color-rgba: rgba(46, 204, 113, 0.5);
    --bg-image: url('images/Dueal.jpg'); 
}

/* Применяем переменные к телу сайта */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    color: white;
    /* Затемнение + Фон */
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 0.5s ease, color 0.3s ease;
}

/* Привязка всех цветных элементов к переменной */
.logo, .section-title, .scam-nickname, .hero-title, .nav-links a:hover {
    color: var(--main-color) !important;
}

.scam-header-icon, .btn-outline, .custom-icon, .theme-btn {
    border-color: var(--main-color) !important;
}

.btn-main, .scam-status, .status-dot, .btn-join {
    background-color: var(--main-color) !important;
}

/* ШАПКА И НАВИГАЦИЯ (ИСПРАВЛЕНО) */
header {
    background: rgba(20, 20, 20, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Заменил #f1c40f на переменную, чтобы полоска меняла цвет */
    border-bottom: 2px solid var(--main-color); 
    transition: border-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Тень тоже теперь зависит от темы */
    text-shadow: 0 0 10px var(--main-color-rgba);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

/* СТИЛИ ДЛЯ КНОПОК ПЕРЕКЛЮЧЕНИЯ (чтобы они были видны) */
.theme-switcher {
    display: flex;
    gap: 8px;
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
}

.theme-btn.yellow { background-color: #f1c40f; }
.theme-btn.green { background-color: #2ecc71; }
.theme-btn.blue { background-color: #3498db; }

/* КОНТЕНТ И СЕКЦИИ */
.container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.content-section {
    display: none; /* Скрыто по умолчанию */
    animation: fadeIn 0.6s ease;
}

.content-section.active {
    display: block; /* Показывается при клике */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2.5rem;
    color: #f1c40f;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #bdc3c7;
    margin-bottom: 40px;
}

/* СЕТКА СКАМ-ЛИСТА */
.scam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.scam-card {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(231, 76, 60, 0.4); /* Красная рамка для скама */
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}

.scam-card:hover {
    transform: scale(1.02);
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.2);
}

.scam-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e74c3c;
    flex-shrink: 0;
}

.scam-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scam-info {
    text-align: left;
}

.scam-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.scam-info p {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin: 5px 0 15px 0;
}

.btn-proof {
    display: inline-block;
    padding: 8px 18px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-proof:hover {
    background: #c0392b;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* ФИКСИРОВАННЫЕ ИКОНКИ МЕССЕНДЖЕРОВ */
.social-icons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
}

.custom-icon {
    width: 60px;  /* Размер иконки */
    height: 60px;
    border-radius: 50%;
    border: 3px solid #f1c40f;
    background: #000;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.custom-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-icon:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: white;
}

/* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links li {
        margin: 0 5px;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
}

/* --- СЕКЦИЯ СКАМ ЛИСТ (ОБНОВЛЕННАЯ) --- */

/* Стеклянный блок вверху */
.scam-header-box {
    background: rgba(255, 255, 255, 0.03); /* Почти прозрачный фон */
    backdrop-filter: blur(20px);           /* Эффект размытия фона */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 50px 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Иконка Цербера (Свободная, без рамок) */
.free-icon {
    width: 150px;               /* Размер иконки */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    /* Тень именно по контуру картинки (если PNG прозрачный) */
    filter: drop-shadow(0 0 20px rgba(241, 196, 15, 0.5)); 
    transition: transform 0.4s ease;
}

.scam-header-box:hover .free-icon {
    transform: scale(1.08) translateY(-5px); /* Легкое движение вверх при наведении */
}

.scam-header-title {
    font-size: 2.5rem;
    color: #f1c40f;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.scam-header-subtitle {
    color: #bdc3c7;
    font-size: 1rem;
    font-weight: 300;
}

/* Список строк */
.scam-text-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 850px;
    margin: 0 auto;
}

.scam-text-item {
    background: rgba(0, 0, 0, 0.5); /* Темный фон строки */
    border-left: 4px solid #e74c3c; /* Красная метка слева */
    padding: 15px 25px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.scam-text-item:hover {
    background: rgba(231, 76, 60, 0.15); /* Подсветка при наведении */
    transform: translateX(10px);        /* Сдвиг вправо */
}

/* Метка статуса */
.scam-status {
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.75rem;
    margin-right: 25px;
}

/* Информация (Ник и Причина) */
.scam-details {
    flex-grow: 1;
    text-align: left;
}

.scam-nickname {
    color: #f1c40f;
    font-weight: bold;
    font-size: 1.15rem;
    display: block;
}

.scam-reason {
    color: #ecf0f1;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Кнопка Proofs */
.btn-prufs-small {
    background: transparent;
    border: 1px solid #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-prufs-small:hover {
    background: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

/* Контейнер для карточек */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    margin-top: 40px;
}

/* Карточка в стиле Discord */
.partner-card {
    background: #2f3136; /* Цвет фона Discord */
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

/* Баннер (верхняя полоска карточки) */
.partner-banner {
    background: #5865f2; /* Цвет Blurple или можно поставить картинку */
    height: 60px;
    width: 100%;
}

/* Контент внутри карточки */
.partner-content {
    padding: 16px;
    padding-top: 40px; /* Место для аватара, который вылезает вверх */
    position: relative;
    text-align: left;
}

/* Круглая аватарка, перекрывающая баннер */
.partner-avatar {
    width: 80px;
    height: 80px;
    background: #2f3136;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    left: 16px;
    padding: 5px; /* Чтобы был эффект ободка */
}

.partner-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.partner-name {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.partner-desc {
    color: #b9bbbe;
    font-size: 0.9rem;
    margin: 10px 0 20px 0;
    height: 40px; /* Ограничение высоты текста */
}

/* Нижняя часть с кнопкой */
.partner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.online-status {
    font-size: 0.8rem;
    color: #b9bbbe;
    display: flex;
    align-items: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #3ba55c; /* Зеленый как в Discord */
    border-radius: 50%;
    margin-right: 8px;
}

.btn-join {
    background: #3ba55c;
    color: white;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-join:hover {
    background: #2d7d44;
}

    .player-card-result {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--main-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    animation: slideUp 0.4s ease;
}

.result-header {
    background: var(--main-color);
    color: black;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.result-body {
    padding: 15px;
}

.result-body h3 {
    margin: 0 0 10px 0;
    color: var(--main-color);
}

.result-body p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.result-body p span {
    color: #888;
}

.loading-spinner {
    color: var(--main-color);
    text-align: center;
    padding: 20px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-container {
    display: none; /* Скрыто до поиска */
    animation: fadeIn 0.3s ease-out;
}

/* Переопределяем стили карточки результата */
.player-card-result {
    background: #2d2d2d;
    border: 2px solid #4a90e2;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    max-width: 450px;
    margin: 20px auto;
    overflow: hidden;
}

.result-header {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #4a90e2;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

.result-body h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #444;
}

.stat-row i {
    color: #4a90e2;
    width: 20px;
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
}

.online-status.is-online {
    color: #4caf50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #4a90e2;
}

.minimal-footer {
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #444, transparent);
    max-width: 600px;
    margin: 0 auto 20px;
}

.footer-copyright {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.f-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.f-link i {
    font-size: 1rem;
}

.f-link:hover {
    color: var(--main-color); /* Подсветится твоим желтым/зеленым */
}

.f-separator {
    color: #444;
    user-select: none;
}

/* На мобилках делаем текст чуть крупнее для удобства нажатия */
@media (max-width: 600px) {
    .f-link {
        font-size: 1rem;
        padding: 10px;
    }
}

/* Контейнер переключателя */
.theme-selection {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-btns-container {
    display: flex;
    gap: 10px;
}

/* Сами кнопки-точки */
.t-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}

.t-btn:hover {
    transform: scale(1.3);
    border-color: white;
}

.t-btn.yellow { background-color: #f1c40f; }
.t-btn.green { background-color: #2ecc71; }

/* Адаптация для мобилок: в навигации скрываем лишнее */
@media (max-width: 600px) {
    nav {
        flex-wrap: wrap; /* Позволяет логотипу и теме быть в одной строке */
        gap: 10px;
    }
    .theme-selection {
        order: 2; /* Ставим переключатель после логотипа */
        padding: 4px 8px;
    }
    .nav-links {
        order: 3; /* Ссылки меню уходят вниз */
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}