/* 
 * LancheBot - Native App UI System
 * Mobile-first app that looks identical on any screen size
 */

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
    --hue: 225;
    --bg-color: hsl(var(--hue), 50%, 7%);
    --surface-color: hsl(var(--hue), 35%, 12%);
    --surface-color-glass: hsla(var(--hue), 35%, 12%, 0.85);
    --surface-raised: hsl(var(--hue), 30%, 16%);
    --primary-color: hsl(15, 90%, 55%);
    --primary-color-hover: hsl(15, 90%, 48%);
    --accent-color: hsl(45, 100%, 50%);
    --success-color: hsl(142, 71%, 45%);

    --text-primary: hsl(var(--hue), 10%, 95%);
    --text-secondary: hsl(var(--hue), 10%, 60%);

    --glass-border: hsla(0, 0%, 100%, 0.07);
    --glass-shadow: 0 8px 32px 0 hsla(0, 0%, 0%, 0.37);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --app-max-width: 430px;
    --topbar-height: 88px;
    --bottombar-height: 65px;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ═══════════════════════════════════════════
   GLOBAL RESET & BODY
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
    height: 100%;
    overflow: hidden; /* prevent outer scrolling */
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

/* ═══════════════════════════════════════════
   APP SHELL (o container que simula o celular)
   ═══════════════════════════════════════════ */
#app-shell {
    width: 100%;
    max-width: var(--app-max-width);
    height: 100vh;
    height: 100dvh; /* dynamic viewport height */
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 80px rgba(0,0,0,0.9);
}

/* Em desktop, adiciona borda arredondada e limita a altura */
@media (min-width: 500px) {
    #app-shell {
        height: 92vh;
        border-radius: 32px;
        border: 2px solid hsla(0,0%,100%,0.06);
    }
}

/* ═══════════════════════════════════════════
   TOP BAR (Status Bar + App Bar)
   ═══════════════════════════════════════════ */
#app-topbar {
    flex-shrink: 0;
    background: var(--surface-color-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 20;
}

.app-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.statusbar-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    opacity: 0.7;
}

.app-navbar {
    padding: 10px 20px 14px;
}

.app-title {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.app-logo {
    font-size: 1.6rem;
}

/* ═══════════════════════════════════════════
   SCROLLABLE CONTENT AREA
   ═══════════════════════════════════════════ */
#app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Esconder scrollbar mas manter funcionalidade */
#app-content::-webkit-scrollbar { width: 0; }
#app-content { scrollbar-width: none; }

/* ═══════════════════════════════════════════
   BOTTOM NAVIGATION BAR
   ═══════════════════════════════════════════ */
#app-bottombar {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--surface-color-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 8px 0 calc(8px + var(--safe-bottom));
    z-index: 20;
}

.bottombar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 16px;
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
}

.bottombar-item svg {
    transition: var(--transition-smooth);
}

.bottombar-item.active {
    color: var(--primary-color);
}

.bottombar-item:active {
    transform: scale(0.92);
}

/* ═══════════════════════════════════════════
   HERO (Escondido na nova UI)
   ═══════════════════════════════════════════ */
.hero { display: none !important; }

/* Remove qualquer padding que o WordPress injete */
main.menu-grid {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
