/* ==========================================================================
   Guía ZRR — Estilos Premium (v4)
   ========================================================================== */

/* ─── Layout dos columnas ─────────────────────────────────────────────────── */

.zrr-guide-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 992px) {
    .zrr-guide-layout {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 28px;
        align-items: start;
    }
}

/* ─── Sidebar de navegación ──────────────────────────────────────────────── */

#menu-zrrguide {
    background: rgba(11, 15, 18, 0.92) !important;
    border: 1px solid rgba(113, 255, 91, 0.22) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55) !important;
}

@media (min-width: 992px) {
    #menu-zrrguide {
        position: sticky;
        top: 88px;
    }
}

.zrr-sidebar-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #73ff58;
    padding: 0 4px 12px;
    border-bottom: 1px solid rgba(113, 255, 91, 0.18);
    margin-bottom: 10px;
}

/* ─── Lista del menú ─────────────────────────────────────────────────────── */

#menu-zrrguide #menu-zrrguide-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

#menu-zrrguide #menu-zrrguide-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* ─── Pestañas del sidebar — estado base ───────────────────────────────── */

#menu-zrrguide #menu-zrrguide-list li a,
#menu-zrrguide #menu-zrrguide-list li a:link,
#menu-zrrguide #menu-zrrguide-list li a:visited {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 11px 14px !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #a9b5a9 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

/* ─── Icono chevron en cada tab ────────────────────────────────────────── */

#menu-zrrguide #menu-zrrguide-list li a::before {
    content: "›" !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* ─── Hover ─────────────────────────────────────────────────────────────── */

#menu-zrrguide #menu-zrrguide-list li a:hover {
    color: #f3f7f2 !important;
    background: rgba(115, 255, 88, 0.08) !important;
    border-color: rgba(113, 255, 91, 0.22) !important;
    text-decoration: none !important;
}

#menu-zrrguide #menu-zrrguide-list li a:hover::before {
    opacity: 1;
    transform: translateX(2px);
}

/* ─── Activo ─────────────────────────────────────────────────────────────── */

#menu-zrrguide #menu-zrrguide-list li a.active,
#menu-zrrguide #menu-zrrguide-list li a.active:link,
#menu-zrrguide #menu-zrrguide-list li a.active:visited {
    color: #071007 !important;
    background: #73ff58 !important;
    border-color: #73ff58 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 20px rgba(115, 255, 88, 0.35) !important;
    text-decoration: none !important;
}

#menu-zrrguide #menu-zrrguide-list li a.active::before {
    opacity: 1;
    color: #071007;
    transform: rotate(90deg) translateX(-1px);
}

/* ─── Sub-menú de tipos de arma (horizontal) ─────────────────────────── */

#select-weapontype-menu {
    margin-bottom: 28px !important;
}

#select-weapontype-menu #weapontype-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

#select-weapontype-menu #weapontype-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#select-weapontype-menu #weapontype-list li a,
#select-weapontype-menu #weapontype-list li a:link,
#select-weapontype-menu #weapontype-list li a:visited {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 20px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(113, 255, 91, 0.22) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #a9b5a9 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#select-weapontype-menu #weapontype-list li a:hover {
    color: #f3f7f2 !important;
    background: rgba(115, 255, 88, 0.1) !important;
    border-color: rgba(113, 255, 91, 0.5) !important;
    text-decoration: none !important;
}

#select-weapontype-menu #weapontype-list li a.active,
#select-weapontype-menu #weapontype-list li a.active:link,
#select-weapontype-menu #weapontype-list li a.active:visited {
    color: #071007 !important;
    background: #73ff58 !important;
    border-color: #73ff58 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 16px rgba(115, 255, 88, 0.3) !important;
    text-decoration: none !important;
}

/* ─── Área de contenido ─────────────────────────────────────────────────── */

.zrr-guide-content {
    min-width: 0;
}

/* ─── Secciones de contenido ─────────────────────────────────────────── */

.content-section {
    animation: zrrFadeIn 0.3s ease-out;
}

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

.content-section > h2,
.content-section > h3 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #f3f7f2 !important;
    margin: 0 0 24px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(113, 255, 91, 0.18) !important;
    position: relative !important;
}

.content-section > h2::after,
.content-section > h3::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -1px !important;
    width: 56px !important;
    height: 3px !important;
    background: #73ff58 !important;
    box-shadow: 0 0 10px rgba(115, 255, 88, 0.5) !important;
    border-radius: 99px !important;
}

