/* ============================================
   MEDIA STACK — Custom Homepage Theme
   Deep Space Mission Control Aesthetic
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── Root Variables ── */
:root {
  --accent:        #00d4ff;
  --accent-2:      #7c3aed;
  --accent-glow:   rgba(0, 212, 255, 0.18);
  --surface:       rgba(10, 14, 26, 0.72);
  --surface-hover: rgba(0, 212, 255, 0.07);
  --border:        rgba(0, 212, 255, 0.14);
  --text-primary:  #e8f4f8;
  --text-muted:    rgba(180, 210, 230, 0.55);
  --success:       #00ff9d;
  --warning:       #ffd166;
  --danger:        #ff4d6d;
}

/* ── Base Typography ── */
* { font-family: 'Exo 2', sans-serif !important; }
code, pre, .font-mono { font-family: 'JetBrains Mono', monospace !important; }

/* ── Page Title ── */
#page-title {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 50%, var(--accent-2) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.4)) !important;
}

/* ── Scanline overlay on header ── */
header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,212,255,0.015) 2px,
    rgba(0,212,255,0.015) 4px
  );
  pointer-events: none;
}

/* ── Section Headers ── */
#widgets-wrap h2,
.services-group h2,
section h2 {
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1rem !important;
}

/* ── Service Cards ── */
.service-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Top accent line on each card */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  background: var(--surface-hover) !important;
  border-color: rgba(0, 212, 255, 0.4) !important;
  transform: translateY(-3px) !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(0, 212, 255, 0.12) !important;
}

.service-card:hover::before { opacity: 1; }

/* ── Service Name ── */
.service-card .service-name,
.service-card h3 {
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: var(--text-primary) !important;
}

/* ── Service Description ── */
.service-card .service-description,
.service-card p {
  font-size: 0.7rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* ── Status Dot — Online ── */
.status-dot.online,
[class*="dot"][class*="green"] {
  background: var(--success) !important;
  box-shadow: 0 0 8px var(--success), 0 0 16px rgba(0,255,157,0.4) !important;
  animation: pulse-green 2.5s ease-in-out infinite !important;
}

/* ── Status Dot — Offline ── */
.status-dot.offline,
[class*="dot"][class*="red"] {
  background: var(--danger) !important;
  box-shadow: 0 0 8px var(--danger) !important;
}

/* ── Status Dot — Unknown ── */
.status-dot.unknown,
[class*="dot"][class*="yellow"] {
  background: var(--warning) !important;
  box-shadow: 0 0 6px var(--warning) !important;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--success), 0 0 12px rgba(0,255,157,0.3); }
  50%       { opacity: 0.75; box-shadow: 0 0 10px var(--success), 0 0 22px rgba(0,255,157,0.5); }
}

/* ── Widget Numbers (CPU, RAM, etc.) ── */
#widgets-wrap .text-theme-800,
#widgets-wrap [class*="text-theme"] {
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
}

/* ── Resource Bars ── */
[class*="progress"] div,
[role="progressbar"] > div {
  background: linear-gradient(90deg, var(--accent-2), var(--accent)) !important;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5) !important;
}

/* ── Search Bar ── */
#search-input,
input[type="text"],
input[type="search"] {
  background: rgba(0,20,40,0.6) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  letter-spacing: 0.04em !important;
  backdrop-filter: blur(12px) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

input[type="text"]:focus,
input[type="search"]:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12), 0 0 20px rgba(0,212,255,0.1) !important;
  outline: none !important;
}

/* ── DateTime Widget ── */
#datetime {
  font-family: 'JetBrains Mono', monospace !important;
  color: var(--text-primary) !important;
  letter-spacing: 0.08em !important;
}

/* ── Bookmarks ── */
.bookmark-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}
.bookmark-card:hover {
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15) !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.6); }

/* ── Selection ── */
::selection { background: rgba(0,212,255,0.2); color: white; }
