/* ============================================================
   ELITE SPY WORLDS — "FUTURE OPS" THEME PACK
   Built 2026-10-06 for GridFeel
   Dark cyber-intelligence aesthetic: deep black, neon cyan,
   magenta accents, terminal typography, scan-line textures.
   ============================================================ */

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

:root {
  --esw-black: #0a0e14;
  --esw-panel: #11161d;
  --esw-panel2: #161d27;
  --esw-cyan: #00f0ff;
  --esw-magenta: #ff2d78;
  --esw-amber: #ffb300;
  --esw-green: #00ff9d;
  --esw-text: #c8d6e5;
  --esw-dim: #5a6c7d;
  --esw-border: #1e2a3a;
}

/* ---- Base ---- */
body {
  background: var(--esw-black) !important;
  color: var(--esw-text) !important;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif !important;
}

/* Subtle scan-line overlay on body */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.4;
}

/* ---- Typography ---- */
h1, h2, h3, .site-title, .entry-title {
  font-family: 'Orbitron', sans-serif !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.entry-title a {
  color: #fff !important;
  text-decoration: none !important;
  transition: color 0.2s, text-shadow 0.2s;
}
.entry-title a:hover {
  color: var(--esw-cyan) !important;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.site-title a {
  color: var(--esw-cyan) !important;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  font-weight: 900 !important;
  letter-spacing: 4px !important;
}

.site-description {
  font-family: 'Share Tech Mono', monospace !important;
  color: var(--esw-magenta) !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85em !important;
}

/* ---- Header ---- */
.site-header {
  background: linear-gradient(180deg, #0d1117 0%, #0a0e14 100%) !important;
  border-bottom: 2px solid var(--esw-cyan) !important;
  box-shadow: 0 2px 20px rgba(0, 240, 255, 0.15);
}

/* Animated top border glow */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--esw-cyan), var(--esw-magenta), var(--esw-cyan));
  background-size: 200% 100%;
  animation: esw-slide 4s linear infinite;
}
@keyframes esw-slide {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Navigation ---- */
.main-navigation {
  background: rgba(17, 22, 29, 0.95) !important;
}
.main-navigation a {
  color: var(--esw-text) !important;
  font-family: 'Share Tech Mono', monospace !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85em !important;
  transition: all 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--esw-cyan) !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* ---- Content cards ---- */
.post, .page, article {
  background: var(--esw-panel) !important;
  border: 1px solid var(--esw-border) !important;
  border-radius: 4px !important;
  padding: 1.5em !important;
  margin-bottom: 1.5em !important;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.post:hover, article:hover {
  border-color: rgba(0, 240, 255, 0.3) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
}

/* Corner brackets on posts (HUD feel) */
.post::before, article::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 2px solid var(--esw-cyan);
  border-left: 2px solid var(--esw-cyan);
  opacity: 0.6;
}
.post::after, article::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 20px; height: 20px;
  border-bottom: 2px solid var(--esw-cyan);
  border-right: 2px solid var(--esw-cyan);
  opacity: 0.6;
}

/* ---- Sidebar widgets ---- */
.widget {
  background: var(--esw-panel) !important;
  border: 1px solid var(--esw-border) !important;
  border-radius: 4px !important;
  padding: 1.2em !important;
  margin-bottom: 1.5em !important;
}

.widget-title, .widgettitle {
  font-family: 'Orbitron', sans-serif !important;
  color: var(--esw-cyan) !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  font-size: 0.95em !important;
  border-bottom: 1px solid var(--esw-border) !important;
  padding-bottom: 0.5em !important;
  margin-bottom: 1em !important;
}

/* Add "//" prefix to widget titles for terminal feel */
.widget-title::before, .widgettitle::before {
  content: "// ";
  color: var(--esw-magenta);
}

.widget a {
  color: var(--esw-text) !important;
  transition: color 0.2s;
}
.widget a:hover {
  color: var(--esw-cyan) !important;
}

.widget ul {
  list-style: none !important;
  padding-left: 0 !important;
}
.widget ul li {
  padding: 0.4em 0 !important;
  border-bottom: 1px solid rgba(30, 42, 58, 0.5) !important;
}
.widget ul li::before {
  content: "▸ ";
  color: var(--esw-magenta);
}

/* ---- Amalgaverse Tracker widget ---- */
.amalgaverse-tracker {
  font-family: 'Share Tech Mono', monospace !important;
}
.amalgaverse-tracker .ava-date {
  color: var(--esw-amber) !important;
  font-size: 0.85em;
  letter-spacing: 1px;
}
.amalgaverse-tracker .ava-title {
  color: #fff !important;
  font-family: 'Orbitron', sans-serif !important;
  font-size: 1.1em;
  margin: 0.5em 0;
}
.amalgaverse-tracker .ava-summary {
  color: var(--esw-text) !important;
  line-height: 1.6;
}
.amalgaverse-tracker .ava-vote {
  display: inline-block;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--esw-cyan);
  color: var(--esw-cyan) !important;
  padding: 0.3em 0.8em;
  border-radius: 3px;
  margin: 0.5em 0;
  font-size: 0.9em;
}
.amalgaverse-tracker a {
  color: var(--esw-magenta) !important;
}

