/* Global base styles shared across the site. Section- and widget-specific rules live in dedicated CSS files. */

/* ============================================
   RESET Y ESTILOS GLOBALES
   ============================================ */
body {
    margin: 0;
    font-family: 'Courier New', 'VT323', monospace;
    background: #001133;
    color: #0f0;
}

/* ============================================
   HEADER
   ============================================ */
header {
    text-align: center;
    background: url('https://i.gifer.com/NTHN.gif') center/cover repeat;
    padding: 20px;
    border-bottom: 4px solid cyan;
    box-shadow: 0 0 20px magenta;
}

header h1 {
    font-size: 2.5rem;
    text-shadow: 3px 3px 0px #ff00cc;
    letter-spacing: 3px;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.site-nav a {
    color: cyan;
    background: #160425;
    border: 1px solid magenta;
    padding: 6px 10px;
    text-decoration: none;
    font-weight: bold;
}

.site-nav a:hover {
    background: #ff00cc;
    color: black;
}

.gif-header img {
    margin: 0 5px;
    vertical-align: middle;
}

/* ============================================
   LAYOUT PRINCIPAL (CONTAINER)
   ============================================ */
.container {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 12px;
    padding: 15px;
    background: #000002aa;
    max-width: 1400px;
    margin: 0 auto;
}

.module-page {
    grid-template-columns: minmax(0, 1fr) 240px;
}

.floating-ipod {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
}

/* ============================================
   SIDEBARS GENERALES
   ============================================ */
aside {
    background: url('https://media.giphy.com/media/v1.Y2lkPWVjZjA1ZTQ3NTlhb3MwODVoamw5dWZibjV6dzJwM25hN2p3cTZscmw2eXM1NWZmZSZlcD12MV9naWZzX3NlYXJjaCZjdD1n/OkVVUlG40FnuE/giphy.gif') center/cover repeat;
    border: 2px solid #ff00cc;
    padding: 12px;
    box-shadow: 5px 5px 0px cyan;
    overflow-x: hidden;
    word-wrap: break-word;
}

.left a, .right a {
    display: block;
    color: #ff66cc;
    text-decoration: none;
    margin: 8px 0;
    font-weight: bold;
}

.left a:hover, .right a:hover {
    color: cyan;
    background: #ff00cc22;
    padding-left: 5px;
    transition: 0.2s;
}

/* ============================================
   MAIN Y SECCIONES DE CONTENIDO
   ============================================ */
main {
    background: #0d0d0d;
    border: 3px solid cyan;
    padding: 11px;
    box-shadow: 0 0 15px magenta;
}

.content-section {
    margin-bottom: 24px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.content-section:hover {
    transform: scale(1.01);
    box-shadow: 0 0 20px cyan;
}

/* SECCION ALEMANIA */
#alemania {
    background: linear-gradient(135deg, #000, #1a0033, #330066);
    border-left: 10px solid #ff00cc;
}

/* SECCION ARTISTA */
#artista {
    background: linear-gradient(135deg, #220033, #660099, #ff00cc);
    border-left: 10px solid cyan;
}

/* SECCION SERIE */
#serie {
    background: linear-gradient(135deg, #001133, #003366, #0099ff);
    border-left: 10px solid magenta;
}

/* SECCION COMIDA */
#comida {
    background: linear-gradient(135deg, #331100, #663300, #ff9900);
    border-left: 10px solid lime;
}

.section-img {
    width: 100%;
    max-width: 300px;
    border: 3px solid cyan;
    margin: 10px 0;
    display: block;
}

/* ============================================
   TABLAS
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    background: #000000aa;
    margin: 15px 0;
}

th, td {
    border: 1px solid cyan;
    padding: 8px;
    text-align: left;
}

th {
    background: #ff00cc;
    color: black;
}

/* ============================================
   BOTONES GENERALES
   ============================================ */
button {
    background:  url('https://i.gifer.com/ZRSm.gif') center/cover repeat;
    color: cyan;
    border: 2px solid magenta;
    padding: 8px 12px;
    margin: 5px;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: magenta;
    color: black;
    box-shadow: 0 0 10px cyan;
}

.filter-btn {
    background:  url('https://i.gifer.com/AfVT.gif') center/cover repeat;
    color: white;
    border: 1px solid rgb(255, 0, 179);
    width: 100%;
    margin: 3px 0;
}

/* ============================================
   ENLACES EXTERNOS
   ============================================ */
.external-link {
    display: inline-block;
    background: #ff00cc;
    color: black;
    padding: 8px 15px;
    margin: 10px 0;
    text-decoration: none;
    font-weight: bold;
}

.external-link:hover {
    background: cyan;
    color: black;
}

/* ============================================
   VIBE DINAMICO
   ============================================ */
.dynamic-vibe {
    text-align: center;
    margin: 30px 0;
    padding: 15px;
    background:  url('https://i.gifer.com/7qhk.gif') center/cover repeat;
    border: 2px dashed magenta;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 20px;
    background:  url('https://i.gifer.com/76Yw.gif') center/cover repeat;
    border-top: 3px solid cyan;
    font-size: 0.8rem;
}

.footer-links a {
    color: #ff66cc;
    text-decoration: none;
    margin: 0 5px;
}

/* ============================================
   NAVEGACION RAVE (SIDEBAR IZQUIERDO)
   ============================================ */
.nav-rave {
    background:  url('https://i.gifer.com/g13b.gif') center/cover repeat;
    border: 2px solid #ff00cc;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.5);
}

.nav-rave h3 {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 0;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% { text-shadow: 0 0 5px #ff00cc; }
    50% { text-shadow: 0 0 20px cyan, 0 0 5px magenta; }
}

.nav-rave-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.7);
    color: cyan;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ff00cc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-rave-btn:hover {
    background: #ff00cc;
    color: black;
    transform: translateX(10px);
    box-shadow: 0 0 20px cyan;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-glitch {
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-rave-btn:hover .nav-glitch {
    opacity: 1;
    animation: glitch 0.5s infinite;
}

.rave-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff00cc, cyan, magenta, transparent);
    margin: 15px 0;
}

/* ============================================
   VISITOR COUNTER
   ============================================ */
.visitor-counter {
    background:  url('https://i.gifer.com/76Yw.gif') center/cover repeat;
    border: 2px solid lime;
    text-align: center;
    padding: 10px;
    font-family: 'Courier New', monospace;
    position: relative;
}

.visitor-counter span:first-child {
    font-size: 0.8rem;
    display: block;
}

#visitorNumber {
    font-size: 2rem;
    font-weight: bold;
    color: lime;
    text-shadow: 0 0 10px lime;
    animation: glitch 2s infinite;
}

.counter-blink {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 70%, lime 100%);
    opacity: 0;
    animation: blink 2s infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

/* ============================================
   RAVE WIDGET (SIDEBAR DERECHO)
   ============================================ */
.rave-widget {
    background: url('https://i.gifer.com/WiC5.gif') center/cover repeat;
    border: 2px solid cyan;
    padding: 12px;
    border-radius: 10px;
    max-width: 100%;
    overflow-x: hidden;
}

.rave-widget h3 {
    text-align: center;
    color: magenta;
    animation: glitch 3s infinite;
}

/* GIF BANK */
.widget-gif-bank {
    background: #000;
    padding: 8px;
    border: 1px solid #ff00cc;
    text-align: center;
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 8px;
    justify-items: center;
}

.widget-gif {
    max-width: 45px;
    height: auto;
    border: 1px solid cyan;
    transition: transform 0.3s;
}

.widget-gif:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px cyan;
}

