/* ============================================
   CISCO SOC THEME - Threat Hunting Console
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --soc-bg:          #060c14;
  --soc-panel:        #0a1420;
  --soc-panel-hover:  #0e1f30;
  --soc-blue:         #049fd9;
  --soc-blue-bright:  #3fd0ff;
  --soc-blue-glow:    rgba(4, 159, 217, 0.35);
  --soc-blue-subtle:  rgba(4, 159, 217, 0.1);
  --soc-green:        #00ffa8;
  --soc-red:          #ff3b4e;
  --soc-text:         #d3ecf7;
  --soc-text-dim:     #6c8ea3;
  --soc-border:       rgba(4, 159, 217, 0.35);
  --soc-border-dim:   rgba(4, 159, 217, 0.15);
}

/* ── Base ── */
body, #__next {
  background-color: var(--soc-bg) !important;
  font-family: 'JetBrains Mono', monospace !important;
  color: var(--soc-text) !important;
}

/* Circuit-grid backdrop + radar-console glow spots */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(4,159,217,0.05) 0px, rgba(4,159,217,0.05) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(4,159,217,0.05) 0px, rgba(4,159,217,0.05) 1px, transparent 1px, transparent 48px),
    radial-gradient(ellipse 900px 600px at 12% 8%, rgba(4,159,217,0.14), transparent 60%),
    radial-gradient(ellipse 700px 550px at 90% 95%, rgba(0,255,168,0.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Slow radar sweep - console-operator feel */
body::after {
  content: '';
  position: fixed;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(4, 159, 217, 0.1) 12deg,
    transparent 38deg,
    transparent 360deg
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  animation: soc-radar-spin 16s linear infinite;
}

@keyframes soc-radar-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none !important;
    display: none !important;
  }
}

/* ── Top Info Bar ── */
#information-widgets {
  background: linear-gradient(90deg, var(--soc-panel) 0%, #081422 100%) !important;
  border-bottom: 1px solid var(--soc-blue) !important;
  box-shadow: 0 2px 14px rgba(4, 159, 217, 0.25) !important;
  padding: 0.65rem 1.5rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  row-gap: 0.4rem !important;
}

#information-widgets > div {
  display: flex !important;
  align-items: center !important;
  border-right: 1px solid var(--soc-border-dim) !important;
  padding-right: 1rem !important;
  margin-right: 1rem !important;
}

#information-widgets > div:last-child {
  border-right: none !important;
  margin-right: 0 !important;
}

#information-widgets span,
#information-widgets p {
  color: var(--soc-text) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}

/* Greeting widget - console status line */
[class*="greeting"] {
  color: var(--soc-green) !important;
  font-family: 'Share Tech Mono', monospace !important;
  letter-spacing: 0.06em !important;
  font-size: 0.85rem !important;
  text-shadow: 0 0 8px rgba(0, 255, 168, 0.4) !important;
}

[class*="greeting"]::before {
  content: '●';
  display: inline-block;
  margin-right: 0.4em;
  color: var(--soc-green);
  animation: soc-status-pulse 2s ease-in-out infinite;
}

@keyframes soc-status-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  [class*="greeting"]::before {
    animation: none !important;
  }
}

/* ── Section Headers ── */
#myTab li button,
.text-theme-800,
h1, h2, h3,
[class*="section"] > div > span,
[class*="group"] > span {
  font-family: 'Share Tech Mono', monospace !important;
  color: var(--soc-blue-bright) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-shadow: 0 0 12px rgba(4, 159, 217, 0.5) !important;
}

section > div:first-child {
  border-bottom: 1px solid var(--soc-border-dim) !important;
  padding-bottom: 0.4rem !important;
  margin-bottom: 0.75rem !important;
}

/* Terminal prompt prefix + blinking cursor on each group title */
.service-group-name::before {
  content: '> ';
  color: var(--soc-blue-bright);
  opacity: 0.85;
}

.service-group-name::after {
  content: '_';
  display: inline-block;
  margin-left: 0.3em;
  color: var(--soc-green);
  animation: soc-cursor-blink 1.1s step-end infinite;
}

@keyframes soc-cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .service-group-name::after {
    animation: none !important;
  }
}

/* ── Service Cards ── */
[class*="service-card"],
[class*="relative"][class*="rounded"],
li[class*="rounded"] {
  position: relative !important;
  background: var(--soc-panel) !important;
  border: 1px solid var(--soc-border-dim) !important;
  border-radius: 3px !important;
  transition: all 0.25s ease !important;
}

