/* ============================================
   HAM HOUSE - Estilos generales
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f0e8;
    background-image:
        radial-gradient(circle, #d4cfc4 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === HEADER RETRO === */
.site-header {
    text-align: center;
    padding: 20px 10px 10px;
    border-bottom: 3px dashed #333;
    background: #fff;
}

.site-header h1 {
    font-size: 2.2em;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0px #ccc;
}

.site-header p {
    font-size: 0.9em;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* === FLOOR / MESA donde están los comics === */
.floor {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
    gap: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.floor.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

/* Scrollbar sutil */
.floor::-webkit-scrollbar {
    height: 6px;
}

.floor::-webkit-scrollbar-track {
    background: transparent;
}

.floor::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* === SECCIÓN FEATURED === */
.featured-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.featured-label {
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    color: #0f0;
    background: #333;
    padding: 3px 12px;
    border: 1px dashed #0f0;
    margin-bottom: 10px;
    text-align: center;
    white-space: nowrap;
    animation: blinker 1.5s step-start infinite;
}

.comic-on-floor.featured .comic-cover {
    border: 3px dashed gold;
    padding: 4px;
    background: rgba(255, 215, 0, 0.08);
}

.comic-on-floor.featured .comic-cover img {
    width: 320px;
}

/* === COMIC EN EL SUELO === */
.comic-on-floor {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comic-on-floor.read {
    /* sin efecto de opacidad, solo el badge */
}

.read-badge {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.7em;
    color: #0a0;
    background: rgba(0, 160, 0, 0.08);
    border: 1px solid #0a0;
    padding: 1px 8px;
    margin-top: 4px;
    border-radius: 3px;
}

.comic-cover {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.3s ease;
    transform: rotate(-2deg);
    filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, 0.25));
}

.comic-cover img {
    width: 280px;
    height: auto;
    border: 3px solid #222;
    display: block;
}

.comic-cover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    filter: blur(6px);
    transition: all 0.4s ease;
}

.comic-cover:hover {
    transform: rotate(0deg) scale(1.15) translateY(-20px);
    filter: drop-shadow(8px 20px 20px rgba(0, 0, 0, 0.35));
    z-index: 10;
}

.comic-cover:hover::after {
    bottom: -25px;
    filter: blur(12px);
    opacity: 0.6;
}

.comic-title {
    text-align: center;
    margin-top: 12px;
    font-size: 1em;
    color: #444;
    font-weight: 700;
}

/* === MARQUEE RETRO === */
.retro-marquee {
    background: #333;
    color: #0f0;
    padding: 6px 0;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    border-top: 2px solid #555;
    border-bottom: 2px solid #555;
    overflow: hidden;
    white-space: nowrap;
}

.retro-marquee span {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* === FOOTER RETRO === */
footer {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-top: 3px dashed #333;
    font-size: 0.8em;
    color: #777;
}

footer a {
    color: #0000EE;
}

footer a:visited {
    color: #551A8B;
}

/* === BLINK === */
.blink {
    animation: blinker 1s step-start infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.under-construction {
    text-align: center;
    padding: 5px;
    font-size: 0.75em;
    color: #999;
}

/* === Badge de música en portada === */
.music-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #0f0;
    font-size: 1.2em;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #0f0;
    pointer-events: none;
}

/* === Botón "Ir al destacado" === */
.scroll-featured-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 2px solid gold;
    background: #333;
    color: gold;
    font-size: 1.3em;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.scroll-featured-btn:hover {
    transform: scale(1.15);
    background: #444;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .comic-cover img {
        width: 200px;
    }

    .site-header h1 {
        font-size: 1.5em;
    }
}

/* === MOBILE COMPLETO === */
@media (max-width: 768px) {
    body {
        background-size: 15px 15px;
    }

    .site-header {
        padding: 15px 10px 8px;
    }

    .site-header h1 {
        font-size: 1.4em;
        letter-spacing: 1px;
    }

    .site-header p {
        font-size: 0.8em;
    }

    .retro-marquee {
        font-size: 0.75em;
        padding: 4px 0;
    }

    .floor {
        min-height: calc(100vh - 120px);
        padding: 25px 15px;
        gap: 35px;
    }

    .comic-on-floor {
        min-width: 160px;
    }

    .comic-on-floor.featured .comic-cover img {
        width: 220px;
    }

    .comic-cover img {
        width: 100%;
        max-width: 180px;
    }

    .comic-cover:hover {
        transform: rotate(0deg) scale(1.08) translateY(-10px);
    }

    .comic-title {
        font-size: 0.85em;
        margin-top: 8px;
    }

    .music-badge {
        width: 24px;
        height: 24px;
        font-size: 1em;
        top: 5px;
        right: 5px;
    }

    footer {
        padding: 10px;
        font-size: 0.75em;
    }

    .under-construction {
        font-size: 0.7em;
    }
}

/* === PANTALLAS MUY PEQUEÑAS === */
@media (max-width: 380px) {
    .site-header h1 {
        font-size: 1.15em;
        letter-spacing: 0;
    }

    .floor {
        gap: 25px;
        padding: 20px 10px;
    }

    .comic-cover img {
        max-width: 150px;
    }

    .comic-on-floor.featured .comic-cover img {
        width: 180px;
    }
}