/*
 * AllTeer Brand Design System Stylesheet
 * =====================================
 * Establishes cohesive visual identity, typography, navigation,
 * result cards, AEO/GEO boxes, and footer across all 40 routes.
 * Zero em dashes and zero en dashes.
 */

:root {
  --brand-navy-950: #070b14;
  --brand-navy-900: #0a0f1d;
  --brand-navy-800: #0f172a;
  --brand-navy-700: #1e293b;
  --brand-navy-600: #334155;

  --brand-volt: #dcf836;
  --brand-volt-hover: #c8e427;
  --brand-emerald: #10b981;
  --brand-blue: #3b82f6;
  --brand-blue-hover: #2563eb;

  --brand-surface: #ffffff;
  --brand-surface-subtle: #f8fafc;
  --brand-border: #e2e8f0;
  --brand-border-dark: #1e293b;

  --brand-text-dark: #0f172a;
  --brand-text-muted: #64748b;
  --brand-text-light: #f8fafc;

  --font-brand-display: 'Saira Condensed', system-ui, sans-serif;
  --font-brand-body: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand-mono: 'JetBrains Mono', ui-monospace, monospace;

  --brand-radius-sm: 4px;
  --brand-radius-md: 8px;
  --brand-radius-lg: 12px;
  --brand-radius-xl: 16px;

  --brand-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --brand-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --brand-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

/* Master Container */
.brand-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .brand-container {
    padding-inline: 24px;
  }
}

/* Header & Navigation */
.allteer-brand-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e293b;
  font-family: var(--font-brand-body);
}

.brand-header-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 8px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  aspect-ratio: 260 / 48;
  display: block;
}

/* Live Dispatch Status Beacon */
.brand-live-desk-status {
  display: none;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-brand-mono);
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}
@media (min-width: 900px) {
  .brand-live-desk-status {
    display: flex;
  }
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-volt);
  box-shadow: 0 0 10px var(--brand-volt);
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.live-status-time {
  color: #94a3b8;
  border-left: 1px solid #334155;
  padding-left: 8px;
  font-size: 10px;
}

/* Navigation Links */
.brand-main-nav {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.brand-main-nav::-webkit-scrollbar {
  display: none;
}

.brand-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: #070b14;
  background: var(--brand-volt);
  font-weight: 700;
}

/* Trust Strip */
.brand-trust-strip {
  background: #070b14;
  border-bottom: 1px solid #161f30;
  padding-block: 6px;
  font-family: var(--font-brand-mono);
  font-size: 10.5px;
  color: #94a3b8;
}

.trust-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.trust-flex::-webkit-scrollbar {
  display: none;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.trust-icon {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive Visual Banner Card */
.infographic-card {
  margin: 0 0 24px 0;
  padding: 0;
  border-radius: var(--brand-radius-lg);
  overflow: hidden;
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow-md);
  background: #0f172a;
}
.infographic-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

/* AEO Direct Answer Box */
.summary-box, .aeo-direct-answer {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--brand-radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--brand-shadow-sm);
}

.aeo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.aeo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: var(--font-brand-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
}

.aeo-content {
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  margin-bottom: 16px;
}

.aeo-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* GEO Fact Sheet Table */
.fact-sheet-table, .geo-fact-sheet {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--brand-radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--brand-shadow-sm);
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.geo-table th {
  background: #0f172a;
  color: #f8fafc;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.geo-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.geo-table tr:nth-child(even) td {
  background: #f8fafc;
}

.geo-table td:first-child {
  font-weight: 600;
  color: #0f172a;
  width: 32%;
}

/* Master Brand Footer */
.allteer-brand-footer {
  background: #070b14;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  font-family: var(--font-brand-body);
  font-size: 13px;
  margin-top: 64px;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr 1fr;
    gap: 28px;
  }
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.footer-mission {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 20px;
  max-width: 380px;
}