/* HUD corner brackets */
[class*="service-card"]::before,
li[class*="rounded"]::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--soc-blue);
  border-left: 2px solid var(--soc-blue);
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
  pointer-events: none;
}

[class*="service-card"]::after,
li[class*="rounded"]::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--soc-blue);
  border-right: 2px solid var(--soc-blue);
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
  pointer-events: none;
}

[class*="service-card"]:hover::before,
[class*="service-card"]:hover::after,
li[class*="rounded"]:hover::before,
li[class*="rounded"]:hover::after {
  border-color: var(--soc-blue-bright) !important;
  opacity: 1;
}

@keyframes soc-card-flicker {
  0%   { filter: brightness(1); }
  30%  { filter: brightness(1.5); }
  50%  { filter: brightness(0.92); }
  100% { filter: brightness(1); }
}

[class*="service-card"]:hover,
li[class*="rounded"]:hover {
  background: var(--soc-panel-hover) !important;
  border-color: var(--soc-blue) !important;
  box-shadow:
    0 0 20px var(--soc-blue-glow),
    inset 0 0 20px rgba(4, 159, 217, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-1px) !important;
  animation: soc-card-flicker 0.2s ease-out !important;
}

@media (prefers-reduced-motion: reduce) {
  [class*="service-card"]:hover,
  li[class*="rounded"]:hover {
    animation: none !important;
  }
}

/* Brand icons keep natural color (varied SOC status-panel feel) with a console glow */
li img,
[class*="service-card"] img {
  filter: drop-shadow(0 0 3px rgba(4, 159, 217, 0.35)) !important;
  transition: filter 0.25s ease !important;
}

li:hover img,
[class*="service-card"]:hover img {
  filter: drop-shadow(0 0 6px rgba(4, 159, 217, 0.6)) brightness(1.05) !important;
}

/* ── Card Text ── */
[class*="service-card"] span,
[class*="service-card"] p,
li span,
li p {
  font-family: 'JetBrains Mono', monospace !important;
}

li [class*="font-bold"],
li [class*="font-semibold"],
.service-title {
  color: #eaf6ff !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

li [class*="text-sm"],
li [class*="opacity"],
.service-description {
  color: var(--soc-text-dim) !important;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
}

/* ── Widget Stats ── */
[class*="widget"] span[class*="font-bold"],
[class*="widget"] span[class*="text-"],
li [class*="flex"] span {
  color: var(--soc-green) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
}

[class*="widget"] span[class*="uppercase"],
li [class*="flex"] span[class*="text-xs"] {
  color: var(--soc-text-dim) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em !important;
}

[class*="widget"] [class*="border"],
li [class*="border-r"] {
  border-color: var(--soc-border-dim) !important;
}

/* ── API Error / Alert Banners ── */
@keyframes soc-alert-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 59, 78, 0.3); }
  50%      { box-shadow: 0 0 18px rgba(255, 59, 78, 0.6); }
}

[class*="bg-red"],
[class*="bg-rose"] {
  background: rgba(180, 30, 45, 0.25) !important;
  border: 1px solid rgba(255, 59, 78, 0.35) !important;
  border-radius: 2px !important;
  animation: soc-alert-pulse 2.5s ease-in-out infinite !important;
}

@media (prefers-reduced-motion: reduce) {
  [class*="bg-red"],
  [class*="bg-rose"] {
    animation: none !important;
  }
}

/* ── Bookmarks Section ── */
[class*="bookmark"] span,
[class*="bookmark"] a {
  color: var(--soc-text-dim) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.03em !important;
  transition: color 0.2s ease !important;
}

[class*="bookmark"] a:hover {
  color: var(--soc-blue-bright) !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--soc-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--soc-blue);
  opacity: 0.5;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--soc-blue-bright);
}

/* ── Version tag ── */
#version,
#footer {
  color: #3a5a6e !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
}

/* Reminder: where to go to edit this dashboard */
#footer::after {
  content: 'Edit: cd ~/docker/homepage-cisco/config && claude';
  display: block;
  text-align: right;
  margin-top: 0.25rem;
  color: var(--soc-blue-bright) !important;
  font-size: 0.8rem !important;
  opacity: 0.9;
}
