/* =========================================
   COMMON STYLES & VARIABLES
   StreamPulse Games Shared CSS
   ========================================= */

/* --- VARIABLES --- */
:root {
    /* iOS Modern Palette */
    --bg-dark: #000000;
    --bg-panel: #1c1c1e;
    --primary: #007AFF; /* iOS Blue */
    --accent: #9146FF;  /* Twitch Purple */
    --danger: #FF453A;
    --gold: #FFD60A;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* Glassmorphism System */
    --glass-bg: rgba(28, 28, 30, 0.72);
    --glass-bg-light: rgba(58, 58, 60, 0.52);
    --glass-bg-strong: rgba(28, 28, 30, 0.88);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.08); /* Top border light */
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.36);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

html {
    font-size: 14px; /* Global Scaling: Reduced from default 16px */
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



body {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* --- UTILITIES --- */
.hidden { display: none !important; }

/* --- BACKGROUND FX --- */
.app-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 120%, #1e1e2f 0%, #0a0a0f 60%);
    z-index: -2;
}

.scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* --- GLASS COMPONENTS --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0051D5 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem; /* Reduced padding */
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #0A84FF 0%, #0066CC 100%);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--glass-bg);
}

.btn-icon-bar {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-icon-bar:hover {
    background: rgba(255,255,255,0.15);
    transform: rotate(15deg) scale(1.1);
}

/* --- USER PROFILE BAR (Unified) --- */
.user-profile-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px; /* Reduced from 1200px */
    height: 50px; /* Reduced from 60px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background 0.3s;
}

.user-profile-bar:hover {
    background: rgba(25, 25, 30, 0.8);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 28px;
    width: auto;
}

.nav-brand span {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

.bar-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-info-bar {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 16px 4px 4px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s;
}

.profile-info-bar:hover {
    background: rgba(255,255,255,0.1);
}

.profile-pic-bar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.profile-name-bar {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}