.content-section p {
    color: #a9b5a9 !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
}

/* ─── Cuadrículas de tarjetas (armas) ─────────────────────────────────── */

#weapon-container,
#pistol-container,
#knife-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* ─── Layout filas de clases humanas ─────────────────────────────────── */

#class-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.hclass-row {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.hclass-row .hclass-card {
    flex: 1 !important;
    min-width: 0 !important;
}

/* ─── Tarjeta de imagen completa (Nivel I / Nivel X) ─────────────────── */

.hclass-card-img {
    flex: 1 !important;
    min-width: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(113, 255, 91, 0.22) !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    cursor: default !important;
}

.hclass-card-img:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(115, 255, 88, 0.5) !important;
    box-shadow: 0 20px 40px rgba(115, 255, 88, 0.12), 0 18px 60px rgba(0,0,0,0.55) !important;
}

.card-img-max {
    border-color: rgba(255, 233, 107, 0.35) !important;
}

.card-img-max:hover {
    border-color: rgba(255, 233, 107, 0.65) !important;
    box-shadow: 0 20px 40px rgba(255, 233, 107, 0.12), 0 18px 60px rgba(0,0,0,0.55) !important;
}

.hclass-card-img img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.hclass-card-img:hover img {
    transform: scale(1.03) !important;
}


/* ─── Badges de nivel ───────────────────────────────────────────────── */

.badge-nivel-base {
    color: #a9b5a9 !important;
    border-color: rgba(169, 181, 169, 0.35) !important;
    background: rgba(7, 9, 12, 0.85) !important;
}

.badge-nivel-max {
    color: #ffe96b !important;
    border-color: rgba(255, 233, 107, 0.45) !important;
    background: rgba(7, 9, 12, 0.85) !important;
    box-shadow: 0 0 10px rgba(255, 233, 107, 0.15) !important;
}

/* ─── Flecha animada de mejora ───────────────────────────────────────── */

.hclass-upgrade-arrow {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    width: 54px !important;
}

.arrow-chevron {
    display: block !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    color: #73ff58 !important;
    text-shadow: 0 0 10px rgba(115, 255, 88, 0.6) !important;
    animation: arrowPulse 1.2s ease-in-out infinite !important;
    opacity: 0;
}

.arrow-chevron.c1 { animation-delay: 0s !important; }
.arrow-chevron.c2 { animation-delay: 0.2s !important; }
.arrow-chevron.c3 { animation-delay: 0.4s !important; }

@keyframes arrowPulse {
    0%   { opacity: 0.1; transform: translateX(-4px); }
    50%  { opacity: 1;   transform: translateX(4px);  }
    100% { opacity: 0.1; transform: translateX(-4px); }
}

.arrow-label {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(115, 255, 88, 0.6) !important;
    text-align: center !important;
}

/* ─── Responsive: en móvil las filas se apilan ────────────────────────── */

@media (max-width: 700px) {
    .hclass-row {
        flex-direction: column !important;
    }

    .hclass-upgrade-arrow {
        flex-direction: row !important;
        width: auto !important;
        transform: rotate(0deg);
    }

    .arrow-chevron {
        font-size: 1.6rem !important;
    }

    .arrow-label {
        display: none !important;
    }
}


/* ─── Tarjeta Premium ─────────────────────────────────────────────────── */

.zrr-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(11, 15, 18, 0.88) !important;
    border: 1px solid rgba(113, 255, 91, 0.22) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.zrr-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(115, 255, 88, 0.55) !important;
    box-shadow: 0 20px 40px rgba(115, 255, 88, 0.1), 0 18px 60px rgba(0,0,0,0.55) !important;
}

/* ─── Badge en tarjeta ───────────────────────────────────────────────── */

.zrr-card-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 5 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #73ff58 !important;
    background: rgba(7, 9, 12, 0.85) !important;
    border: 1px solid rgba(113, 255, 91, 0.35) !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
}

/* ─── Imagen en tarjeta ──────────────────────────────────────────────── */

.zrr-card-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 16px !important;
    overflow: hidden !important;
}

.zrr-card-image-wrapper.weapon-img {
    height: 150px !important;
    width: auto !important;
    margin: 12px 12px 0 12px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: radial-gradient(circle at center, rgba(32, 38, 44, 0.8) 0%, rgba(11, 14, 17, 0.98)) !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.3s ease !important;
}

