/* css/global.css */

/* 1. CORE VARIABLES */
:root {
    --primary-blue: #2563EB;
    --primary-dark: #1e3a8a;
    --slate-900: #0f172a;
    --slate-500: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: #f8fafc;
    color: var(--slate-900);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 2. BACKGROUND ANIMATION (Shared) */
.background-blobs {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #bfdbfe; }
.blob-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: #e9d5ff; animation-delay: -5s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

/* 3. LAYOUT UTILITIES */
.app-container { max-width: 1200px; margin: 0 auto; padding-bottom: 40px; }
.hidden { display: none !important; }
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* 4. UNIVERSAL HEADER/NAV */
.top-bar {
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; position: sticky; top: 0; z-index: 50; margin-bottom: 30px;
}
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; transition: opacity 0.2s ease; }
.brand-link:hover { opacity: 0.9; }
.logo-box {
    background-color: var(--primary-blue); color: white;
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}
.brand-text h1 { font-size: 20px; font-weight: 700; color: var(--slate-900); margin: 0; }
.brand-text .badge { font-size: 10px; font-weight: 700; color: var(--primary-blue); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-top: 2px;}

/* 5. UNIVERSAL BUTTONS */
.btn-glass {
    background: white; border: 1px solid #e2e8f0;
    padding: 8px 16px; border-radius: 99px;
    font-family: var(--font-main); font-weight: 600; font-size: 14px; color: var(--slate-500);
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s ease;
}
.btn-glass:hover:not(:disabled) { border-color: var(--primary-blue); color: var(--primary-blue); background: #eff6ff; }
.btn-glass:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--primary-blue); color: white; border: none;
    padding: 16px 32px; border-radius: 16px;
    font-family: var(--font-main); font-weight: 700; font-size: 16px;
    cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.2s ease; box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.5); }

/* 6. MOBILE RESPONSIVENESS */
@media (max-width: 640px) {
    .brand-text, .btn-text { display: none !important; }
    .logo-box { width: 40px !important; height: 40px !important; }
    .header-actions { gap: 8px !important; }
    .btn-glass { width: 40px !important; height: 40px !important; padding: 0 !important; justify-content: center !important; border-radius: 50% !important; }
    .top-bar { padding: 0 16px !important; height: 64px !important; }
}