/* AndreTaker — BabaYaga Core Master Portal CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@600;700;800;900&display=swap');

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-card: rgba(56, 189, 248, 0.2);
  --border-card-bright: rgba(56, 189, 248, 0.6);
  --accent-cyan: #38bdf8;
  --accent-teal: #14b8a6;
  --accent-purple: #a855f7;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --glow-cyan: 0 0 25px rgba(56, 189, 248, 0.35);
  --glow-red: 0 0 25px rgba(239, 68, 68, 0.35);
  --glow-purple: 0 0 25px rgba(168, 85, 247, 0.45);
  --border-purple: rgba(168, 85, 247, 0.4);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  padding: 6px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  height: auto;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.nav-btn:hover, .nav-btn.active {
  color: var(--accent-cyan);
  border-color: var(--border-card-bright);
  background: rgba(56, 189, 248, 0.1);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-subtitle {
  display: inline-block;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-card);
  border-radius: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 60%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-bright);
  box-shadow: var(--glow-cyan);
}

.metric-card:nth-child(even):hover {
  border-color: var(--border-purple);
  box-shadow: var(--glow-purple);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.metric-lbl {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Content Sections */
.tab-content {
  display: none !important;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
}

/* Feature & Evidence Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--accent-purple);
}

.content-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-cyan { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); border: 1px solid var(--accent-red); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid var(--accent-amber); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); border: 1px solid var(--accent-purple); }

/* Timeline List */
.timeline-list {
  position: relative;
  padding-left: 30px;
  margin-bottom: 40px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-card);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

.timeline-item:nth-child(odd)::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

/* Table Design */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-card);
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  background: rgba(30, 41, 59, 0.8);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

td {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-card);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 80px;
}

footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .nav-container { flex-direction: column; height: auto; padding: 16px 0; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
}

/* Retro Map Styling */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Silkscreen&display=swap');

.pixel-font {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.retro-container {
  background: #0f172a;
  border: 4px solid #38bdf8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2), inset 0 0 15px rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
}

.retro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed rgba(56, 189, 248, 0.3);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.retro-title-box {
  display: flex;
  gap: 20px;
}

.retro-pixel-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: #38bdf8;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.retro-inst {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
}

.retro-map-canvas-container {
  width: 100%;
  height: 500px;
  position: relative;
  border: 2px solid rgba(56, 189, 248, 0.4);
  background: #090e18;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
}

.retro-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
}

.retro-paths {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 500px;
  pointer-events: none;
  z-index: 5;
}

.path-line {
  fill: none;
  stroke: rgba(168, 85, 247, 0.5);
  stroke-width: 4;
  stroke-dasharray: 8 8;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.retro-node {
  position: absolute;
  width: 48px;
  height: 48px;
  background: #1e293b;
  border: 3px solid #94a3b8;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transform: translate(-50%, -50%);
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.retro-node:hover {
  transform: translate(-50%, -50%) scale(1.15);
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.retro-node.active {
  border-color: #38bdf8;
  background: #0f172a;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.retro-node.visited {
  border-color: #14b8a6;
  background: #0b1a1c;
}

.node-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: #fff;
}

.node-label {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.75rem;
  color: #f1f5f9;
  pointer-events: none;
}

.retro-avatar {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 20;
  transform: translate(-50%, -50%);
  transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.avatar-sprite, .avatar-badge {
  background: linear-gradient(135deg, #06b6d4, #a855f7);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.9), 0 0 10px rgba(168, 85, 247, 0.8);
  border: 2px solid #38bdf8;
  white-space: nowrap;
  animation: bounce 0.6s infinite alternate, pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.9), 0 0 10px rgba(168, 85, 247, 0.8); }
  50% { box-shadow: 0 0 35px rgba(168, 85, 247, 1), 0 0 15px rgba(56, 189, 248, 1); }
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

.retro-dialog-box {
  margin-top: 24px;
  background: #020617;
  border: 4px solid #a855f7;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.dialog-border {
  border: 2px dashed rgba(168, 85, 247, 0.4);
  padding: 12px;
  border-radius: 4px;
}

.retro-dialog-box h3 {
  color: #a855f7;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.retro-dialog-box p {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.5;
}

