/* =========================================================================
   THE HIDEOUT HUB STYLES (HIGH-FIDELITY PROTOTYPE V6)
   Visual layout for rainy cityscape, concrete spray wall and arcade cabinet
   ========================================================================= */

.hideout-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease-out;
}

/* HIDEOUT SUB-NAVIGATION BAR */
.hideout-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    width: 100%;
}

.hub-nav-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.hub-nav-btn.active, .hub-nav-btn:hover {
    color: var(--text-color);
    font-weight: 700;
}

.hub-workspace {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

/* =========================================================================
   TAB 1: LOUNGE STYLES (COZY ROOM & HIGH-FIDELITY WINDOW)
   ========================================================================= */
.hideout-lounge-scene {
    width: 100%;
    height: 300px;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    background-color: #0d0f1a;
}

.scenic-window-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 270px;
    z-index: 1;
}

.neon-skyline-svg {
    width: 100%;
    height: 100%;
}

/* Flashing neon sign outside the window */
.neon-sign-flashing {
    animation: neonFlicker 3.5s infinite alternate;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 0.95;
        text-shadow: 0 0 10px #ff2a85, 0 0 20px #ff2a85;
    }
    20%, 24%, 55% {
        opacity: 0.25;
        text-shadow: none;
    }
}

#rain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.window-sill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background-color: var(--card-bg);
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 80px;
    z-index: 4;
}

/* Animated cozy window shelf plants */
.sill-plant {
    width: 20px;
    height: 32px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 32" fill="%2316A34A"><rect x="10" y="20" width="4" height="12" fill="%238b5a2b"/><path d="M4 10 Q 12 0 20 10 Q 12 25 4 10 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    position: relative;
    z-index: 9;
    image-rendering: pixelated;
    animation: plantSway 6s ease-in-out infinite alternate;
}

@keyframes plantSway {
    0% { transform: rotate(-2deg); }
    100% { transform: rotate(2deg); }
}

/* Cozy breathing & head-bobbing crew characters */
.crew-character {
    width: 45px;
    height: 60px;
    position: relative;
    z-index: 10;
    bottom: 5px;
}

.cuddles-char {
    width: 40px;
    height: 32px;
}

.bobbing-head {
    transform-origin: 25px 45px;
    animation: headBob 2.5s ease-in-out infinite alternate;
}

@keyframes headBob {
    0% { transform: rotate(-3deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(-2px); }
}

.breathing-cat-body {
    transform-origin: 22px 24px;
    animation: catBreathe 3s ease-in-out infinite alternate;
}

@keyframes catBreathe {
    0% { transform: scaleY(0.95); }
    100% { transform: scaleY(1.05); }
}

.wagging-tail {
    transform-origin: 10px 24px;
    animation: tailWag 1.8s ease-in-out infinite alternate;
}

@keyframes tailWag {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(15deg); }
}

/* Individual decoupled bubble slots */
.char-bubble {
    position: absolute;
    bottom: 55px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    font-family: monospace;
    font-size: 0.68rem;
    letter-spacing: 0.3px;
    border-radius: 2px;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 20;
    white-space: nowrap;
    pointer-events: none;
}

#bubble-nightshroud {
    left: -50px;
}

#bubble-cuddles {
    right: -30px;
}

.char-bubble.visible {
    opacity: 1;
}

/* Rotes Hideout-Sofa mit Valentin & mister cuddles (Cat) */
.lounge-furniture-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background-color: #0c0e18; 
    border-top: 3px solid var(--border-color);
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 80px;
    box-sizing: border-box;
}