/* ---- Buttons ---- */
.button, button, input[type="submit"], .btn {
  background: transparent !important;
  border: 1px solid var(--esw-cyan) !important;
  color: var(--esw-cyan) !important;
  font-family: 'Share Tech Mono', monospace !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.6em 1.5em !important;
  border-radius: 3px !important;
  cursor: pointer;
  transition: all 0.2s;
}
.button:hover, button:hover, input[type="submit"]:hover {
  background: rgba(0, 240, 255, 0.1) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* ---- Search ---- */
.search-field, input[type="search"], input[type="text"] {
  background: var(--esw-black) !important;
  border: 1px solid var(--esw-border) !important;
  color: var(--esw-cyan) !important;
  font-family: 'Share Tech Mono', monospace !important;
  padding: 0.6em !important;
  border-radius: 3px !important;
}
.search-field:focus, input[type="search"]:focus {
  border-color: var(--esw-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  outline: none !important;
}
.search-field::placeholder {
  color: var(--esw-dim) !important;
}

/* ---- Footer ---- */
.site-footer {
  background: #070a0f !important;
  border-top: 2px solid var(--esw-magenta) !important;
  color: var(--esw-dim) !important;
  font-family: 'Share Tech Mono', monospace !important;
}
.site-footer a {
  color: var(--esw-cyan) !important;
}

/* ---- Links ---- */
a {
  color: var(--esw-cyan) !important;
}
a:hover {
  color: #fff !important;
}

/* ---- Entry meta ---- */
.entry-meta, .posted-on, .byline {
  font-family: 'Share Tech Mono', monospace !important;
  color: var(--esw-dim) !important;
  font-size: 0.8em !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.entry-meta a {
  color: var(--esw-amber) !important;
}

/* ---- Categories/Tags ---- */
.cat-links a, .tags-links a {
  display: inline-block;
  background: rgba(255, 45, 120, 0.1);
  border: 1px solid rgba(255, 45, 120, 0.3);
  color: var(--esw-magenta) !important;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 0.8em;
  margin: 0.2em;
  text-decoration: none !important;
}
.cat-links a:hover, .tags-links a:hover {
  background: rgba(255, 45, 120, 0.2);
  color: #fff !important;
}

/* ---- Blockquotes ---- */
blockquote {
  border-left: 3px solid var(--esw-magenta) !important;
  background: rgba(255, 45, 120, 0.05) !important;
  padding: 1em 1.5em !important;
  font-style: italic;
  color: var(--esw-text) !important;
}

/* ---- Code ---- */
code, pre {
  font-family: 'Share Tech Mono', monospace !important;
  background: #070a0f !important;
  border: 1px solid var(--esw-border) !important;
  color: var(--esw-green) !important;
}

/* ---- Pagination ---- */
.page-numbers {
  font-family: 'Share Tech Mono', monospace !important;
  border: 1px solid var(--esw-border) !important;
  color: var(--esw-text) !important;
  padding: 0.5em 0.8em !important;
}
.page-numbers.current {
  border-color: var(--esw-cyan) !important;
  color: var(--esw-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* ---- Tic-Tac-Toe widget ---- */
.esw-tictactoe {
  text-align: center;
  font-family: 'Share Tech Mono', monospace !important;
}
.esw-ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  grid-gap: 5px;
  justify-content: center;
  margin: 1em auto;
}
.esw-ttt-cell {
  width: 60px;
  height: 60px;
  background: var(--esw-black);
  border: 1px solid var(--esw-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--esw-cyan);
}
.esw-ttt-cell:hover:empty {
  border-color: var(--esw-cyan);
  background: rgba(0, 240, 255, 0.05);
}
.esw-ttt-cell.taken {
  cursor: default;
}
.esw-ttt-cell.win {
  background: rgba(0, 255, 157, 0.15);
  border-color: var(--esw-green);
}
.esw-ttt-status {
  color: var(--esw-amber);
  min-height: 1.5em;
  margin: 0.5em 0;
}
.esw-ttt-reset {
  margin-top: 0.5em;
  font-size: 0.8em;
}

/* ---- Classification banner ---- */
.esw-class-banner {
  background: linear-gradient(90deg, var(--esw-magenta), #ff6b35);
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-align: center;
  padding: 0.4em;
  letter-spacing: 3px;
  font-size: 0.85em;
  text-transform: uppercase;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .site-title a { font-size: 0.8em !important; }
}
