/* ==========================================================================
   ESTILOS PERIÓDICO SILENT HILL - EFECTO PERIÓDICO OSCURO & INSPECCIÓN 3D
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Playfair+Display:ital,wght@0,600;0,800;1,400&family=Special+Elite&display=swap');

/* Contenedor del inspector en pantalla */
#newspaper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(8, 6, 5, 0.88) 0%, rgba(2, 1, 1, 0.97) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    perspective: 2200px;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

#newspaper-overlay.activo {
    opacity: 1;
    pointer-events: all;
}

/* Viñeta oscura pesada sobre la pantalla */
#newspaper-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
    z-index: 20;
}

/* Barra superior de controles del periódico */
.np-topbar {
    position: absolute;
    top: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 30;
    background: rgba(12, 10, 8, 0.92);
    padding: 10px 26px;
    border: 1px solid rgba(90, 55, 30, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), inset 0 0 10px rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    font-family: 'Special Elite', monospace;
    color: #c4a87a;
    user-select: none;
}

.np-btn {
    background: #1a1410;
    color: #d4be96;
    border: 1px solid #5c3d24;
    padding: 8px 16px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.7);
}

.np-btn:hover {
    background: #2e2218;
    color: #f0e0c4;
    border-color: #8a6038;
    transform: translateY(-1px);
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.9);
}

.np-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.9);
}

.np-btn-close {
    border-color: #6b2218;
    color: #c4877d;
}

.np-btn-close:hover {
    background: #3a1510;
    border-color: #8b3325;
    color: #e8a89e;
}

.np-page-indicator {
    display: none;
}

/* ==========================================================================
   ESTRUCTURA DEL PERIÓDICO 3D (SPREAD DE DOS PÁGINAS)
   ========================================================================== */
.newspaper-wrapper {
    position: relative;
    width: 95vw;
    max-width: 1320px;
    height: 88vh;
    max-height: 840px;
    display: flex;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.97), 0 0 120px rgba(40, 20, 10, 0.4);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Pliegue central y sombra del lomo */
.newspaper-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.45) 0%, 
        rgba(0, 0, 0, 0.15) 30%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.15) 70%, 
        rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Hoja del periódico (izquierda o derecha) */