.hideout-sofa {
    width: 180px;
    height: 55px;
    background-color: #E11D48; /* Warm scarlet red */
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -5px 15px rgba(225, 29, 72, 0.4), inset 0 2px 5px rgba(255,255,255,0.3);
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

/* Real-time Speaker Stack */
.hideout-speaker-stack {
    width: 70px;
    height: 120px;
    position: relative;
    bottom: 0;
    z-index: 5;
}

.speaker-cabinet {
    width: 100%;
    height: 100%;
    background-color: #121315;
    border: 3px solid var(--border-color);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.speaker-cone {
    width: 44px;
    height: 44px;
    background-color: #222;
    border-radius: 50%;
    border: 3px solid #333;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.08s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.speaker-cone::after {
    content: '';
    width: 16px;
    height: 16px;
    background-color: #111;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* VINTAGE BRUSHED METAL TAPE DECK CABINET */
.tape-deck-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
}

.vintage-tape-deck {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(to bottom, #2d3033, #151618); /* Brushed steel look */
    border: 4px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    box-sizing: border-box;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.3);
}

.deck-faceplate {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-text {
    font-family: monospace;
    font-size: 0.72rem;
    color: #8c939d;
    letter-spacing: 2px;
    font-weight: 700;
}

/* REAL-TIME DYNAMIC VU METERS */
.vu-meters-container {
    display: flex;
    gap: 12px;
}

.vu-meter {
    width: 55px;
    height: 32px;
    background-color: #0b0d14;
    border: 1.5px solid var(--border-color);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

/* Vintage copper VU scales */
.vu-scale {
    position: absolute;
    top: 3px;
    left: 4px;
    right: 3px;
    height: 6px;
    background-image: repeating-linear-gradient(90deg, #9C772F, #9C772F 2px, transparent 2px, transparent 6px);
    opacity: 0.6;
}

.vu-needle {
    width: 2px;
    height: 24px;
    background-color: #E11D48;
    position: absolute;
    bottom: -2px;
    left: 50%;
    margin-left: -1px;
    transform-origin: bottom center;
    transform: rotate(-45deg); /* Standard resting angle */
    transition: transform 0.08s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 5;
}

.vu-channel {
    position: absolute;
    bottom: 2px;
    left: 4px;
    font-family: monospace;
    font-size: 0.52rem;
    color: #8c939d;
    font-weight: 700;
}

/* Dark, back-lit Cassette Door Slot */
.deck-door {
    width: 100%;
    aspect-ratio: 1.8;
    background-color: #04050a;
    border: 3px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: inset 0 5px 25px rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cassette-player {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cassette-body {
    width: 100%;
    height: 100%;
    background-color: #16181b; /* Sleek black plastic shell */
    border: 4px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cassette-screw {
    width: 6px;
    height: 6px;
    background-color: #444;
    border-radius: 50%;
    position: absolute;
}
.cassette-screw.top-left { top: 6px; left: 6px; }
.cassette-screw.top-right { top: 6px; right: 6px; }
.cassette-screw.bottom-left { bottom: 6px; left: 6px; }
.cassette-screw.bottom-right { bottom: 6px; right: 6px; }

.cassette-label-sticker {
    width: 86%;
    height: 52%;
    background-color: #FCFCFC; 
    border: 1px solid #444;
    border-radius: 4px;
    position: absolute;
    top: 10%;
    left: 7%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 12px;
    box-sizing: border-box;
}

.sticker-line {
    height: 1.5px;
    background-color: var(--border-color);
    width: 100%;
}

.sticker-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sticker-track-title {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: #121212; 
    letter-spacing: -0.2px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.sticker-alias {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--muted-blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.cassette-window-viewport {
    width: 44%;
    height: 22%;
    background-color: rgba(6, 9, 19, 0.95);
    border: 1.5px solid #333;
    border-radius: 3px;
    position: absolute;
    bottom: 12%;
    left: 28%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.reel-spindle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.reel-teeth {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><path d="M12 0l2 8h8l-6 4 2 8-6-4-6 4 2-8-6-4h8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mechanical Spindle Spin Animations */
.reel-teeth.spinning {
    animation: tapeSpin 5s linear infinite;
}

.reel-teeth.spinning-fast {
    animation: tapeSpin 0.6s linear infinite;
}

.reel-teeth.spinning-fast-reverse {
    animation: tapeSpin 0.6s linear infinite reverse;
}

@keyframes tapeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* HEAVY MECHANICAL VINTAGE KEYS */
.deck-keys {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border-top: 1.5px solid #333;
    padding-top: 20px;
}

.deck-key-btn {
    flex: 1;
    background: linear-gradient(to bottom, #4f5358, #2a2c2f); /* Chrome metal texture */
    border: 1px solid #111;
    border-radius: 1px;
    color: #e5e9f0;
    padding: 10px 0;
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 #151618, inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.deck-key-btn:active, .deck-key-btn.depressed {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #151618;
    background: linear-gradient(to bottom, #2a2c2f, #151618);
    color: var(--earthy-green);
}

/* VINTAGE WHITE CASSETTE ORGANIZER RACK */
.wooden-rack-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.wooden-rack {
    width: 100%;
    background-color: var(--card-bg); /* Clean gallery white background */
    border: 1px solid var(--border-color);
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns like your photo! */
    gap: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
    border-radius: 2px;
    box-sizing: border-box;
}

.rack-compartment {
    width: 100%;
    height: 40px;
    background-color: var(--bg-color); /* Subtle light-gray interior slot shadows */
    border: 1px solid var(--border-color);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.rack-tape-item {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    border-left: 5px solid rgba(255,255,255,0.35); /* Fallback left stripe */
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    box-shadow: 0 3px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rack-tape-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 15px rgba(0,0,0,0.06);
}

.rack-tape-spine {
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
    overflow: hidden;
}

.rack-spine-title {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rack-spine-alias {
    font-family: monospace;
    font-size: 0.48rem;
    opacity: 0.6;
    text-transform: uppercase;
}

/* =========================================================================
   TAB 2: GRAFFITI STYLES (INDUSTRIAL CONCRETE WALL)
   ========================================================================= */
.graffiti-wall-wrapper {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* High-fidelity concrete vector slab styling */
.concrete-wall {
    width: 100%;
    height: 320px;
    background-color: #5C5E62;
    background-image: 
        linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 30% 70%, rgba(0, 0, 0, 0.06) 2px, transparent 2px);
    background-size: 100% 100%, 100% 100%, 4px 4px, 80px 80px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

#graffiti-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

.spray-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.spray-palette {
    display: flex;
    gap: 10px;
}

.spray-can {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.spray-can.active, .spray-can:hover {
    transform: scale(1.2);
    border-color: var(--text-color);
}

/* =========================================================================
   TAB 3: ARCADE CABINET STYLES
   ========================================================================= */
.arcade-cabinet {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #121420;
    border: 4px solid var(--border-color);
    border-radius: 12px 12px 2px 2px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    overflow: hidden;
}

.arcade-marquee {
    width: 100%;
    background-color: #00E5FF;
    color: #060913;
    font-family: monospace;
    font-weight: 900;
    font-size: 1.1rem;
    text-align: center;
    padding: 15px 0;
    letter-spacing: 4px;
    border-bottom: 4px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    text-transform: uppercase;
}

.arcade-screen-wrapper {
    background-color: #000;
    padding: 20px;
    position: relative;
    border-bottom: 4px solid var(--border-color);
}

.arcade-crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 10;
    pointer-events: none;
}

.arcade-screen {
    width: 100%;
    height: 200px;
    background-color: #0A0A0A;
    border: 2px solid #333;
    border-radius: 6px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arcade-insert-coin {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 15;
}

.arcade-coin-btn {
    background-color: #E11D48;
    color: white;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 24px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
    cursor: pointer;
    transition: transform 0.1s;
}

.arcade-coin-btn:active {
    transform: scale(0.95);
}

.arcade-controls-panel {
    background-color: #1F2232;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.joystick {
    width: 60px;
    height: 60px;
    background-color: #0A0A0A;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.joystick-handle {
    width: 20px;
    height: 20px;
    background-color: #E11D48;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.6);
    position: absolute;
    top: 15px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.arcade-btn-red, .arcade-btn-blue {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.4);
    cursor: pointer;
}

.arcade-btn-red { background-color: #E11D48; }
.arcade-btn-blue { background-color: #00E5FF; }

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}