/* NASA theme overrides for the whole site */

:root {
    --bg-1: #050b14 !important;
    --bg-2: #0b1f3a !important;
    --accent-from: #0b3d91 !important;
    --accent-to: #105bd8 !important;
    --accent-mid: #fc3d21 !important;
    --primary-color: #0b3d91 !important;
    --primary-color-hover: #105bd8 !important;
    --red-color: #dd1f26 !important;
    --red-color-hover: #fc3d21 !important;
    --color-plus-bg: linear-gradient(90deg, #0b3d91, #105bd8 30%, #fc3d21 75%, #0b3d91) !important;
    --panel: rgba(255,255,255,0.03) !important;
    --muted: #9fb0c8 !important;
    --text: #e6f0fb !important;
    --shadow: rgba(0,0,0,0.7) !important;
}

html[data-theme="light"] {
    --bg-1: #f0f4f8 !important;
    --bg-2: #e2e8f0 !important;
    --accent-from: #0b3d91 !important;
    --accent-to: #105bd8 !important;
    --accent-mid: #fc3d21 !important;
    --primary-color: #0b3d91 !important;
    --primary-color-hover: #105bd8 !important;
    --red-color: #dd1f26 !important;
    --red-color-hover: #fc3d21 !important;
    --color-plus-bg: linear-gradient(90deg, #0b3d91, #105bd8 30%, #fc3d21 75%, #0b3d91) !important;
    --panel: rgba(255,255,255,0.94) !important;
    --muted: #475569 !important;
    --text: #0f172a !important;
}

/* Global NASA overrides */
body.dashboard-page {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1e002e 100%) !important;
    overflow-x: hidden;
}

html[data-theme="light"] body.dashboard-page {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%) !important;
}

.dark-root {
    background: linear-gradient(135deg, #050b14 0%, #0b1f3a 100%) !important;
}

html[data-theme="light"] .dark-root {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%) !important;
}

