/* ===========================================================
   OtterTecno Cyberpunk Synthwave & Notion Dashboard Aesthetic
   Design System inspired by Remir Cyber-Dashboard & PCB Circuit Diagram
   - Deep Onyx Dark Background (#0a0a0e, #10111a)
   - PCB Circuit Board Traces Radiating Outward
   - Central Microchip Vector Package with Solid Core & Centered Clean Logo
   - Custom Color Themes (Neon Pink, Neon Cyan, Neon Gold, Matrix Green)
   =========================================================== */

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

:root {
  /* Core Palette */
  --otter-dark: #0a0a0e;
  --otter-dark-surface: #10111a;
  --otter-dark-card: #141622;
  --otter-dark-card-hover: #1b1d2e;
  --otter-border: #222536;
  --otter-border-glow: rgba(0, 240, 255, 0.4);
  --otter-text: #ffffff;
  --otter-text-muted: #8e95a5;

  /* Default Theme Accents: Neon Pink & Cyan */
  --otter-primary: #ff007f;
  --otter-primary-hover: #ff3399;
  --otter-primary-rgb: 255, 0, 127;
  --otter-primary-text: #ffffff;
  --otter-secondary: #00f0ff;
  --otter-secondary-rgb: 0, 240, 255;
  --otter-accent-gold: #ffe600;
  --otter-accent-green: #00ff66;
}

/* Theme Presets */
html[data-otter-theme="gold"], body[data-otter-theme="gold"] {
  --otter-primary: #ffe600;
  --otter-primary-hover: #fff066;
  --otter-primary-rgb: 255, 230, 0;
  --otter-primary-text: #0a0a0e;
  --otter-secondary: #ff007f;
  --otter-secondary-rgb: 255, 0, 127;
}

html[data-otter-theme="teal"], body[data-otter-theme="teal"] {
  --otter-primary: #00f0ff;
  --otter-primary-hover: #38f4ff;
  --otter-primary-rgb: 0, 240, 255;
  --otter-primary-text: #0a0a0e;
  --otter-secondary: #ff007f;
  --otter-secondary-rgb: 255, 0, 127;
}

html[data-otter-theme="blue"], body[data-otter-theme="blue"] {
  --otter-primary: #0088ff;
  --otter-primary-hover: #33a2ff;
  --otter-primary-rgb: 0, 136, 255;
  --otter-primary-text: #ffffff;
  --otter-secondary: #00f0ff;
  --otter-secondary-rgb: 0, 240, 255;
}

html[data-otter-theme="emerald"], body[data-otter-theme="emerald"] {
  --otter-primary: #00ff66;
  --otter-primary-hover: #33ff85;
  --otter-primary-rgb: 0, 255, 102;
  --otter-primary-text: #0a0a0e;
  --otter-secondary: #00f0ff;
  --otter-secondary-rgb: 0, 240, 255;
}

html[data-otter-theme="orange"], body[data-otter-theme="orange"] {
  --otter-primary: #ff5500;
  --otter-primary-hover: #ff7733;
  --otter-primary-rgb: 255, 85, 0;
  --otter-primary-text: #ffffff;
  --otter-secondary: #ffe600;
  --otter-secondary-rgb: 255, 230, 0;
}

html[data-otter-theme="violet"], body[data-otter-theme="violet"] {
  --otter-primary: #ff007f;
  --otter-primary-hover: #ff3399;
  --otter-primary-rgb: 255, 0, 127;
  --otter-primary-text: #ffffff;
  --otter-secondary: #00f0ff;
  --otter-secondary-rgb: 0, 240, 255;
}

html[data-otter-theme="red"], body[data-otter-theme="red"] {
  --otter-primary: #ff003c;
  --otter-primary-hover: #ff3363;
  --otter-primary-rgb: 255, 0, 60;
  --otter-primary-text: #ffffff;
  --otter-secondary: #00f0ff;
  --otter-secondary-rgb: 0, 240, 255;
}

body, html {
  height: 100%;
}

body {
  background-color: var(--otter-dark);
  color: var(--otter-text-muted);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Custom Selection */
::selection {
  background: var(--otter-primary);
  color: var(--otter-primary-text);
  text-shadow: 0 0 8px rgba(var(--otter-primary-rgb), 0.8);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--otter-text);
  letter-spacing: -0.02em;
}

.font-mono, code, pre {
  font-family: 'Share Tech Mono', monospace !important;
}

/* Accent Utility Classes */
.text-otter-primary {
  color: var(--otter-primary) !important;
  text-shadow: 0 0 10px rgba(var(--otter-primary-rgb), 0.4);
}

.bg-otter-primary {
  background-color: var(--otter-primary) !important;
  color: var(--otter-primary-text) !important;
}

.border-otter-primary {
  border-color: var(--otter-primary) !important;
}

/* Clean Sharp Hero Logo Vector */
.otter-hero-logo {
  width: 100%;
  height: 100%;
  color: var(--otter-primary);
  display: inline-block;
  filter: none !important;
}

/* Neon Tube Light Bar Divider (User's Exact Style) */
.neon-tube-bar {
  height: 4px;
  border-radius: 9999px;
  background: var(--otter-primary);
  box-shadow: 0 0 12px var(--otter-primary), 0 0 25px rgba(var(--otter-primary-rgb), 0.6);
  position: relative;
}

