/* Halo Theme - CSS overrides
   Scoped under body[data-theme="halo"] */

body[data-theme="halo"] {
  font-family: "Rajdhani", "Noto Sans", sans-serif;
  --halo-cyan: #6fb7ff;
  --halo-cyan-soft: #8bc6ff;
  --halo-steel: #2e455d;
  --halo-panel: rgba(10, 18, 28, 0.62);
}

body[data-theme="halo"] h1,
body[data-theme="halo"] h2,
body[data-theme="halo"] h3,
body[data-theme="halo"] .sidebar-header h3,
body[data-theme="halo"] .chat-welcome h3,
body[data-theme="halo"] .auth-logo h1,
body[data-theme="halo"] .auth-panel h2,
body[data-theme="halo"] .channel-category,
body[data-theme="halo"] .members-header {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body[data-theme="halo"] .app-layout {
  background:
    radial-gradient(1200px 400px at 70% 0%, rgba(111, 183, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #0e1520 0%, #111b29 45%, #0b1119 100%);
}

body[data-theme="halo"] .server-rail,
body[data-theme="halo"] .channel-sidebar,
body[data-theme="halo"] .members-sidebar,
body[data-theme="halo"] .main-content {
  backdrop-filter: blur(2px);
}

body[data-theme="halo"] .server-rail {
  border-right: 1px solid var(--halo-steel);
}

body[data-theme="halo"] .channel-sidebar {
  border-right: 1px solid var(--halo-steel);
}

body[data-theme="halo"] .members-sidebar {
  border-left: 1px solid var(--halo-steel);
}

body[data-theme="halo"] .chat-header,
body[data-theme="halo"] .sidebar-header,
body[data-theme="halo"] .members-header {
  position: relative;
  background:
    linear-gradient(180deg, rgba(26, 43, 62, 0.92) 0%, rgba(16, 29, 44, 0.96) 100%);
  border-bottom: 1px solid rgba(111, 183, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(193, 223, 255, 0.08),
    0 1px 0 rgba(9, 16, 24, 0.85);
}

body[data-theme="halo"] .chat-header::after,
body[data-theme="halo"] .sidebar-header::after,
body[data-theme="halo"] .members-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--halo-cyan), transparent);
  opacity: 0.75;
}

body[data-theme="halo"] .channel-category {
  color: var(--halo-cyan-soft);
  border-bottom: 1px solid rgba(111, 183, 255, 0.25);
  padding-bottom: 5px;
  margin-bottom: 6px;
}

body[data-theme="halo"] .channel-item.active {
  border-left: 3px solid var(--halo-cyan);
  background: rgba(111, 183, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(111, 183, 255, 0.16);
}

body[data-theme="halo"] .chat-messages,
body[data-theme="halo"] .members-list,
body[data-theme="halo"] .channel-list {
  background: var(--halo-panel);
}

body[data-theme="halo"] .chat-input-form {
  border: 1px solid rgba(111, 183, 255, 0.35);
  background: rgba(9, 16, 26, 0.78);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
}

body[data-theme="halo"] .chat-input-form:focus-within {
  border-color: var(--halo-cyan);
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(111, 183, 255, 0.28);
}

body[data-theme="halo"] .btn-primary {
  background: linear-gradient(180deg, #7ec0ff 0%, #4c88c4 52%, #356693 100%);
  border: 1px solid #89c8ff;
  color: #03101d;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-theme="halo"] .btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #97d0ff 0%, #5a96d0 52%, #3f74a3 100%);
  box-shadow: 0 0 12px rgba(111, 183, 255, 0.28);
}

body[data-theme="halo"] .btn-secondary {
  background: linear-gradient(180deg, #263a4d 0%, #1a2a3a 100%);
  border: 1px solid #40607e;
}

body[data-theme="halo"] .user-panel,
body[data-theme="halo"] .voice-bar {
  background: linear-gradient(180deg, rgba(13, 22, 33, 0.96), rgba(9, 16, 25, 0.96));
  border-top: 1px solid rgba(111, 183, 255, 0.2);
}

body[data-theme="halo"] .voice-dot {
  background: var(--halo-cyan-soft);
  box-shadow: 0 0 8px rgba(139, 198, 255, 0.65);
}

body[data-theme="halo"] .msg-avatar,
body[data-theme="halo"] .member-avatar,
body[data-theme="halo"] .user-avatar,
body[data-theme="halo"] .voice-user-avatar,
body[data-theme="halo"] .server-card-icon {
  background: linear-gradient(180deg, #203347, #172638);
  border: 1px solid #446786;
  color: #cfe9ff;
}
