/* ========================================
   NOVA AI GAMES - Layout
   Headers, Navigation & App Structure
   ======================================== */

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + var(--safe-top));
    background: linear-gradient(to bottom, var(--bg-secondary), transparent);
}

.app-header.simple {
    justify-content: center;
}

.app-header.simple h1 {
    font-size: 20px;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-glow);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
}

.user-level {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-stats {
    display: flex;
    gap: var(--spacing-md);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-glass);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
}

.stat-icon {
    font-size: 16px;
}

.stat-value {
    font-weight: 600;
    font-size: 14px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-sm);
    padding-bottom: calc(var(--spacing-sm) + var(--safe-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
}

.nav-btn.active {
    color: var(--accent-primary);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Back Button */
.back-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.back-btn:active {
    transform: scale(0.9);
}