
/* Dashboard-specific variables (if any) would go here */
/* All brand colors are defined in brdc-styles.css */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; overflow-x: hidden; width: 100%; }
body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0f23 100%);
    color: var(--text-light);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 70, 154, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(145, 215, 235, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0f23 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-overlay.hidden {
    display: none;
}

.login-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.login-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 36px;
    color: var(--pink);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.login-box {
    background: var(--bg-panel);
    border: 3px solid #000;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: min(380px, 95vw);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.4);
}

.login-form-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    color: var(--teal);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: var(--yellow);
    text-align: left;
    letter-spacing: normal;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--pink);
    background: rgba(255,70,154,0.08);
    box-shadow: 0 0 16px rgba(255,70,154,0.25);
}

.form-input::placeholder {
    color: rgba(253, 216, 53, 0.3);
    font-weight: 400;
}

/* Prevent browser autofill from making fields white */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1a1a35 inset;
    -webkit-text-fill-color: var(--yellow);
    caret-color: var(--yellow);
    border-color: rgba(255,255,255,0.15);
    transition: background-color 9999s ease-in-out 0s;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(180deg, var(--pink) 0%, #d63384 100%);
    border: 3px solid #000;
    border-radius: 10px;
    color: white;
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

.login-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid var(--danger);
    border-radius: 8px;
    padding: 12px;
    color: #fca5a5;
    font-size: 13px;
    text-align: center;
    margin-bottom: 16px;
}

.login-error.hidden { display: none; }

.login-links {
    text-align: center;
    margin-top: 16px;
}

.login-links a {
    color: var(--teal);
    text-decoration: none;
}

.login-links a:hover { text-decoration: underline; }

/* ===== FB LAYOUT OVERRIDES ===== */
.fb-main {
    padding: 12px;
    padding-top: calc(56px + env(safe-area-inset-top, 0px) + 12px);
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 12px);
}

body.is-desktop .fb-main {
    padding-top: 12px;
}

/* ===== INITIAL LOADER ===== */
#initialLoader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
    z-index: 9999;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,70,154,0.3);
    border-top-color: #FF469A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

/* ===== SKELETON LOADERS ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-panel) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-story-card {
    flex: 0 0 auto;
    width: 130px;
    height: 160px;
    border-radius: 12px;
}

.skeleton-feed-item {
    height: 120px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 80%;
    border-radius: 4px;
}
