/* GovPulse USWDS-Inspired Government Theme
   Overrides the dark theme in styles.css to match SAM.gov aesthetic.
   Load this AFTER styles.css on every page. */

/* ── Google Font ────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&display=swap');

/* ── USWDS Color Variable Overrides ─────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-secondary: #f0f0f0;
  --card: #ffffff;
  --card-hover: #f7f7f7;
  --muted: #71767a;
  --text: #1b1b1b;
  --text-secondary: #3d4551;
  --accent: #005ea2;
  --accent-hover: #1a4480;
  --accent-secondary: #d83933;
  --border: #dfe1e2;
  --border-light: #e6e6e6;
  --success: #00a91c;
  --warning: #e5a000;
  --error: #d54309;
  --gradient-primary: #005ea2;
  --gradient-accent: #005ea2;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ── Base Typography ────────────────────────────────────────────────── */
body, html {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--text);
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ── Government Banner ──────────────────────────────────────────────── */
.usa-banner {
  background: #f0f0f0;
  font-size: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #dfe1e2;
}

.usa-banner .container,
.usa-banner .usa-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.usa-banner__flag {
  font-size: 0.75rem;
}

.usa-banner__text {
  color: #1b1b1b;
  font-size: 0.8rem;
  font-weight: 400;
}

.usa-banner__text strong {
  font-weight: 700;
}

/* ── Site Header Override ───────────────────────────────────────────── */
.site-header {
  background: #ffffff !important;
  backdrop-filter: none !important;
  border-bottom: 3px solid #005ea2 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  color: #1b1b1b !important;
  font-weight: 700;
}

.brand span {
  color: #1b1b1b !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #1b1b1b !important;
}

.brand::after {
  display: none !important; /* Remove gradient glow */
}

/* ── Navigation Override ────────────────────────────────────────────── */
.nav a,
.nav-menu a,
.nav-menu li a {
  color: #1b1b1b !important;
  font-weight: 600;
  font-size: 0.9rem;
  background: none !important;
  border-radius: 0 !important;
  padding: 0.5rem 0.75rem !important;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease !important;
  transform: none !important;
}

.nav a:hover,
.nav-menu a:hover,
.nav-menu li a:hover {
  color: #005ea2 !important;
  background: none !important;
  border-bottom-color: #005ea2;
  transform: none !important;
}

.nav a.active,
.nav-menu a.active,
.nav-menu li a.active {
  color: #005ea2 !important;
  background: none !important;
  border-bottom-color: #005ea2;
  font-weight: 700;
}

.nav a.active::before {
  display: none !important; /* Remove dot indicator */
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary,
button.btn-primary,
a.btn-primary,
.usa-button {
  background: #005ea2 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  text-transform: none;
  box-shadow: none !important;
  transition: background 0.2s ease;
}

.btn-primary:hover,
button.btn-primary:hover,
.usa-button:hover {
  background: #1a4480 !important;
}

.btn-secondary,
.usa-button--outline {
  background: transparent !important;
  color: #005ea2 !important;
  border: 2px solid #005ea2 !important;
  border-radius: 4px !important;
  font-weight: 700;
}

.btn-secondary:hover,
.usa-button--outline:hover {
  background: #e7f2f8 !important;
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.card, .post-card, .feature-card {
  background: #ffffff !important;
  border: 1px solid #dfe1e2 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.card:hover, .post-card:hover, .feature-card:hover {
  border-color: #005ea2 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transform: none !important;
}

/* ── Hero / Landing Sections ────────────────────────────────────────── */
.hero, .hero-section {
  background: #1a4480 !important;
  color: #ffffff;
}

.hero h1, .hero-section h1,
.hero h2, .hero-section h2 {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
}

.hero p, .hero-section p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.hero, .hero-section {
  color: #ffffff !important;
}

.hero *, .hero-section * {
  color: #ffffff !important;
}

.hero a, .hero-section a {
  color: #ffffff !important;
}

.hero .btn-primary, .hero-section .btn-primary {
  background: #ffffff !important;
  color: #1a4480 !important;
}

.hero .btn-primary:hover {
  background: #f0f0f0 !important;
  color: #1a4480 !important;
}

.hero .capability-badge {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.3) !important;
}

.hero .watson-badge, .hero .watson-badge span {
  color: #ffffff !important;
}

/* ── Gradient Text Overrides ────────────────────────────────────────── */
.gradient-text,
h1 span,
h2 span {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--accent) !important;
}

/* ── Site Footer Override ───────────────────────────────────────────── */
.site-footer {
  background: #1b1b1b !important;
  border-top: none !important;
  margin-top: 0 !important;
  color: #ffffff;
}

.site-footer::before {
  display: none !important;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff;
}

.footer-inner h3,
.footer-inner h4 {
  color: #ffffff !important;
}

.footer-inner ul li a {
  color: #a9aeb1 !important;
}

.footer-inner ul li a:hover {
  color: #ffffff !important;
}

.footer-bottom, .footer-copyright {
  background: #171717 !important;
  color: #a9aeb1;
  border-top: 1px solid #3d4551;
}

/* ── Status / Badges ────────────────────────────────────────────────── */
.badge, .tag, .status-badge {
  border-radius: 4px;
  font-weight: 600;
}

/* ── Agent Header Override (inline styles need !important) ──────────── */
.agent-header {
  background: #1a4480 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
}

.agent-header h1 {
  font-family: 'Public Sans', sans-serif !important;
}

.agent-header-nav a,
.agent-header nav a {
  font-family: 'Public Sans', sans-serif !important;
  font-weight: 600 !important;
}

/* Quick action buttons in agent */
.quick-action {
  border-color: #dfe1e2 !important;
  color: #1b1b1b !important;
  font-family: 'Public Sans', sans-serif !important;
}

.quick-action:hover {
  border-color: #005ea2 !important;
  background: #e7f2f8 !important;
}

/* Agent send button */
#send-btn, .send-btn, button[type="submit"] {
  background: #005ea2 !important;
  border-radius: 4px !important;
}

#send-btn:hover, .send-btn:hover {
  background: #1a4480 !important;
}

/* ── Input fields ───────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
  border: 1px solid #565c65 !important;
  border-radius: 0 !important;
  font-family: 'Public Sans', sans-serif !important;
  color: #1b1b1b !important;
  background: #ffffff !important;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid #005ea2 !important;
  outline-offset: 0;
  border-color: #005ea2 !important;
}

/* ── Login Page Override ────────────────────────────────────────────── */
body.login-page,
.login-container {
  background: #f0f0f0 !important;
}

.login-card, .login-box {
  background: #ffffff !important;
  border: 1px solid #dfe1e2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ── Dashboard Override ─────────────────────────────────────────────── */
.dashboard-header, .dash-header {
  background: #1a4480 !important;
}

/* ── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #a9aeb1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #71767a; }

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
  .usa-banner, .site-header, .site-footer { display: none; }
}
