/* ==========================================================================
   NEOCITIES DARK GOTHIC / WEBCORE THEME (style.css)
   Inspirado exactamente en la interfaz de la captura original
   ========================================================================== */

/* Reseteo Global y Configuración Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121213;
    /* Efecto de capa oscura y misteriosa sobre fondo base */
    background-image: linear-gradient(rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.88));
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #b5b2ad;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    padding-bottom: 140px; /* Margen vital para que el reproductor fijo no tape contenido */
    overflow-x: hidden;
}

/* Barra de Desplazamiento Personalizada (Estilo Oscuro Retro) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #141415;
    border-left: 1px solid #252527;
}
::-webkit-scrollbar-thumb {
    background: #2b2b2e;
    border: 1px solid #141415;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a3d;
}

/* 1. BARRA DE NAVEGACIÓN SUPERIOR ORIGINAL */
.top-nav {
    background: linear-gradient(180deg, #242426 0%, #141415 100%);
    border-bottom: 1px solid #333336;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 32px;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.nav-left {
    color: #73716d;
    font-style: italic;
}

.nav-center a {
    color: #94918c;
    text-decoration: none;
    margin: 0 8px;
    padding: 2px 6px;
    text-transform: lowercase;
}

.nav-center a:hover, .nav-center a.active {
    color: #ffffff;
    background-color: #232325;
    border: 1px solid #3a3a3d;
}

.nav-right {
    color: #73716d;
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-icons {
    letter-spacing: 3px;
    font-size: 10px;
}

/* 2. MAQUETACIÓN EN TRES COLUMNAS */
.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr 265px;
    gap: 20px;
    max-width: 1350px;
    margin: 25px auto;
    padding: 0 20px;
}

/* Cajas/Contenedores Comunes (Efecto Biselado Metálico Oscuro) */
.box {
    background: linear-gradient(180deg, #19191a 0%, #111112 100%);
    border: 1px solid #2d2d30;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.9), 0 4px 12px rgba(0,0,0,0.6);
    margin-bottom: 20px;
    padding: 12px;
    position: relative;
}

/* Marco interno fino característico del diseño original */
.box::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    border: 1px solid #1f1f21;
    pointer-events: none;
}

.box-header {
    font-size: 11px;
    text-transform: lowercase;
    text-align: center;
    color: #7a7874;
    padding-bottom: 6px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #2d2d30;
    letter-spacing: 1px;
}

/* COLUMNA IZQUIERDA */
.profile-box {
    padding: 6px;
    background: #0d0d0e;
    border: 1px solid #3a3a3d;
}

.gothic-frame {
    border: 1px solid #252527;
    padding: 3px;
    background: #000;
}

.gothic-frame img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(115%) brightness(75%);
    display: block;
}

/* Panel Mood Today */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 5px;
    text-align: center;
}

.mood-item {
    font-size: 9px;
    color: #61605c;
    text-transform: lowercase;
}

.mood-item p {
    margin-top: 3px;
}

.angel-icon {
    font-size: 15px;
    filter: grayscale(100%) brightness(50%);
    display: block;
}

.active-mood {
    color: #ffffff;
    font-weight: bold;
}

.active-mood .heart-icon {
    font-size: 15px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
    display: block;
}

/* Menú de Navegación Lateral */
.nav-list {
    list-style: none;
}

.nav-list li {
    margin: 4px 0;
}

.nav-list a {
    color: #85837e;
    text-decoration: none;
    display: block;
    padding: 5px 8px;
    border-left: 2px solid transparent;
    text-transform: lowercase;
}

.nav-list a:hover, .nav-list a.current {
    color: #ffffff;
    background: #1b1b1c;
    border-left: 2px solid #4e4e52;
}

/* Reloj y Fecha Widget */
.clock-box {
    text-align: center;
    padding: 15px 10px;
}

.clock-box .time {
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.clock-box .date {
    font-size: 10px;
    color: #5d5c59;
    text-transform: lowercase;
}

/* COLUMNA CENTRAL (DIARIO Y BIENVENIDA) */
.welcome-banner {
    height: 160px;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85));
    border: 1px solid #333336;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-content .cross {
    font-size: 20px;
    color: #4a4a4d;
    display: block;
    margin-bottom: 8px;
}

.welcome-banner h1 {
    font-size: 20px;
    color: #dbd8d2;
    font-weight: normal;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
    font-style: italic;
    text-transform: lowercase;
}

.welcome-banner .subtitle {
    font-size: 11px;
    color: #7a7874;
    font-style: italic;
}

.diary-container {
    margin-top: 20px;
}

.diary-header {
    background: #171718;
    border: 1px solid #2d2d30;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 15px;
}

.diary-header .title {
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
}

.diary-header .diary-actions {
    color: #5d5c59;
    text-transform: lowercase;
}

/* Estructura de las Publicaciones (Posts) */
.diary-post {
    background: #131314;
    border: 1px solid #232325;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #545357;
    border-bottom: 1px solid #1f1f21;
    padding-bottom: 5px;
    margin-bottom: 12px;
}

