/* DALYJUMP - NORD® Brand Architecture Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Victor+Mono:ital,wght@0,100..700;1,100..700&display=swap');

:root {
  --ink: #0E0E0E;
  --ink-2: #0A0A0A;
  --paper: #F4F4F2;
  --acid: #C6FF00;
  --acid-bg: rgba(198, 255, 0, 0.05);
  --acid-border: rgba(198, 255, 0, 0.22);
  --border: #242424;
  --border-light: rgba(244, 244, 242, 0.1);
  --gray: #8A8A8A;
  --gray-dark: #1A1A1A;
  --grid-line: rgba(244, 244, 242, 0.03);
  
  --font-sans: "Inter", -apple-system, sans-serif;
  --font-heading: "Inter", -apple-system, sans-serif;
  --font-mono: "Space Mono", "Victor Mono", monospace;
}

/* Light Theme Variables */
[data-theme="light"] {
  --ink: #F7F7F5;
  --ink-2: #FFFFFF;
  --paper: #111111;
  --acid: #88C400;
  --acid-bg: rgba(136, 196, 0, 0.08);
  --acid-border: rgba(136, 196, 0, 0.35);
  --border: #E2E2DE;
  --border-light: rgba(0, 0, 0, 0.08);
  --gray: #666666;
  --gray-dark: #EFEFEA;
  --grid-line: rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--acid);
  color: #0E0E0E;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 120px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Technical Grid */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Header typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
}

/* Top Sticky Header Bar */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--ink);
  opacity: 0.96;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  z-index: 900;
}

.nord-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--acid);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title {
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 20px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.brand-title span {
  color: var(--acid);
}

.brand-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--acid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.btn-theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--paper);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.ai-badge-btn {
  background: transparent;
  border: 1px solid var(--acid);
  color: var(--acid);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-badge-btn:hover {
  background: var(--acid);
  color: #0E0E0E;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 11px;
}

/* Marquee Ticker */
.ticker-container {
  margin-top: 52px;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--acid);
  color: #0E0E0E;
}

.ticker-wrap {
  display: inline-flex;
  animation: marq 24s linear infinite;
}

.ticker-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

@keyframes marq {
  0% { transform: translate(0); }
  100% { transform: translate(-50%); }
}

/* Main Container */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px clamp(16px, 3vw, 40px);
}

/* Hero Section */
.hero-greeting {
  border: 1px solid var(--border);
  background: var(--ink-2);
  padding: 36px;
  margin-bottom: 32px;
  position: relative;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acid);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.greeting-headline {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 0.90;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.greeting-headline span {
  -webkit-text-stroke: 1px var(--acid);
  color: transparent;
}

.greeting-subtitle {
  font-size: 14px;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.6;
  font-family: var(--font-sans);
  margin-bottom: 24px;
}

/* Terminal Console Box */
.terminal-box {
  background: var(--acid-bg);
  border: 1px solid var(--acid-border);
  border-left: 3px solid var(--acid);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  max-width: 640px;
}

.terminal-line {
  color: var(--paper);
  opacity: 0.8;
}

.terminal-prompt {
  color: var(--acid);
  margin-right: 8px;
}

.terminal-val {
  color: var(--paper);
  font-weight: 700;
}

/* Icon-based Navigation Bar */
.stage-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stage-tab {
  background: var(--ink-2);
  border: 1px solid var(--border);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.stage-tab:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.stage-tab.active {
  background: var(--acid);
  color: #0E0E0E;
  border-color: var(--acid);
  font-weight: 700;
}

.tab-icon {
  font-size: 16px;
}

.tab-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tab-badge {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Briefing Card Styling */
.card-view-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brief-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Agenda Grid Items */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  padding: 16px 20px;
}

.agenda-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acid);
  font-weight: 700;
  min-width: 85px;
}

.agenda-info {
  flex: 1;
}

.agenda-event-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--paper);
}

.agenda-location {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
}

.agenda-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--gray);
}

.agenda-badge.high {
  border-color: var(--acid);
  color: var(--acid);
}

/* Split Grid for Weather & Commute */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .split-grid { grid-template-columns: 1fr; }
}

.weather-box, .commute-box {
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 22px;
}

.temp-large {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 900;
  color: var(--acid);
  line-height: 1;
  margin: 8px 0 4px 0;
  letter-spacing: -0.04em;
}

.commute-alert-box {
  background: rgba(255, 126, 95, 0.08);
  border: 1px solid rgba(255, 126, 95, 0.3);
  border-left: 3px solid #FF7E5F;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
  margin-top: 14px;
  line-height: 1.6;
}

/* Feedback Toolbar */
.card-feedback-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}

.feedback-label {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-buttons {
  display: flex;
  gap: 8px;
}

.btn-feedback {
  background: var(--ink);
  border: 1px solid var(--border);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-feedback:hover {
  border-color: var(--acid);
  color: var(--acid);
}

/* Bottom Floating Audio Dock */
.audio-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  opacity: 0.96;
  border-top: 1px solid var(--border);
  padding: 14px clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 900;
  backdrop-filter: blur(12px);
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-play-pause {
  width: 38px;
  height: 38px;
  background: var(--acid);
  border: none;
  color: #0E0E0E;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-track-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.audio-track-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.wave-bar {
  width: 3px;
  height: 100%;
  background: var(--acid);
  opacity: 0.4;
}

.audio-dock.playing .wave-bar {
  animation: wave 1.2s ease-in-out infinite alternate;
}

@keyframes wave {
  0% { height: 4px; opacity: 0.3; }
  100% { height: 16px; opacity: 1; }
}

/* Modal Drawer for AI Calibration */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--ink-2);
  border: 1px solid var(--acid);
  width: 90%;
  max-width: 640px;
  padding: 36px;
  box-shadow: 0 0 30px rgba(136, 196, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.close-btn {
  background: none;
  border: none;
  color: var(--acid);
  font-size: 24px;
  cursor: pointer;
  font-family: var(--font-mono);
}

.weight-bar-item {
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.weight-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
  color: var(--paper);
}

.progress-track {
  height: 4px;
  background: var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--acid);
  transition: width 0.4s ease;
}

/* Toast */
.toast-notification {
  position: fixed;
  top: 68px;
  right: 24px;
  background: var(--acid);
  color: #0E0E0E;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1000;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}
