/* ==========================================
   BLENDER GALLERY - 4 CARDS ROW (PURPLE STYLE)
   ========================================== */

.blender-gallery-section {
    padding: 40px 0;
}

/* Сетка strictly на 4 колонки */
.blender-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* Карточка */
.blender-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 12, 29, 0.6);
    /* border: 1px solid rgba(122, 0, 254, 0.25); Твой фиолетовый акцент */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blender-card:hover {
  
    /*border-color: rgba(122, 0, 254, 0.8);*/
    box-shadow: 0 8px 25px rgba(122, 0, 254, 0.2);
}

.blender-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px; /* Фиксированная высота для ровных карточек */
    overflow: hidden;
}

.blender-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blender-card:hover .blender-img {
    transform: scale(1.08);
}

/* Плавное затемнение с текстом снизу */
.blender-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(10, 8, 20, 0.92) 90%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    transition: background 0.3s ease;
    pointer-events: none;
}

.blender-tag {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c77dff;
    background: rgba(122, 0, 254, 0.3);
    /*border: 1px solid rgba(199, 125, 255, 0.4);*/
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.blender-card-title {
    font-size: 1.05rem;
    color: #ffffff;
    margin: 0 0 2px 0;
    font-weight: 600;
}

.blender-card-sub {
    font-size: 0.8rem;
    color: #a0a0ab;
    margin: 0;
}

/* АДАПТИВНОСТЬ ПОД ЭКРАНЫ */
@media (max-width: 1200px) {
    .blender-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 в ряд на планшетах */
    }
}

@media (max-width: 600px) {
    .blender-grid {
        grid-template-columns: 1fr; /* 1 в ряд на телефонах */
    }
}


/* =========================================================
   РАЗДЕЛ BLOCKBENCH - СТИЛИ ДЛЯ ВЕРТИКАЛЬНОГО ОРУЖИЯ
   ========================================================= */

/* Главный контейнер секции Blockbench */
.blockbench-section {
    padding: 30px 0;
}

/* Контейнер для одиночных кнопок фильтрации */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Кнопка категории фильтра */
.filter-btn {
    background: rgba(15, 12, 29, 0.7); /* Цвет матового стекла меню */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none; /* Без рамок */
    color: #a0a0ab;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

/* Эффект наведения и активной кнопки категории */
.filter-btn:hover, 
.filter-btn.active {
    background: rgba(122, 0, 254, 0.35);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(122, 0, 254, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Скролл-контейнер: показывает ровно 3 ряда карточек, остальные скроллит */
.weapon-scroll-container {
    max-height: 1020px; /* Высота 3 рядов карточек с учётом отступов */
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 30px;
}

/* Стиль полосы прокрутки для скролл-контейнера */
.weapon-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.weapon-scroll-container::-webkit-scrollbar-track {
    background: rgba(15, 12, 29, 0.5);
    border-radius: 4px;
}

.weapon-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(122, 0, 254, 0.6);
    border-radius: 4px;
}

.weapon-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 0, 254, 0.9);
}

/* Сетка карточек: ровно 6 штук в один ряд */
.weapon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 колонок */
    gap: 15px; /* Компактный отступ между карточками */
}

/* Карточка оружия: цвет и матовое стекло идентичны меню */
.weapon-card {
    position: relative;
    border-radius: 12px;
    background: rgba(15, 12, 29, 0.7); /* Цвет матового стекла главной шапки */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none; /* Без рамок */
    overflow: hidden;
    /* Тень для объема и мягкого свечения */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(122, 0, 254, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Анимация при наведении на карточку */
.weapon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(122, 0, 254, 0.35);
}

/* Блок изображения: увеличен по высоте под вертикальное оружие */
.weapon-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px; /* Вертикальная ориентация */
    background: radial-gradient(circle at center, rgba(122, 0, 254, 0.1) 0%, rgba(10, 8, 20, 0.75) 100%);
    overflow: hidden;
}

/* Картинка оружия */
.weapon-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Сохраняет пропорции вертикального оружия */
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.weapon-card:hover .weapon-img {
    transform: scale(1.08);
}

/* Невидимый оверлей для сквозного клика в модальное окно */
.weapon-click-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Иконка NEW: в 2 раза меньше и 50% прозрачности */
.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 0, 85, 0.823); /* 50% прозрачность цвета */
    color: #ffffff;
    font-size: 0.5rem; /* Уменьшено в 2 раза */
    font-weight: 800;
    padding: 2px 6px; /* Уменьшенные отступы */
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.5; /* Дополнительная 50% общая прозрачность */
    z-index: 2;
}

