/* game-layout.css - Unified Game Portal Shell Layout */

:root {
    --side-width: 160px;
    --transition: all 0.3s ease;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    background: #000;
}

#hero-canvas, #starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}


.app-layout {
    display: grid;
    grid-template-areas: "header header header" "left main right" "footer footer footer";
    grid-template-rows: auto 1fr auto;
    grid-template-columns: var(--side-width) 1fr var(--side-width);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

@media (max-width: 1000px) {
    .app-layout {
        grid-template-columns: 0 1fr 0;
    }
    .layout-left, .layout-right { display: none; }
}

/* Header & HUD */
.layout-header {
    grid-area: header;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    z-index: 100;
}

.hud {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.hud-controls, .hud-stats { display: flex; gap: 15px; align-items: center; flex: 1; }
.hud-stats { justify-content: flex-end; }
.hud-center { flex: 0 0 auto; text-align: center; }

.hud-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition);
}

.hud-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.game-logo {
    font-family: 'Boxing', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff6600;
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
    text-transform: uppercase;
}

.hud-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-group { 
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.stat-group .label { font-size: 0.6rem; color: #8b8b99; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; }
.stat-group .value { font-size: 1.2rem; font-weight: 900; color: white; line-height: 1.1; display: flex; align-items: center; gap: 6px; }

.gems-value { color: #00d1ff !important; }


/* Ad Slots */
.ad-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
}

.ad-horizontal { width: 100%; height: 90px; }
.ad-horizontal.small { height: 50px; }
.ad-vertical { width: 100%; height: 600px; margin: 20px 0; }

/* Main Area */
.layout-main {
    grid-area: main;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.layout-left, .layout-right { grid-area: left; background: transparent; padding: 10px; display: flex; flex-direction: column; align-items: center; }
.layout-right { grid-area: right; }

.layout-footer { grid-area: footer; padding: 10px; background: rgba(0,0,0,0.5); }

/* Generic Overlays */
.overlay-screen {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.overlay-screen.hidden {
    display: none !important;
}


.primary-btn {
    background: #ff6600;
    color: black;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn:hover { background: #00ff5e; transform: scale(1.05); }

.secondary-btn {
    background: transparent;
    color: #00d64f;
    border: 2px solid #00d64f;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition);
}

.secondary-btn:hover { background: rgba(0, 214, 79, 0.1); }