.post-title {
    font-size: 13px;
    color: #c4c1ba;
    font-weight: normal;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.post-body {
    display: flex;
    gap: 15px;
}

.post-img {
    width: 170px;
    height: 115px;
    object-fit: cover;
    border: 1px solid #2d2d30;
    filter: grayscale(100%) brightness(65%) contrast(115%);
}

.post-text {
    flex: 1;
    line-height: 1.6;
    color: #9c9992;
}

.post-text p {
    margin-bottom: 4px;
}

.listening {
    font-size: 10px;
    color: #545357;
    margin-top: 12px;
}

.post-footer {
    margin-top: 15px;
    border-top: 1px dashed #1f1f21;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #545357;
}

.post-actions {
    cursor: pointer;
}

.post-actions:hover {
    color: #9c9992;
}

.post-comments {
    color: #616064;
}

/* COLUMNA DERECHA */
.about-img-container {
    border: 1px solid #28282a;
    margin-bottom: 10px;
    background: #000;
}

.about-img-container img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) brightness(60%);
    display: block;
}

.about-text {
    line-height: 1.5;
    color: #8c8984;
}

.read-more {
    color: #5d5c59;
    text-decoration: none;
    display: block;
    text-align: right;
    margin-top: 6px;
    font-style: italic;
}

.read-more:hover {
    color: #ffffff;
}

/* Cuadrícula de fotos recientes */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.photos-grid img {
    width: 100%;
    height: 65px;
    object-fit: cover;
    border: 1px solid #252527;
    filter: grayscale(100%) brightness(55%) contrast(110%);
}

/* Caja de entrada para enlazar música */
.link-music-box .instructions {
    font-size: 10px;
    color: #616064;
    margin-bottom: 10px;
    text-align: center;
    text-transform: lowercase;
}

.input-container {
    display: flex;
    gap: 5px;
}

/* Inputs y Botones Estilo Terminal Retro */
input[type="text"] {
    background: #0a0a0b;
    border: 1px solid #2d2d30;
    color: #c4c1ba;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    padding: 4px 6px;
    flex: 1;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4a4a4d;
}

button {
    background: linear-gradient(180deg, #252527 0%, #171718 100%);
    border: 1px solid #333336;
    color: #9c9992;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
}

button:hover {
    background: #252527;
    color: #ffffff;
    border-color: #4a4a4d;
}

/* 3. REPRODUCTOR DE MÚSICA WEBDECK PLAYER (PIE DE PÁGINA FIJO) */
.webdeck-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: linear-gradient(180deg, #1d1d1e 0%, #0f0f10 100%);
    border-top: 2px solid #333336;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.85);
    display: grid;
    grid-template-columns: 310px 1fr 330px;
    padding: 10px 15px;
    z-index: 9999;
    align-items: center;
}

/* Panel Izquierdo: Carátula e Información del Track */
.player-left {
    display: flex;
    gap: 12px;
    align-items: center;
    border-right: 1px dashed #28282a;
    padding-right: 10px;
}

#player-cover {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #2d2d30;
    filter: grayscale(40%);
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 11px;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.track-artist {
    font-size: 10px;
    color: #7a7874;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.time-display {
    font-size: 9px;
    color: #545357;
    margin-bottom: 4px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #09090a;
    border: 1px solid #202022;
    position: relative;
}

.progress {
    height: 100%;
    background: #616064;
    box-shadow: 0 0 3px rgba(255,255,255,0.3);
}

/* Panel Central: Controles Físicos y Barra para pegar Links */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.top-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    width: 100%;
    justify-content: center;
}

.volume-slider {
    -webkit-appearance: none;
    width: 75px;
    height: 3px;
    background: #09090a;
    border: 1px solid #252527;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 12px;
    background: #333336;
    border: 1px solid #4e4e52;
    cursor: pointer;
}

.btn-small {
    font-size: 9px;
    padding: 1px 4px;
}

.main-controls {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 6px;
}

.btn-ctrl {
    font-size: 13px;
    padding: 1px 6px;
}

.btn-shuffle {
    font-size: 9px;
    padding: 3px 6px;
    background: #151516;
    border-color: #252527;
}

.player-input-row {
    display: flex;
    width: 100%;
    max-width: 420px;
    align-items: center;
    gap: 5px;
}

.player-input-row span {
    font-size: 9px;
    color: #5d5c59;
    white-space: nowrap;
}

.player-input-row input {
    padding: 3px 5px;
    font-size: 10px;
}

.btn-add {
    padding: 3px 8px;
    font-size: 10px;
}

/* Panel Derecho: Lista de Reproducción Estilo Widget */
.player-right {
    border-left: 1px dashed #28282a;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.playlist-box {
    background: #080809;
    border: 1px solid #1f1f21;
    padding: 4px 6px;
    height: 60px;
    overflow-y: auto;
}

#playlist {
    list-style: none;
    font-size: 9px;
    line-height: 1.4;
    color: #545357;
}

#playlist li {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#playlist li:hover {
    color: #8c8984;
}

#playlist .random-indicator {
    color: #3d3d40;
    font-style: italic;
    margin-bottom: 1px;
    cursor: default;
}

#playlist .active-track {
    color: #ffffff;
    font-weight: bold;
}

.player-footer-text {
    font-size: 9px;
    color: #444347;
    text-align: center;
    margin-top: 3px;
    font-style: italic;
    letter-spacing: 0.3px;
}