.zrr-card:hover .zrr-card-image-wrapper.weapon-img {
    border-color: rgba(115, 255, 88, 0.25) !important;
    box-shadow: inset 0 0 20px rgba(115, 255, 88, 0.05), 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

.zrr-card-image-wrapper img {
    max-width: 80% !important;
    max-height: 80% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)) !important;
    transition: transform 0.4s ease !important;
}

.zrr-card:hover .zrr-card-image-wrapper img {
    transform: scale(1.07) !important;
}

/* ─── Contenido de tarjeta ───────────────────────────────────────────── */

.zrr-card-content {
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.zrr-card-title {
    margin: 0 0 14px !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #f3f7f2 !important;
}

/* ─── Stats en tarjeta ───────────────────────────────────────────────── */

.zrr-card-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.zrr-stat-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    font-size: 0.88rem !important;
    gap: 8px !important;
}

.zrr-stat-label {
    color: #a9b5a9 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.zrr-stat-value {
    color: #f3f7f2 !important;
    font-weight: 700 !important;
    text-align: right !important;
}

.zrr-stat-value.highlight-value {
    color: #73ff58 !important;
    text-shadow: 0 0 8px rgba(115, 255, 88, 0.25) !important;
}

/* ─── Ocultar hr heredados ───────────────────────────────────────────── */

.zrr-guide-content hr,
#section-weapons hr,
#section-classes hr {
    display: none !important;
}

/* ─── Tarjeta de habilidad especial destacada (Premium ZRR v4) ────────── */
.zrr-skill-card {
    margin-top: 14px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
}

.zrr-skill-card.has-skill {
    background: linear-gradient(135deg, rgba(48, 20, 20, 0.96), rgba(32, 8, 8, 0.98)) !important;
    border: 1px solid rgba(255, 61, 61, 0.38) !important;
    border-left: 4px solid #ff3d3d !important;
    box-shadow: 0 4px 20px rgba(255, 61, 61, 0.08), 0 0 15px rgba(255, 61, 61, 0.12) !important;
}

.zrr-skill-card.has-skill:hover {
    border-color: rgba(255, 61, 61, 0.6) !important;
    box-shadow: 0 4px 20px rgba(255, 61, 61, 0.12), 0 0 25px rgba(255, 61, 61, 0.22) !important;
    transform: translateY(-1px) !important;
}

.zrr-skill-card.no-skill {
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px dashed rgba(255, 255, 255, 0.12) !important;
    border-left: 4px solid rgba(255, 255, 255, 0.18) !important;
    opacity: 0.72 !important;
}

.zrr-skill-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(ellipse at top left, rgba(255, 61, 61, 0.05) 0%, transparent 70%) !important;
    pointer-events: none !important;
}

.zrr-skill-card.no-skill::before {
    background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.02) 0%, transparent 70%) !important;
}

.zrr-skill-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
}

.zrr-skill-icon {
    font-size: 0.95rem !important;
}

.zrr-skill-card.has-skill .zrr-skill-icon {
    filter: drop-shadow(0 0 4px #ff3d3d) !important;
}

.zrr-skill-title {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.zrr-skill-card.has-skill .zrr-skill-title {
    color: #ff3d3d !important;
}

.zrr-skill-card.no-skill .zrr-skill-title {
    color: rgba(255, 255, 255, 0.45) !important;
}

.zrr-skill-desc {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.zrr-skill-card.has-skill .zrr-skill-desc {
    color: #e8cdcd !important;
}

.zrr-skill-card.no-skill .zrr-skill-desc {
    color: rgba(255, 255, 255, 0.35) !important;
    font-style: italic !important;
}

/* ─── Píldoras de Título y Nivel en Tarjeta de Armamento ─────────────────── */
.zrr-card-title-container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.zrr-name-pill {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: #f3f7f2 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.03) !important;
    transition: all 0.2s ease !important;
}

.zrr-card:hover .zrr-name-pill {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.zrr-title-level {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 5px 10px !important;
    background: rgba(115, 255, 88, 0.08) !important;
    border: 1px solid rgba(113, 255, 91, 0.28) !important;
    border-radius: 8px !important;
    color: #73ff58 !important;
    box-shadow: 0 2px 10px rgba(115, 255, 88, 0.04) !important;
    transition: all 0.2s ease !important;
}

.zrr-card:hover .zrr-title-level {
    background: rgba(115, 255, 88, 0.12) !important;
    border-color: rgba(115, 255, 88, 0.45) !important;
    box-shadow: 0 2px 12px rgba(115, 255, 88, 0.12) !important;
}