/* ==========================================================================
   WIKI OFICIAL SKY RP - FORMATO VISUAL ESTILO NOTICIAS (GRILLA DE CUADROS)
   Sin cuadro gigante, con secciones organizadas por categoría y lector modal
   ========================================================================== */

body {
    background-color: #08090b;
}

.page-header {
    padding: 120px 0 35px;
    text-align: center;
    position: relative;
}

.section-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--neon-cyan, #00e5ff);
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 6px;
}

.page-title {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: clamp(38px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}

.page-subtitle {
    color: var(--text-muted, #94a3b8);
    font-size: 15px;
    margin: 0 auto 24px auto;
    max-width: 680px;
    line-height: 1.6;
    text-align: center;
}

/* ==========================================================================
   BUSCADOR DE WIKI INTEGRADO AL ESTILO MODERNO
   ========================================================================== */
.wiki-search-container {
    max-width: 620px;
    margin: 18px auto 0 auto;
    position: relative;
}

.wiki-search-box {
    display: flex;
    align-items: center;
    background: rgba(16, 20, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px 14px;
    backdrop-filter: blur(16px);
    transition: all 0.25s ease;
}

.wiki-search-box:focus-within {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    background: rgba(16, 20, 34, 0.95);
}

.wiki-search-icon {
    font-size: 15px;
    margin-right: 10px;
    opacity: 0.7;
}

.wiki-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14.5px;
    padding: 6px 0;
    font-family: inherit;
    text-align: center;
}

.wiki-search-input::placeholder {
    color: #64748b;
    text-align: center;
}

.wiki-search-clear {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.wiki-search-clear:hover {
    color: #ffffff;
}

.wiki-search-meta {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--neon-cyan, #00e5ff);
    font-weight: 600;
    min-height: 18px;
    text-align: center;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN RÁPIDA ENTRE SECCIONES (PILLS)
   ========================================================================== */
.wiki-category-nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 45px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.3) transparent;
}

.wiki-category-nav-bar::-webkit-scrollbar {
    height: 4px;
}

.wiki-category-nav-bar::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 4px;
}

.wiki-nav-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #94a3b8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wiki-nav-pill:hover,
.wiki-nav-pill.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.45);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* ==========================================================================
   SECCIONES Y ENCABEZADOS (IGUAL QUE NOTICIAS)
   ========================================================================== */
.wiki-category-section {
    margin-bottom: 70px;
    scroll-margin-top: 100px;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: clamp(22px, 3.2vw, 28px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wiki-section-count {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--neon-cyan, #00e5ff);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ==========================================================================
   GRILLA DE CUADROS CHIQUITOS (COPIADO EXACTO DE NOTICIAS)
   cuadro1 | cuadro2 | cuadro3
   cuadro4 | cuadro5 | cuadro6
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.news-mini-card {
    background: var(--bg-surface-elevated, #101422);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.news-mini-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(0, 229, 255, 0.2);
}

.news-mini-image-wrapper {
    width: 100%;
    height: 180px;
    background: #0d0f18;
    overflow: hidden;
    position: relative;
}

.news-mini-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-mini-card:hover .news-mini-image {
    transform: scale(1.04);
}

.news-mini-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-mini-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Badges / Insignias */
.news-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.badge-actualizacion {
    background: rgba(0, 229, 255, 0.15);
    color: var(--neon-cyan, #00e5ff);
    border: 1px solid rgba(0, 229, 255, 0.35);
}

.badge-servidor {
    background: rgba(255, 42, 133, 0.15);
    color: var(--neon-pink, #ff2a85);
    border: 1px solid rgba(255, 42, 133, 0.35);
}

.badge-tutorial {
    background: rgba(121, 40, 202, 0.2);
    color: #d1a4ff;
    border: 1px solid rgba(121, 40, 202, 0.4);
}

.badge-mecanica {
    background: rgba(0, 255, 157, 0.15);
    color: var(--neon-mint, #00ff9d);
    border: 1px solid rgba(0, 255, 157, 0.35);
}

/* Badges específicos de Wiki */
.badge-essential,
.badge-basico {
    background: rgba(0, 229, 255, 0.15);
    color: var(--neon-cyan, #00e5ff);
    border: 1px solid rgba(0, 229, 255, 0.35);
}

.badge-prohibited,
.badge-sancionable {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-system {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-legal {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-illegal {
    background: rgba(255, 42, 133, 0.18);
    color: #ff66a3;
    border: 1px solid rgba(255, 42, 133, 0.4);
}

.badge-perma {
    background: rgba(153, 27, 27, 0.35);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.6);
}

.news-date {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    font-family: var(--font-mono, monospace);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.news-mini-title {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-mini-resumen {
    color: var(--text-muted, #94a3b8);
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-mini-link {
    color: var(--neon-cyan, #00e5ff);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.news-mini-card:hover .news-mini-link {
    color: #ffffff;
    transform: translateX(4px);
}

/* ==========================================================================
   LECTOR MODAL DE ARTÍCULO COMPLETO (FORMATO NOTICIAS)
   ========================================================================== */
.reader-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 13, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: none;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 40px 20px 140px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.75) rgba(13, 15, 24, 0.85);
}

.reader-modal-overlay::-webkit-scrollbar {
    width: 10px;
}

.reader-modal-overlay::-webkit-scrollbar-track {
    background: rgba(13, 15, 24, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.reader-modal-overlay::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.55);
    border-radius: 5px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.reader-modal-overlay::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan, #00e5ff);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.9);
}

.reader-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 60px;
    box-sizing: border-box;
    animation: readerFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes readerFadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.reader-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-reader-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reader-back:hover {
    background: var(--neon-cyan, #00e5ff);
    border-color: var(--neon-cyan, #00e5ff);
    color: #08090b;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateX(-3px);
}

.reader-badge-wrap {
    margin-bottom: 16px;
}

.reader-title {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.reader-meta {
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 32px;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.reader-featured-media {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 36px;
    background: #0d0f18;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.reader-featured-media img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.reader-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 36px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reader-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.reader-content {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
}

.reader-content p {
    margin-bottom: 22px;
}

.reader-content h2,
.reader-content h3 {
    font-family: var(--font-display, 'Syne', sans-serif);
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 14px;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

.reader-content .discord-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 22px;
    font-weight: 800;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-content .discord-heading span.hash {
    color: var(--neon-cyan, #00e5ff);
}

.reader-content .reader-embed-box {
    background: rgba(10, 14, 26, 0.85);
    border-left: 4px solid var(--neon-cyan, #00e5ff);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    border-right: 1px solid rgba(0, 229, 255, 0.2);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.reader-content .reader-embed-title {
    color: var(--neon-cyan, #00e5ff);
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reader-content .reader-embed-warning {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #fca5a5;
}

.reader-content .reader-inline-image {
    width: fit-content;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 14, 26, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.reader-content .reader-inline-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.reader-content .reader-inline-image img:hover {
    transform: scale(1.005);
}

.reader-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ==========================================================================
   ESTADO VACÍO O DE CARGA
   ========================================================================== */
.wiki-empty-state {
    text-align: center;
    padding: 70px 20px;
    background: rgba(16, 20, 34, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: var(--text-muted, #94a3b8);
}

.wiki-empty-icon {
    font-size: 44px;
    margin-bottom: 14px;
}