/* Текст эксклюзивности сервера в правом верхнем углу */
.badge-server {
    position: absolute;
    top: 8px;
    right: 8px;
    /*background: rgba(10, 8, 20, 0.65);*/
    backdrop-filter: blur(4px);
    color: #a1a1a1c9;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 2;
}

/* Блок с текстовой информацией под картинкой */
.weapon-info {
    padding: 12px 14px;
}

/* Название оружия */
.weapon-title {
    font-size: 0.90rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;       /* Разрешаем перенос на новую строку */
    word-break: break-word;    /* Аккуратно переносим слишком длинные слова */
    
}

/* Подзаголовок (тип оружия) */
.weapon-type {
    font-size: 0.65rem;
    color: #7a00fe;
    margin: 0 0 10px 0;
    font-weight: 600;
    text-transform: uppercase;
}

/* Контейнер для нижних тегов */
.weapon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Отдельный тег характеристики */
.w-tag {
    font-size: 0.62rem;
    color: #d1c4e9;
    /*background: rgba(255, 255, 255, 0.05);*/
    padding: 2px 6px;
    border-radius: 4px;
}

/* Адаптивность для планшетов и мобильных устройств */
@media (max-width: 1400px) {
    .weapon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .weapon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .weapon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================
   СТИЛИ КАРТОЧЕК CGI GALLERY
   ========================================== */

.works-section {
    padding: 20px 0 60px 0;
}

.section-title {
    font-size: 3rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.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;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin: 0;
}

/* ==========================================
   СЕТКА И КАРТОЧКИ (GLASSMORPHISM & NEON)
   ========================================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Карточка в обычном состоянии */
.work-card {
    background: rgba(20, 20, 32, 0.6);
    border: 1px solid rgba(122, 0, 254, 0.3);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s ease;
}

/* Эффект при наведении на карточку (Hover) */
.work-card:hover {
    transform: translateY(-6px);
    border-color: #7a00fe;
    box-shadow: 0 10px 30px rgba(122, 0, 254, 0.4),
                0 0 15px rgba(122, 0, 254, 0.2);
}

.card-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* ==========================================
   НЕОНОВАЯ КНОПКА
   ========================================== */
.server-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 30px;
    background: rgba(122, 0, 254, 0.2);
    border: 2px solid #7a00fe;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(122, 0, 254, 0.4);
    transition: all 0.3s ease;
}

.server-btn:hover {
    background: #7a00fe;
    box-shadow: 0 0 25px rgba(122, 0, 254, 0.8);
    color: #ffffff;
    transform: translateY(-2px);
}



/* ==========================================
   СЕКЦИЯ КОНТЕНТА И ЗАГОЛОВКИ
   ========================================== */

.servers-section {
    padding: 40px 0 40px 0;
    position: relative;
    z-index: 2;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.server-card {opacity: 0.8;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /*border: 2px solid rgba(122, 0, 254, 0.4);*/
    box-shadow: 0 0 10px rgba(123, 0, 255, 0.3), 
                inset 0 0 5px rgba(119, 0, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* HOVER КАРТОЧКИ (СВЕЧЕНИЕ И ПОДЪЕМ) */
.server-card:hover {opacity: 2;
    transform: translateY(-5px);
    border-color: var(--main-color); 
    box-shadow: 0 0 20px var(--main-color), 
                inset 0 0 10px var(--main-color);
}

.server-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.server-description {
    color: var(--text-muted, #a0a0b0);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    margin-bottom: 30px;
}

/* ==========================================
   КНОПКА СИБЕР-ПАНК (.CYBER-BTN ИЗ SURVIVAL.CSS)
   ========================================== */
.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(122, 0, 254, 0.25);
    transform: translateX(5px);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    
    /* Точный срез углов из проекта */
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(122, 0, 254, 0.3);
    cursor: pointer;
    width: fit-content;
}

.cyber-btn .btn-arrow {
    margin-left: 15px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* HOVER КНОПКИ */
.cyber-btn:hover {
    background: #7a00fe;
    
    box-shadow: 0 0 20px rgba(122, 0, 254, 0.8);
    color: #ffffff;
    transform: translateY(-1px);
}

.cyber-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Адаптив под мобилки */
@media (max-width: 768px) {
    .servers-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-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);
}

