/* Gamut AI v3.2 — Base Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

html, body {
    margin: 0;
    min-height: 100%;
    background: #08101d;
    color: #e2e8f0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.gamut-app-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.compass-ai-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(8, 16, 29, 0.92);
    backdrop-filter: blur(10px);
}

.compass-ai-topbar .brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compass-ai-topbar .brand a {
    color: #f8fafc;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
}

.compass-ai-topbar .brand span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.compass-ai-topbar .topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.compass-ai-topbar .topbar-user {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
}

.compass-ai-topbar .topbar-role,
.compass-ai-topbar .topbar-actions a {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.85);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.gamut-login-page {
    min-height: 100vh;
    background:
      radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34%),
      radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.18), transparent 30%),
      #08101d;
}

.gamut-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: center;
    padding: 32px;
}

.gamut-login-hero,
.gamut-login-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(10, 15, 26, 0.88);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.gamut-login-hero {
    padding: 36px;
}

.gamut-login-card {
    padding: 28px;
}

.gamut-login-page .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
}

.gamut-login-hero h1,
.gamut-login-card h2 {
    margin: 10px 0 12px;
    color: #f8fafc;
    font-size: 34px;
    line-height: 1.05;
}

.gamut-login-card h2 {
    font-size: 28px;
}

.gamut-login-hero p,
.gamut-login-card p,
.gamut-login-hero li {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
}

.gamut-login-hero ul {
    margin: 18px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.gamut-login-card label {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    margin: 12px 0 6px;
}

.gamut-login-card .remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gamut-login-card input,
.gamut-login-card button {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    font: inherit;
}

.gamut-login-card input {
    background: #0f172a;
    color: #e2e8f0;
}

.gamut-login-card button {
    margin-top: 14px;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.gamut-login-card .err {
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.3);
    border: 1px solid rgba(248, 113, 113, 0.26);
    padding: 10px 12px;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .gamut-login-shell {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

#compass-ai-root {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0f1a;
    color: #e2e8f0;
    line-height: 1.5;
}

#compass-ai-root * {
    box-sizing: border-box;
}

/* Fade-in animation for views */
#compass-ai-root .fi {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Scrollbar styling — overridden dynamically by theme */
#compass-ai-root ::-webkit-scrollbar {
    width: 6px;
}
#compass-ai-root ::-webkit-scrollbar-track {
    background: transparent;
}
#compass-ai-root ::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
#compass-ai-root ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Hide WordPress theme elements that clash */
#compass-ai-root ~ .entry-footer,
#compass-ai-root ~ .post-navigation,
#compass-ai-root ~ .comments-area {
    display: none;
}