.np-page {
    position: relative;
    width: 50%;
    height: 100%;
    background-color: #b8a67e;
    background-image: 
        radial-gradient(ellipse at 80% 20%, rgba(60, 30, 10, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 85%, rgba(40, 20, 5, 0.18) 0%, transparent 50%),
        linear-gradient(to bottom, #baa882, #a89468);
    color: #1a1510;
    padding: 28px 36px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: inset 0 0 80px rgba(30, 15, 5, 0.55);
    border: 1px solid rgba(50, 30, 15, 0.5);
    scrollbar-width: thin;
    scrollbar-color: #6e5a40 transparent;
}

.np-page-left {
    border-right: none;
    transform-origin: right center;
}

.np-page-right {
    border-left: none;
    transform-origin: left center;
}

/* ==========================================================================
   TIPOGRAFÍA Y ELEMENTOS ESTILO SILENT HILL
   ========================================================================== */

/* Cabecera del diario */
.sh-header-container {
    text-align: center;
    border-bottom: 3px double #1e1812;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.sh-edition-bar {
    display: none;
}

.sh-main-title {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #0e0c09;
    text-shadow: 1px 1px 0px rgba(180, 160, 130, 0.3);
    margin: 4px 0 2px 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.sh-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 12px;
    color: #3d2e20;
    margin: 0;
}

/* Titulares principales */
.sh-headline {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 700;
    color: #15110d;
    line-height: 1.2;
    margin: 8px 0 6px 0;
    text-transform: uppercase;
}

.sh-lead {
    font-family: 'Special Elite', monospace;
    font-size: 12.5px;
    line-height: 1.45;
    color: #2e2318;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Cuerpo de texto con columnas */
.sh-columns {
    display: flex;
    gap: 20px;
    font-family: 'Special Elite', monospace;
    font-size: 12px;
    line-height: 1.55;
    color: #261e16;
    text-align: left;
}

.sh-column {
    flex: 1;
}

/* Letra capital vintage */
.sh-dropcap {
    float: left;
    font-family: 'Cinzel', serif;
    font-size: 26px;
    line-height: 20px;
    padding-top: 2px;
    padding-right: 6px;
    padding-bottom: 0px;
    color: #0e0c09;
    font-weight: 900;
}

/* Foto vintage con estética granulada / PSX */
.sh-photo-box {
    position: relative;
    background: #1a1612;
    border: 2px solid #302518;
    padding: 6px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.sh-photo-placeholder {
    width: 100%;
    height: 120px;
    background: 
        radial-gradient(circle at 40% 40%, rgba(150, 130, 100, 0.12) 0%, transparent 70%),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0px, rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 2px),
        #241f18;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #8c7a5e;
    font-family: 'Special Elite', monospace;
    border: 1px dashed rgba(120, 100, 70, 0.3);
}

.sh-photo-caption {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    color: #403224;
    font-style: italic;
    margin-top: 4px;
    text-align: center;
}

/* Sellos vintage (rojos / desgastados) */
.sh-stamp {
    position: absolute;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 12px;
    color: rgba(120, 20, 12, 0.7);
    border: 2px dashed rgba(120, 20, 12, 0.7);
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    user-select: none;
    pointer-events: none;
    transform: rotate(-12deg);
}

.sh-stamp-evidence {
    top: 14px;
    right: 18px;
    transform: rotate(8deg);
}

.sh-stamp-classified {
    bottom: 25px;
    right: 25px;
    transform: rotate(-7deg);
    border: 2px solid rgba(110, 18, 10, 0.7);
}

/* Notas manuscritas misteriosas en los márgenes */
.sh-note-handwritten {
    font-family: 'Special Elite', cursive, monospace;
    font-size: 12.5px;
    color: #6b180f;
    background: rgba(100, 70, 40, 0.15);
    border-left: 3px solid #6b180f;
    padding: 6px 10px;
    margin: 10px 0;
    transform: rotate(-1deg);
    line-height: 1.4;
    text-shadow: 0 0 1px rgba(107, 24, 15, 0.15);
}

/* Recortes clasificados / Habilidades / Proyectos */
.sh-card-clipping {
    background: rgba(140, 125, 95, 0.35);
    border: 1px dashed #45352a;
    padding: 10px 14px;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

.sh-card-title {
    font-family: 'Cinzel', serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e1810;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.sh-card-desc {
    font-family: 'Special Elite', monospace;
    font-size: 11.5px;
    line-height: 1.45;
    color: #2e241a;
    margin: 0 0 6px 0;
}

.sh-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sh-tag {
    background: #2a2018;
    color: #d4c2a2;
    font-family: 'Special Elite', monospace;
    font-size: 9.5px;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

/* Enlaces estilo anuncio clasificado */
.sh-link {
    display: inline-block;
    color: #18120c;
    text-decoration: none;
    font-family: 'Special Elite', monospace;
    font-size: 13.5px;
    font-weight: bold;
    border-bottom: 1px dotted #6b2818;
    transition: all 0.2s;
}

.sh-link:hover {
    color: #6b180f;
    border-bottom-style: solid;
}

/* Botón interactivo de pasar página sobre el periódico */
.np-page-flip-hint {
    position: absolute;
    bottom: 14px;
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    color: #50402f;
    cursor: pointer;
    user-select: none;
    padding: 6px 12px;
    border: 1px dashed rgba(80, 64, 47, 0.4);
    transition: all 0.2s;
}

.np-page-flip-hint:hover {
    background: rgba(80, 64, 47, 0.15);
    color: #1e1610;
    border-color: #302518;
}

.hint-left {
    left: 20px;
}

.hint-right {
    right: 20px;
}

/* Indicador 3D sobre la mesa en la cafetería */
.sh-3d-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 8, 6, 0.92);
    border: 1px solid #7a5030;
    color: #d4b888;
    padding: 10px 24px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(122, 80, 48, 0.3);
    border-radius: 2px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-transform: uppercase;
}

.sh-3d-hint.activo {
    opacity: 1;
}

/* ==========================================================================
   ANIMACIÓN DE VOLTEO DE PÁGINA (PAGE FLIP)
   ========================================================================== */
.flipping-sheet {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transform-style: preserve-3d;
    z-index: 50;
    pointer-events: none;
}

.flipping-sheet-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(30, 15, 5, 0.55);
}

.flipping-sheet-back {
    transform: rotateY(180deg);
}
