/* ==========================================================================
   УНИКАЛЬНЫЕ СТИЛИ ДЛЯ ИГР КАТЕГОРИИ SURVIVAL (Minecraft, Once Human)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ОБЩИЕ МАТОВЫЕ КАРТОЧКИ (GLASS CARDS)
   -------------------------------------------------------------------------- */
.dash-card,
.quick-nav-card,
.server-card,
.glass-card {
    box-sizing: border-box;
    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;
}

.dash-card {
    border-radius: 12px;
    padding: 25px;
}

.server-card,
.glass-card {
    border-radius: 15px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quick-nav-card {
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #ffffff;
}

/* Эффекты при наведении */
.dash-card:hover,
.server-card:hover,
.glass-card:hover,
.quick-nav-card:hover,
.active-server: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);
}

.quick-nav-card:hover .nav-arrow {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   2. СЕКЦИЯ СЕРВЕРОВ
   -------------------------------------------------------------------------- */
.servers-section {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.server-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.server-logo {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.server-card h3 {
    font-size: 2rem;
    color: var(--text-color, #ffffff);
    letter-spacing: 1px;
    margin: 0;
}

.server-card p {
    color: var(--text-muted, #a0a0b0);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.server-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
    width: 100%;
}

.server-features li {
    color: var(--text-color, #ffffff);
    font-size: 1rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.server-features li::before {
    content: '▹';
    color: var(--main-color, #7a00fe);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
}

/* Действия сервера и сборки */
.server-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin-top: auto;
    flex-wrap: wrap;
}

.modpack-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.modpack-btn {
    white-space: nowrap;
}

.modpack-btn .btn-icon {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    margin-left: 0;
}

.modpack-btn:hover .btn-icon {
    max-width: 25px;
    opacity: 1;
    margin-left: 8px;
    transform: translateY(-5px);
}

/* Сервер в разработке */
.dev-server {
    opacity: 0.6;
    filter: grayscale(40%);
}

.dev-server:hover {
    opacity: 0.85;
    filter: grayscale(0%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 1, 255, 0.6);
}

.wip-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.5);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   3. НЕОНОВЫЕ ТУЛТИПЫ И КНОПКИ КИБЕРПАНК
   -------------------------------------------------------------------------- */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    padding: 5px;
}

.tooltip-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: monospace;
    font-weight: 700;
    transition: all 0.3s ease;
}

.tooltip-container:hover .tooltip-icon {
    border-color: #7a00fe;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(122, 0, 254, 0.6);
    background: rgba(122, 0, 254, 0.2);
}

.tooltip-content {
    position: absolute;
    bottom: 130%;
    right: -10px;
    transform: translateY(10px);
    background: rgba(15, 10, 25, 0.95);
    border: 1px solid #7a00fe;
    box-shadow: 0 0 25px rgba(122, 0, 254, 0.4), inset 0 0 10px rgba(122, 0, 254, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    width: 280px;
    color: #e2def0;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    pointer-events: none;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px;
    border-width: 6px;
    border-style: solid;
    border-color: #7a00fe transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cyber-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background: rgba(122, 0, 254, 0.2);
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cyber-btn:hover:not(.disabled) {
    background: #7a00fe;
    box-shadow: var(--neon-glow) !important;
    transform: translateY(-2px);
}

.cyber-btn.disabled,
.cyber-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* --------------------------------------------------------------------------
   4. ПРЕЗЕНТАЦИЯ СПАВНА И ГАЛЕРЕЯ ВОСПОМИНАНИЙ
   -------------------------------------------------------------------------- */
.aboba {
    margin-top: 120px !important;
}

.spawn-showcase {
    margin-top: 40px; 
    margin-bottom: 40px;    
    position: relative;
    z-index: 2;
}

.showcase-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    width: 100% !important;
}

.showcase-info {
    opacity: 0.7;
    width: 100% !important;
    margin: 0 !important;
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 0 10px rgba(122, 0, 254, 0.3), 
                inset 0 0 5px rgba(122, 0, 254, 0.1);
    border: 1px solid transparent; 
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: border-color, box-shadow, opacity, transform;
    transition: 0.3s ease;
}
.showcase-info: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);
} 

.showcase-info p {
    color: var(--text-muted, #a0a0b0);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.showcase-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 8px;
}

.glass-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-img:hover {
    transform: scale(1.03);
    border-color: rgba(122, 0, 254, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10;
    position: relative;
}

/* Скроллбар галереи */
.showcase-grid::-webkit-scrollbar {
    width: 6px;
}

.showcase-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.showcase-grid::-webkit-scrollbar-thumb {
    background: #7b00fe8e;
    border-radius: 6px;
    box-shadow: none;
}

.showcase-grid::-webkit-scrollbar-thumb:hover {
    background: #9330fe;
}

/* --------------------------------------------------------------------------
   5. ПОЛНОЭКРАННЫЙ ЛАЙТБОКС (МОДАЛЬНОЕ ОКНО)
   -------------------------------------------------------------------------- */
.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;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    z-index: 100000;
    padding: 10px;
    box-shadow: none;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%) scale(1.15);
}

/* --------------------------------------------------------------------------
   6. ONCE HUMAN DASHBOARD STYLES
   -------------------------------------------------------------------------- */
.once-human-dashboard {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    color: var(--text-color, #ffffff);
    box-sizing: border-box;
}

.dashboard-header {
    margin-bottom: 40px;
    text-align: left;
}

.dashboard-title {
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #ffffff;
}

.dashboard-title .accent-text {
    font-weight: 600;
    color: var(--main-color, #7a00fe);
    text-shadow: 0 0 12px rgba(122, 0, 254, 0.6);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.dashboard-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.dashboard-top-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.dashboard-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 16px;
    text-transform: uppercase;
}

.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;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dash-card-header h3 {
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 1px;
    display: inline-block;
}

.status-indicator.active {
    width: 10px;
    height: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    display: inline-block;
    margin-right: 8px;
}

.dash-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 6px;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
}

.info-value.highlight {
    color: var(--main-color, #7a00fe);
    font-weight: 600;
}

/* Промокоды */
.badge-new {
    background: rgba(122, 0, 254, 0.3);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: none;
}

.promo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 8px;
}

.promo-code {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.promo1 { color: #1100fe; }
.promo2 { color: #fee900; }
.promo3 { color: #00b862; }

.cyber-btn-sm {
    background: var(--main-color, #7a00fe);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transform: translateZ(0);
    will-change: background, box-shadow, transform;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cyber-btn-sm:hover {
    background: #9633ff;
    box-shadow: 0 0 10px rgba(122, 0, 254, 0.6);
    transform: translateY(-1px);
}

.cyber-btn-sm.copied {
    background: #00b862 !important;
    box-shadow: 0 0 12px rgba(0, 184, 98, 0.6);
}

/* Быстрые ссылки и билды */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.nav-icon {
    font-size: 1.6rem;
}

.nav-info {
    flex-grow: 1;
}

.nav-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.nav-info p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.nav-arrow {
    font-size: 1.1rem;
    color: var(--main-color, #7a00fe);
    transition: transform 0.2s ease;
}

.builds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.build-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.build-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--main-color, #7a00fe);
    background: rgba(122, 0, 254, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.build-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.build-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1;
}

.build-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   7. ИЗОЛЯЦИЯ ДЛЯ MINECRAFT (.minecraft-page)
   -------------------------------------------------------------------------- */
.minecraft-page .section-title::before,
.minecraft-page .dashboard-title .accent-text {
    text-shadow: 0 0 15px rgba(122, 0, 254, 0.8);
}

/* --------------------------------------------------------------------------
   8. АДАПТИВНОСТЬ (RESPONSIVE)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .dashboard-top-grid,
    .quick-nav-grid,
    .builds-grid,
    .servers-grid,
    .showcase-wrapper {
        grid-template-columns: 1fr !important;
    }
}