.footer-audit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-item {
  display: inline-block;
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #cbd5e1;
  font-family: var(--font-brand-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-heading {
  font-family: var(--font-brand-display);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
  font-size: 12.5px;
}

.footer-links a:hover {
  color: var(--brand-volt);
  text-decoration: underline;
}

/* Compliance & Copyright Bar */
.footer-compliance-bar {
  background: #04070d;
  border-top: 1px solid #111827;
  padding-block: 24px;
}

.compliance-flex {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.helpline-alert {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-left: 3px solid #ef4444;
  padding: 12px 16px;
  border-radius: var(--brand-radius-sm);
  font-size: 12px;
  line-height: 1.5;
}

.helpline-title {
  font-weight: 700;
  color: #f8fafc;
  margin-right: 6px;
}

.helpline-number {
  font-family: var(--font-brand-mono);
  font-weight: 800;
  color: var(--brand-volt);
  margin-right: 8px;
}

.helpline-note {
  color: #94a3b8;
}

.copyright-text {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
}


/* ==========================================================================
   HUMAN PSYCHOLOGY & HIGH DWELL TIME DESIGN SYSTEM
   - Visual rest, dopamine reward cues, suspense countdown, tactile cards
   - Directives: ZERO em dashes and ZERO en dashes.
   ========================================================================== */

/* 1. Psychological Accent Badges & Glows */
.psych-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(10, 15, 29, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.psych-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -4px rgba(10, 15, 29, 0.08);
}

.psych-dark-card {
  background: linear-gradient(135deg, #0a0f1d 0%, #0f172a 100%);
  border: 1px solid #1e293b;
  border-radius: 16px;
  color: #f8fafc;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.3);
}

/* 2. Anticipation Suspense Banner (Zeigarnik Clock) */
.suspense-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid rgba(220, 248, 54, 0.25);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.suspense-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(220, 248, 54, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ticking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 248, 54, 0.12);
  border: 1px solid rgba(220, 248, 54, 0.35);
  color: #dcf836;
  font-family: var(--font-brand-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.live-dot-amber {
  width: 8px;
  height: 8px;
  background-color: #f59e0b;
  border-radius: 50%;
  display: inline-block;
  animation: live-pulse-amber 1.8s infinite;
}

@keyframes live-pulse-amber {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* 3. Interactive Number Matcher Simulator */
.matcher-input {
  font-family: var(--font-brand-mono, monospace);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #0f172a;
}

.matcher-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.matcher-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.matcher-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.matcher-btn:active {
  transform: translateY(0);
}

/* 4. Dream Decoder Pill Buttons */
.dream-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dream-tag-pill:hover, .dream-tag-pill.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* 5. Pattern Heatmap Cells */
.heatmap-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.heatmap-cell:hover {
  transform: scale(1.05);
}

.heatmap-hot {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.heatmap-steady {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.heatmap-cold {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

/* 6. Community Sentiment Poll Bar */
.poll-bar-container {
  background: #f1f5f9;
  border-radius: 8px;
  height: 24px;
  position: relative;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.poll-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.poll-btn.voted {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* ==========================================================================
   Tool Bar & Navigation Dropdown Styles (Zero em/en dashes)
   ========================================================================== */

/* 1. Header Navigation Dropdown */
.nav-item-dropdown {
  position: relative;
  list-style: none;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron,
.nav-item-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 290px;
  background: #0a0f1d;
  border: 1px solid #1e293b;
  border-radius: 12px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
  padding: 8px;
  z-index: 100;
  margin-top: 6px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #f8fafc;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.dropdown-link-icon {
  font-size: 15px;
  line-height: 1.3;
  flex-shrink: 0;
}

.dropdown-link-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}

.dropdown-link-desc {
  display: block;
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.3;
}

.dropdown-divider {
  height: 1px;
  background: #1e293b;
  margin: 6px 0;
}

/* Kolkata FF Nav Item Highlight */
.nav-item-kolkata {
  color: #34d399 !important;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.nav-item-kolkata:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #ffffff !important;
  border-color: #10b981;
}
.nav-item-kolkata.active {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981;
}
.nav-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 6px #10b981;
}

/* 2. Quick Tools & Circuits Toolbar Strip */
.brand-toolbar-strip {
  background: #090e1a;
  border-bottom: 1px solid #1e293b;
  padding-block: 6px;
  font-family: var(--font-brand-body, sans-serif);
}

.toolbar-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.toolbar-flex::-webkit-scrollbar {
  height: 3px;
}
.toolbar-flex::-webkit-scrollbar-track {
  background: #090e1a;
}
.toolbar-flex::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.toolbar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.toolbar-chips {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toolbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.toolbar-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-1px);
}

.toolbar-chip-kolkata {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-weight: 800;
}
.toolbar-chip-kolkata:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.toolbar-chip-refresh {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  cursor: pointer;
  font-family: inherit;
}
.toolbar-chip-refresh:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.refresh-spin {
  animation: spin 0.75s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

@media (min-width: 900px) {
  .brand-main-nav {
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: fixed !important;
    top: 64px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: 350px !important;
    margin-inline: auto !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 1000 !important;
  }
}