/* DIVIDERS */
.widget-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, cyan, magenta, transparent);
    margin: 10px 0;
}

/* STICKER BANK */
.widget-sticker {
    text-align: center;
}

.sticker-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sticker-text {
    background: #ff00cc;
    color: black;
    padding: 4px 8px;
    font-weight: bold;
    padding: 0;
    margin: 0;
}

.widget-tracklist li {
    padding: 4px;
    margin: 2px 0;
    background: #111;
}
.bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.bar:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes equalize {
    0%, 100% { height: 5px; }
    50% { height: 35px; }
}

.song {
    font-size: 0.65rem;
    color: cyan;
    margin: 5px 0;
    word-wrap: break-word;
}

/* TEXTO PEQUEÑO AUXILIAR */
.small-text {
    font-size: 0.6rem;
    color: #888;
    text-align: center;
    margin-top: 5px;
}

.media-fallback {
    border: 1px solid #ff00cc;
    opacity: 0.85;
}

/* ============================================
   ANIMACIONES GLOBALES
   ============================================ */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    main,
    .left,
    .right {
        width: 100%;
        box-sizing: border-box;
    }

    .floating-ipod {
        position: static;
        left: auto;
        bottom: auto;
        margin: 10px;
    }

    .nav-rave-btn:hover {
        transform: none;
    }
}

@media (max-width: 700px) {
    body {
        overflow-x: hidden;
    }

    header {
        padding: 12px 8px;
    }

    header h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .site-nav {
        gap: 6px;
    }

    .site-nav a {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    main {
        padding: 8px;
        overflow-x: auto;
    }

    .content-section {
        padding: 9px;
        margin-bottom: 14px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th,
    td {
        font-size: 0.72rem;
        padding: 6px;
    }

    .section-img,
    .widget-gif {
        max-width: 100%;
    }

    .rave-widget {
        padding: 10px;
    }

    .visitor-counter span:first-child {
        font-size: 0.68rem;
    }

    #visitorNumber {
        font-size: 1.5rem;
    }
}