.neon-tube-bar-secondary {
  height: 4px;
  border-radius: 9999px;
  background: var(--otter-secondary);
  box-shadow: 0 0 12px var(--otter-secondary), 0 0 25px rgba(var(--otter-secondary-rgb), 0.6);
  position: relative;
}

/* Neon Pill Headers */
.neon-pill-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--otter-primary);
  background: rgba(var(--otter-primary-rgb), 0.08);
  color: var(--otter-primary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(var(--otter-primary-rgb), 0.3);
}

/* Neon Marquee Banner Box */
.neon-marquee-box {
  border: 1.5px solid var(--otter-primary);
  border-radius: 8px;
  background: rgba(16, 17, 26, 0.95);
  box-shadow: 0 0 15px rgba(var(--otter-primary-rgb), 0.35), inset 0 0 10px rgba(var(--otter-primary-rgb), 0.1);
  padding: 0.6rem 1.2rem;
  color: var(--otter-primary);
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Notion Cyber Card Widgets */
.otter-cyber-widget {
  background-color: var(--otter-dark-card);
  border: 1px solid var(--otter-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.otter-cyber-widget:hover {
  border-color: rgba(var(--otter-primary-rgb), 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(var(--otter-primary-rgb), 0.2);
  transform: translateY(-2px);
}

/* Status Badges */
.badge-status-progress {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 0.65rem;
  font-family: 'Share Tech Mono', monospace;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-status-completed {
  background: rgba(0, 255, 102, 0.15);
  color: #00ff66;
  border: 1px solid rgba(0, 255, 102, 0.4);
  font-size: 0.65rem;
  font-family: 'Share Tech Mono', monospace;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-status-notstarted {
  background: rgba(142, 149, 165, 0.15);
  color: #8e95a5;
  border: 1px solid rgba(142, 149, 165, 0.4);
  font-size: 0.65rem;
  font-family: 'Share Tech Mono', monospace;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Buttons */
.btn-otter-primary {
  background-color: var(--otter-primary);
  color: var(--otter-primary-text);
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease-in-out;
  border: none;
  box-shadow: 0 0 15px rgba(var(--otter-primary-rgb), 0.4);
  font-family: 'Outfit', sans-serif;
}

.btn-otter-primary:hover {
  background-color: var(--otter-primary-hover);
  color: var(--otter-primary-text);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(var(--otter-primary-rgb), 0.7);
}

.btn-otter-outline {
  background-color: transparent;
  color: var(--otter-primary);
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease-in-out;
  border: 1px solid var(--otter-primary);
  box-shadow: 0 0 10px rgba(var(--otter-primary-rgb), 0.2);
  font-family: 'Outfit', sans-serif;
}

.btn-otter-outline:hover {
  background-color: var(--otter-primary);
  color: var(--otter-primary-text);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(var(--otter-primary-rgb), 0.5);
}

/* Cyber Cards & Articles */
.otter-card {
  background-color: var(--otter-dark-card);
  border: 1px solid var(--otter-border);
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.otter-card:hover {
  border-color: rgba(var(--otter-primary-rgb), 0.6);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(var(--otter-primary-rgb), 0.25);
}

/* Floating Theme Switcher Widget */
#otter-theme-switcher {
  position: fixed;
  top: 140px;
  right: -240px;
  z-index: 9999;
  width: 240px;
  background-color: rgba(16, 17, 26, 0.95);
  border: 1px solid var(--otter-primary);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -5px 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(var(--otter-primary-rgb), 0.3);
  transition: right 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
}

#otter-theme-switcher.open {
  right: 0;
}

.otter-switcher-toggle {
  position: absolute;
  top: 0;
  left: -44px;
  width: 44px;
  height: 44px;
  background-color: rgba(16, 17, 26, 0.95);
  border: 1px solid var(--otter-primary);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--otter-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.6);
}

.otter-switcher-toggle i {
  animation: spinGear 8s linear infinite;
}

@keyframes spinGear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.otter-switcher-header {
  padding: 12px 16px;
  background-color: #0a0a0e;
  border-bottom: 1px solid var(--otter-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.otter-switcher-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.otter-switcher-body {
  padding: 16px;
}

.otter-color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.otter-color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otter-color-btn:hover {
  transform: scale(1.15);
}

.otter-color-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.otter-color-btn.active::after {
  content: '✓';
  font-size: 12px;
  font-weight: bold;
  color: #0a0a0e;
}

/* Otter SVG Logo */
.otter-logo-badge {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--otter-primary);
}

.otter-logo-svg {
  width: 100%;
  height: 100%;
  color: currentColor;
  filter: none !important;
  transition: all 0.3s ease;
}

/* Multilingual Instant CSS Display Control (ES / EN) */
html[data-otter-lang="es"] [data-lang="en"],
body[data-otter-lang="es"] [data-lang="en"] {
  display: none !important;
}

html[data-otter-lang="en"] [data-lang="es"],
body[data-otter-lang="en"] [data-lang="es"] {
  display: none !important;
}
