/* ==========================================================================
   MODS-CORE: Sistema de Diseño para Modalidades Survival Rolemine
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CATÁLOGO PRINCIPAL (vInicio)
   -------------------------------------------------------------------------- */
.srn-modes-header {
    padding: 140px 0 70px;
    background: radial-gradient(circle at top, rgba(var(--srn-rgb-red), 0.15) 0%, transparent 70%);
    text-align: center;
}

.srn-title-category {
    font-size: 1.5rem; color: var(--srn-white); margin: 60px 0 30px;
    display: flex; align-items: center; gap: 15px; letter-spacing: 3px;
}

.srn-title-category::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--srn-border-light), transparent);
}

.srn-modes-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}

/* --- RECUPERACIÓN DE CARDS DE MODALIDADES --- */
.srn-mode-card {
    position: relative;
    height: 400px;
    border: 1px solid var(--srn-border-dark);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.srn-mode-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.srn-mode-info {
    position: relative;
    z-index: 2;
}

.srn-mode-info h3 {
    font-size: 1.8rem;
    color: var(--srn-white);
    margin-bottom: 10px;
    line-height: 1.1;
}

.srn-mode-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.srn-mode-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--srn-red);
    color: var(--srn-white);
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 900;
    border-radius: 8px;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.srn-mode-card:hover {
    transform: translateY(-8px);
    border-color: var(--srn-red);
}

.srn-mode-card:hover .srn-mode-badge {
    background: var(--srn-white);
    color: var(--srn-dark);
}

/* --------------------------------------------------------------------------
   2. HERO SECTIONS (Páginas Individuales - Landing)
   -------------------------------------------------------------------------- */
.srn-mode-hero {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column; /* Importante para que el container ocupe el alto */
    justify-content: flex-end; 
    overflow: hidden;
}

.srn-mode-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(13, 14, 18, 0.95) 30%, rgba(13, 14, 18, 0.2) 100%),
                linear-gradient(to bottom, transparent 60%, rgba(13, 14, 18, 1) 100%);
    z-index: 5;
}

/* ELIMINADO EL PADDING FIJO DE 300PX PARA MEJORAR RESPONSIVIDAD */
.srn-mode-header-content { 
    max-width: 750px; 
    position: relative; 
    z-index: 10; 
    padding: 20px; 
}

.srn-mode-title {
    font-size: clamp(2.5rem, 8vw, 4rem); line-height: 1; margin: 15px 0 25px;
    font-weight: 900; text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.srn-info-pill {
    background: rgba(var(--srn-rgb-red), 0.1); border: 1px solid rgba(var(--srn-rgb-red), 0.3);
    padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 10px; backdrop-filter: blur(5px);
}

/* --------------------------------------------------------------------------
   3. DASHBOARD INTERACTIVO (Landing Page System)
   -------------------------------------------------------------------------- */
.srn-mode-dashboard {
    margin-top: -60px; /* Reducimos de -120px a -60px para bajar los tabs */
    margin-bottom: 80px;
    position: relative;
    z-index: 30;
}

.srn-dashboard-wrapper {
    background: var(--srn-glass-medium); backdrop-filter: blur(25px);
    border: 1px solid var(--srn-border-light); border-radius: 30px;
    display: flex; overflow: hidden; min-height: 450px; box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.srn-dashboard-nav {
    width: 260px; background: rgba(0, 0, 0, 0.4);
    border-right: 1px solid var(--srn-border-light); display: flex; flex-direction: column;
}

.srn-nav-btn {
    padding: 25px; background: transparent; border: none;
    color: rgba(255, 255, 255, 0.4); text-align: left;
    display: flex; align-items: center; gap: 15px; cursor: pointer;
    transition: 0.3s; border-left: 4px solid transparent;
}

.srn-nav-btn.active {
    background: rgba(var(--srn-rgb-red), 0.15); color: var(--srn-white);
    border-left-color: var(--srn-red);
}

.srn-dashboard-content { flex: 1; padding: 50px; }

.srn-guide-minimal {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 10px;
}

.srn-mini-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* --------------------------------------------------------------------------
   4. CONTENIDO DE TABS
   -------------------------------------------------------------------------- */
.srn-tab-pane { display: none; animation: srnFadeUp 0.5s ease forwards; }
.srn-tab-pane.active { display: block; }

@keyframes srnFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.srn-cmd-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}

.srn-cmd-code {
    color: var(--srn-red); font-family: monospace; font-weight: bold;
    background: rgba(var(--srn-rgb-red), 0.1); padding: 4px 10px; border-radius: 6px;
}

/* --------------------------------------------------------------------------
   5. SECCIÓN DE MINIJUEGOS COMPACTA
   -------------------------------------------------------------------------- */
.srn-minigames-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.2);
}

.srn-minigames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.srn-mini-card {
    background: var(--srn-glass-soft);
    border: 1px solid var(--srn-border-light);
    padding: 25px 15px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.srn-mini-card:hover {
    background: rgba(var(--srn-rgb-red), 0.1);
    border-color: var(--srn-red);
    transform: translateY(-5px);
}

.srn-mini-card i {
    font-size: 1.5rem;
    color: var(--srn-red);
}

.srn-mini-card span {
    font-family: 'BebasCustom', sans-serif;
    font-size: 1.1rem;
    color: var(--srn-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}



/* --------------------------------------------------------------------------
   6. RESPONSIVE / MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .srn-modes-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 30px; 
    }
    .srn-minigames-grid {
        grid-template-columns: repeat(3, 1fr); 
        gap: 25px; 
    }
}

@media (max-width: 991px) and (min-width: 600px) {
    .srn-minigames-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .srn-mode-hero {
        align-items: center; /* En móviles centramos para mejor visibilidad */
        text-align: center;
        padding-bottom: 0;
    }
}