/* ==========================================
   DESTINY 2: ГАЛЕРЕЯ (4 в ряд, 2 ряда + скролл)
   ========================================== */

/* Отступ сверху от хлебных крошек */
.spawn-showcase {
    margin: 40px 0 80px 0; 

}

.showcase-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.showcase-info .section-title {
    text-transform: uppercase;
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: 2px;
}
.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;
    margin-right: 40rem;
}

/* Сетка со скроллом */
.gallery-scroll-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    
    max-height: 420px; /* Высота под 2 ряда картинок */
    overflow-y: auto;  /* Включаем скролл */
    
    padding-right: 10px; /* Место под скроллбар */
    margin-top: 15px;
}

/* Картинки (стекло, пропорции 16:9) */
.gallery-scroll-container .glass-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /*border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(122, 0, 254, 0.25);*/
    
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.gallery-scroll-container .glass-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(122, 0, 254, 0.2);
}

/* Фиолетовый скроллбар */
.gallery-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(122, 0, 254, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 0, 254, 0.5);
}

/* Адаптив */
@media (max-width: 992px) {
    .gallery-scroll-container {
        grid-template-columns: repeat(2, 1fr);
        max-height: 450px;
    }
}

@media (max-width: 576px) {
    .gallery-scroll-container {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
}

/* В survival.css пиши всё, что относится к сетке этой страницы */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.glass-img {
    cursor: pointer; /* чтобы пользователь видел, что картинка кликабельна */
    transition: transform 0.2s ease;
}

.glass-img:hover {
    transform: scale(1.05);
}

/* ==========================================
   WARFRAME: TENNO HUB & FASHION FRAME СТИЛИ
   ========================================== */

/* Главный блок заголовка страницы Warframe */
.wf-hero-section {
    margin: 40px 0 50px 0;
    text-align: left;
}

.wf-title {
    font-size: 3rem;
    color: var(--text-color, #ffffff);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.wf-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;
}

/* Общие заголовки секций */
.wf-hub-section,
.wf-fashion-section {
    margin-bottom: 60px;
}

.wf-section-title { position: relative; padding-left: 15px;
    font-size: 1.5rem;
    color: var(--text-color, #ffffff);
    margin-bottom: 3px;
    font-weight: 700;
    letter-spacing: 1.5px; 
}
.wf-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: var(--main-color, #7a00fe);
    border-radius: 2px;}

.wf-section-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ==========================================
   1. TENNO DASHBOARD (Сетка внешних сервисов)
   ========================================== */
.wf-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.wf-hub-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid transparent;
    text-decoration: none;
    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;            
}

.wf-hub-icon {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
}

.wf-hub-info h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.wf-hub-info p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Эффект при наведении на карточку хаба */
.wf-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);
}



/* ==========================================
   2. FASHION FRAME & CAPTURA (Галерея кастомизации)
   ========================================== */
.wf-fashion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.wf-fashion-card {
    background: rgba(18, 15, 35, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.wf-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0b18;
    position: relative;
}

.wf-image-wrapper img.glass-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.wf-fashion-info {
    padding: 20px;
}

.wf-frame-name {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Список деталей экипировки / палитр */
.wf-fashion-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wf-fashion-details li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.wf-fashion-details li span {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    margin-right: 6px;
}

/* Эффект при наведении на карточку Fashion Frame */
.wf-fashion-card:hover {
    transform: translateY(-6px);
    border-color: var(--main-color, #7a00fe);
    box-shadow: 0 12px 30px rgba(122, 0, 254, 0.35),
                inset 0 0 15px rgba(122, 0, 254, 0.15);
}

.wf-fashion-card:hover img.glass-img {
    transform: scale(1.05);
}


/* ==========================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================== */
@media (max-width: 768px) {
    .wf-title {
        font-size: 2.2rem;
    }
    
    .wf-subtitle {
        font-size: 1.1rem;
    }

    .wf-section-title {
        font-size: 1.5rem;
    }

    .wf-hub-grid,
    .wf-fashion-grid {
        grid-template-columns: 1fr;
    }
}
/* --------------------------------------------------------------------------
   ПОЛНОЭКРАННЫЙ ЛАЙТБОКС (МОДАЛЬНОЕ ОКНО И СТРЕЛКИ)
   -------------------------------------------------------------------------- */
.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;
   

    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);
}