/* ==========================================
   CO-OP CATEGORY MODULE (R.E.P.O. & Co-op Games)
   ========================================== */

/* --- Секции контента и вертикальные отступы --- */
.coop-section {
    margin: 40px 0 70px 0;
}

.coop-section:first-child {
    margin-top: 20px;
}

/* --- Заголовки и текстовые акценты --- */
.showcase-info .section-title {
    text-transform: uppercase;
    font-size: 3rem;
    color: var(--text-color, #ffffff);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.1;
}

.showcase-info .accent-text {
    color: var(--main-color, #7a00fe);
    text-shadow: 0 0 12px rgba(122, 0, 254, 0.6);
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.showcase-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* --- Изолированная сетка галерей R.E.P.O. (4 в ряд, 2 ряда + скролл) --- */
.repo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    
    max-height: 420px; /* Фиксированная высота под 2 ряда */
    overflow-y: auto;  /* Включаем скроллбар */
    
    padding-right: 10px; /* Место под фиолетовый скроллбар */
    margin-top: 20px;
}

/* Карточки картинок с эффектом стекла (16:9) */
.repo-gallery-grid .glass-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    
    background: rgba(18, 15, 35, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

/* Ховер-эффект (увеличение + неоновое свечение) */
.repo-gallery-grid .glass-img:hover {
    transform: scale(1.03);
    border-color: var(--main-color, #7a00fe);
    box-shadow: 0 8px 25px rgba(122, 0, 254, 0.3),
                inset 0 0 10px rgba(122, 0, 254, 0.15);
}

/* Стилизация фиолетового скроллбара */
.repo-gallery-grid::-webkit-scrollbar {
    width: 8px;
}

.repo-gallery-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.repo-gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(122, 0, 254, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.repo-gallery-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 0, 254, 0.85);
}

/* --- Мобильная адаптивность --- */
@media (max-width: 992px) {
    .repo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 450px;
    }
}

@media (max-width: 576px) {
    .repo-gallery-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .showcase-info .section-title {
        font-size: 2rem;
    }
}
/* --------------------------------------------------------------------------
   ПОЛНОЭКРАННЫЙ ЛАЙТБОКС (МОДАЛЬНОЕ ОКНО И СТРЕЛКИ)
   -------------------------------------------------------------------------- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(122, 0, 254, 0.35);
    border: 1px solid rgba(122, 0, 254, 0.3);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-modal.active .modal-content {
    transform: scale(1);
}

/* Кнопка закрытия (Крестик) */
.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-color, #ffffff);
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 100001;
}

.modal-close:hover {
    color: var(--main-color, #7a00fe);
    text-shadow: 0 0 15px var(--main-color, #7a00fe);
}

/* Базовые стили стрелочек "Вперед" / "Назад" */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 40px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    z-index: 100001;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Эффект наведения (Hover) для стрелочек */
.modal-prev:hover,
.modal-next:hover {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%) scale(1.15);
}

/* ==========================================
   WUTHERING WAVES / LOOTER HUB MODULE
   ========================================== */

/* --- Hero Section (Заголовок страницы) --- */
.wuwa-hero-section {
    margin: 40px 0 50px 0;
    text-align: left;
}

.wuwa-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color, #ffffff);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(122, 0, 254, 0.4);
}

.wuwa-subtitle {
    color: var(--main-color, #7a00fe);
    text-shadow: 0 0 15px rgba(122, 0, 254, 0.6);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Hub Section & Headings --- */
.wuwa-hub-section {
    margin-bottom: 70px;
}

.wuwa-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color, #ffffff);
    margin-bottom: 8px;
    letter-spacing: 1.5px;
}

.wuwa-section-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 750px;
    line-height: 1.5;
}

/* --- Dashboard Grid (Сетка карточек) --- */
.wuwa-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* --- Интерактивные карточки-ссылки --- */
.wuwa-hub-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0.7;
    border: 1px solid transparent; 
    box-shadow: 0 0 10px rgba(122, 0, 254, 0.3),
                inset 0 0 5px rgba(122, 0, 254, 0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: border-color, box-shadow, opacity, transform;
    transition: border-color 0.3s ease, 
                box-shadow 0.3s ease, 
                opacity 0.3s ease,
                transform 0.3s ease;  
}

/* Фиолетовая полоса-акцент слева */
.wuwa-hub-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--main-color, #7a00fe);
    opacity: 0;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Эффекты при наведении (Hover) */
.wuwa-hub-card:hover {
    opacity: 1; 
    border-color: var(--main-color, #7a00fe);
    box-shadow: 0 0 20px var(--main-color, #7a00fe),
                inset 0 0 10px var(--main-color, #7a00fe);
    transform: translateY(-3px);
}



/* Стилизация иконок */
.wuwa-hub-icon {
    font-size: 1.8rem;
    line-height: 1;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.wuwa-hub-card:hover .wuwa-hub-icon {
    transform: scale(1.1);  
}

/* Текстовый блок внутри карточки */
.wuwa-hub-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color, #ffffff);
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
}

.wuwa-hub-info p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.45;
}

/* --- Адаптивность для мобильных устройств --- */
@media (max-width: 768px) {
    .wuwa-title {
        font-size: 2.2rem;
    }

    .wuwa-subtitle {
        font-size: 1rem;
    }

    .wuwa-hub-grid {
        grid-template-columns: 1fr;
    }

    .wuwa-hero-section {
        padding: 35px 15px 20px;
    }
}

/* Класс твоего подзаголовка (например, .wuwa-subtitle или .accent-text) */
.wuwa-section-title {
    position: relative;
    padding-left: 16px; /* Отступ текста от полоски */
    display: flex;
    align-items: center;
}

/* Сама неоновая полоска слева */
.wuwa-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* Центрирование по вертикали */
    
    width: 4px;                  /* Толщина полоски */
    height: 80%;                 /* Высота относительно текста (можно 100% или в px) */
    
    background: var(--main-color, #7a00fe);
    border-radius: 2px;          /* Скругление краев полоски */
    
    /* Фирменное неоновое свечение */
    box-shadow: 0 0 10px var(--main-color, #7a00fe);
}