.dark-bg {
    background:
        radial-gradient(ellipse 80% 55% at 22% 22%, rgba(16, 91, 216, 0.18), transparent 52%),
        radial-gradient(ellipse 70% 50% at 88% 12%, rgba(252, 61, 33, 0.14), transparent 48%),
        radial-gradient(ellipse 90% 60% at 70% 88%, rgba(16, 91, 216, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 12% 80%, rgba(252, 61, 33, 0.10), transparent 46%) !important;
}

html[data-theme="light"] .dark-bg {
    background:
        radial-gradient(ellipse 80% 55% at 22% 22%, rgba(16, 91, 216, 0.10), transparent 52%),
        radial-gradient(ellipse 70% 50% at 88% 12%, rgba(252, 61, 33, 0.06), transparent 48%),
        radial-gradient(ellipse 90% 60% at 70% 88%, rgba(16, 91, 216, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 12% 80%, rgba(252, 61, 33, 0.05), transparent 46%) !important;
}

.dark-logo {
    background: linear-gradient(135deg, #0b3d91 0%, #105bd8 100%) !important;
    border: 2px solid #fc3d21 !important;
    box-shadow: 0 8px 30px rgba(252, 61, 33, 0.35) !important;
}

.pin-unlock-logo-ring {
    background: linear-gradient(135deg, #0b3d91 0%, #105bd8 100%) !important;
    border: 3px solid #fc3d21 !important;
}

.message.me .message-content {
    box-shadow: 0 12px 34px rgba(16, 91, 216, 0.18) !important;
}

html[data-theme="light"] .message.me .message-content {
    box-shadow: 0 10px 28px rgba(16, 91, 216, 0.22) !important;
}

html[data-theme="light"] .chat-privacy-chip--dm {
    background: rgba(11, 61, 145, 0.12) !important;
    color: #0b3d91 !important;
    border-color: rgba(11, 61, 145, 0.25) !important;
}

html[data-theme="light"] .chat-privacy-chip--private {
    background: rgba(252, 61, 33, 0.10) !important;
    color: #9e2a2f !important;
    border-color: rgba(252, 61, 33, 0.22) !important;
}

html[data-theme="light"] .quick-card {
    background: linear-gradient(135deg, rgba(16, 91, 216, 0.08), rgba(252, 61, 33, 0.06)) !important;
    border-color: rgba(16, 91, 216, 0.2) !important;
}

html[data-theme="light"] .site-android-apk-btn {
    background: linear-gradient(145deg, #0b3d91 0%, #105bd8 52%, #fc3d21 100%) !important;
    box-shadow:
        0 4px 12px rgba(11, 61, 145, 0.35),
        0 8px 26px rgba(252, 61, 33, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

html[data-theme="light"] .flash-message.flash-success {
    background: rgba(16, 91, 216, 0.10) !important;
    color: #0b3d91 !important;
    border-color: rgba(16, 91, 216, 0.28) !important;
}

.landing-root {
    background: #050b14;
    color: #fff;
}

.landing-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 91, 216, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(252, 61, 33, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(16, 91, 216, 0.15) 0%, transparent 45%),
        #050b14;
}

.landing-logo-ring {
    background: linear-gradient(135deg, #0b3d91 0%, #105bd8 100%);
    border: 3px solid #fc3d21;
    box-shadow: 0 12px 40px rgba(252, 61, 33, 0.35);
    animation: nasa-pulse 3s ease-in-out infinite;
}

@keyframes nasa-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(252, 61, 33, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(252, 61, 33, 0); }
}

.landing-title {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(252, 61, 33, 0.55);
}

.landing-tagline {
    color: rgba(190, 210, 240, 0.85);
}

.landing-card {
    background: linear-gradient(155deg, rgba(11, 61, 145, 0.18) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(16, 91, 216, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.landing-card-title,
.landing-card-title i,
.landing-label i {
    color: #fc3d21;
}

.landing-input {
    border-color: rgba(16, 91, 216, 0.4);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.landing-input::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

.landing-input:focus {
    border-color: #fc3d21;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(252, 61, 33, 0.25);
}

.landing-btn-primary {
    background: linear-gradient(135deg, #dd1f26 0%, #fc3d21 100%);
    box-shadow: 0 8px 24px rgba(252, 61, 33, 0.4);
}

.landing-btn-primary:hover {
    box-shadow: 0 10px 30px rgba(252, 61, 33, 0.55);
}

.landing-btn-secondary {
    border-color: rgba(16, 91, 216, 0.5);
    background: rgba(16, 91, 216, 0.1);
    color: #fff;
}

.landing-btn-secondary:hover {
    background: rgba(16, 91, 216, 0.2);
    border-color: rgba(16, 91, 216, 0.7);
}

.landing-section-title,
.feature-card h3,
.landing-footer a,
.quick-link {
    color: #fff;
}

.feature-icon {
    background: rgba(16, 91, 216, 0.2);
    color: #fc3d21;
}

.feature-card p,
.landing-footer p,
.landing-tagline {
    color: rgba(190, 210, 240, 0.85);
}

.landing-divider::before,
.landing-divider::after {
    background: rgba(16, 91, 216, 0.35);
}

html[data-theme="light"] .landing-root {
    background: #f0f4f8;
}

html[data-theme="light"] .landing-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 91, 216, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(252, 61, 33, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(16, 91, 216, 0.12) 0%, transparent 45%),
        #f0f4f8;
}

html[data-theme="light"] .landing-title {
    color: #0b3d91;
    text-shadow: none;
}

html[data-theme="light"] .landing-tagline,
html[data-theme="light"] .feature-card p,
html[data-theme="light"] .landing-footer p {
    color: #475569;
}

html[data-theme="light"] .landing-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(16, 91, 216, 0.2);
}

html[data-theme="light"] .landing-section-title,
html[data-theme="light"] .feature-card h3,
html[data-theme="light"] .landing-footer a,
html[data-theme="light"] .quick-link {
    color: #0f172a;
}
