/* 
 * MOTEL LAUNCHER - DESIGN SYSTEM CORE (STABILITY VERSION)
 * 
 * Este CSS foi otimizado para produção em Android WebView (Fire TV / Kiosk Mode).
 * A escala agora é gerenciada via JavaScript (app.js) para maior precisão.
 */

:root {
    --bg-color: #050505;
    --accent-color: #e91e63;
    --accent-glow: rgba(233, 30, 99, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-fallback: rgba(30, 30, 30, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* 1. BLINDAGEM DE VIEWPORT */
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
}

body {
    margin: 0;
    padding: 0;
    /* Resolução de referência fixa */
    width: 1920px;
    height: 1080px;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    background-color: #050505;
    background-color: var(--bg-color, #050505);

    /* Origin e Scale inicial (Será sobrescrito pelo JS) */
    transform-origin: top left;
    -webkit-transform-origin: top left;
    transform: scale(1);
    -webkit-transform: scale(1);

    /* Estética base */
    -webkit-font-smoothing: antialiased;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    color: var(--text-primary, #ffffff);
}

/* Nota: Removidas as regras de escala dinâmica via CSS (calc/min)
   para evitar conflito com o motor de escala JS de alta precisão. */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* 2. BACKGROUND & ASSETS */
body {
    background: radial-gradient(circle at top right, #1a0a1a, #050505);
    background: linear-gradient(rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.7)), url('bg.png');
    background-size: cover;
    background-position: center;
}

body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent-glow, rgba(233, 30, 99, 0.4));
    filter: blur(150px);
    -webkit-filter: blur(150px);
    top: -200px;
    left: -200px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 60px 80px;
    position: relative;
    z-index: 1;
}

/* 3. UI COMPONENTS */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.brand {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.highlight {
    color: var(--accent-color, #e91e63);
}

.clock-container {
    text-align: right;
}

#current-time {
    display: block;
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
}

#current-date {
    font-size: 1.2rem;
    color: var(--text-secondary, #b0b0b0);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section {
    margin-bottom: 80px;
}

.welcome-msg {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary, #b0b0b0);
}

.main-content {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 60px;
    flex-grow: 1;
}

.stay-info .card {
    background: var(--glass-bg-fallback, rgba(30, 30, 30, 0.95));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 30px;
    padding: 40px;
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
    .stay-info .card {
        background: var(--glass-bg, rgba(255, 255, 255, 0.05));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.stay-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-secondary, #b0b0b0);
    text-transform: uppercase;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-item label {
    font-size: 1rem;
    color: var(--text-secondary, #b0b0b0);
    margin-bottom: 5px;
}

.info-item span {
    font-size: 1.8rem;
    font-weight: 600;
}

.highlight-total {
    grid-column: span 2;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
}

.highlight-total span {
    color: var(--accent-color, #e91e63);
    font-size: 2.5rem;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nav-item {
    background: var(--glass-bg-fallback, rgba(30, 30, 30, 0.95));
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.2s ease-out;
    outline: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
    .nav-item {
        background: var(--glass-bg, rgba(255, 255, 255, 0.05));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.icon-box {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item span {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-item:focus {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(255, 0, 128, 0.9), 0 0 40px var(--accent-glow, rgba(233, 30, 99, 0.4));
    background: rgba(255, 255, 255, 0.12);
    z-index: 10;
}

.nav-item:active,
.nav-item.pressed {
    transform: scale(0.95);
    opacity: 0.8;
}

.nav-item:focus .icon-box {
    background: var(--accent-color, #e91e63);
}