/* ==========================================================================
   ENDER BOT — MINIMALIST HIGH-CONTRAST BLACK & WHITE DESIGN SYSTEM
   Signature Aesthetic: Pure Black (#000000), Deep Charcoal (#0A0A0A), Pure White (#FFFFFF)
   Typography: Space Grotesk (Headings) / DM Sans (UI) / Space Mono (Telemetry & Code)
   ========================================================================== */

:root {
  --bg-deep: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-elevated: #121212;
  --bg-surface-hover: #171717;
  
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-medium: rgba(255, 255, 255, 0.20);
  --border-strong: rgba(255, 255, 255, 0.40);
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-white: #ffffff;
  --accent-black: #000000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #000000;
  color-scheme: dark;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: #000000;
  color: #ededed;
  overflow-x: hidden;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

/* Accessibility & Focus Rings */
:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
}

button, a, input, select, textarea, label {
  cursor: pointer;
}

input[type="text"], input[type="number"], input[type="password"], textarea {
  cursor: text;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #ffffff;
}

p, span, a, button, label, input, select, textarea {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

code, pre, .font-mono {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  letter-spacing: -0.02em;
}

.tracking-widest, .uppercase {
  letter-spacing: 0.08em !important;
}

/* Subtle Monochrome Grid Patterns */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-mesh-pattern {
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* ==========================================================================
   END DIMENSION IMMERSIVE BACKGROUND SYSTEM
   ========================================================================== */
.end-dimension-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #040108;
}

.end-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Layer 1: High-res End Dimension Panoramic Sky & Distant Floating Islands */
.end-layer-image {
  background-image: url('/images/end_dimension_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.88;
  filter: saturate(120%) contrast(108%);
  transform: scale(1.02);
  animation: endDimensionBreathe 48s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes endDimensionBreathe {
  0% {
    transform: scale(1.02) translateY(0);
  }
  50% {
    transform: scale(1.05) translateY(-6px);
  }
  100% {
    transform: scale(1.02) translateY(0);
  }
}

/* Layer 2: Ethereal Celestial Moon Glow & Crystal Radiation */
.end-layer-celestial {
  background: 
    radial-gradient(circle at 75% 22%, rgba(168, 85, 247, 0.22) 0%, rgba(126, 34, 206, 0.12) 35%, transparent 65%),
    radial-gradient(circle at 25% 65%, rgba(147, 51, 234, 0.15) 0%, rgba(88, 28, 135, 0.08) 30%, transparent 60%);
  mix-blend-mode: screen;
  animation: endCelestialPulse 16s ease-in-out infinite alternate;
}

@keyframes endCelestialPulse {
  0% { opacity: 0.75; }
  100% { opacity: 1.0; }
}

/* Layer 3: Atmospheric Volumetric Void Fog */
.end-layer-fog {
  background: 
    linear-gradient(to top, rgba(8, 2, 18, 0.82) 0%, rgba(15, 5, 30, 0.40) 40%, transparent 100%),
    radial-gradient(ellipse at 50% 100%, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
}

/* Layer 4: Floating Void Particles / End Embers */
.end-layer-particles {
  overflow: hidden;
}

.end-particle {
  position: absolute;
  border-radius: 9999px;
  background: #d8b4fe;
  box-shadow: 0 0 6px #c084fc, 0 0 12px rgba(168, 85, 247, 0.8);
  opacity: 0;
  animation: endParticleFloat 18s linear infinite;
  will-change: transform, opacity;
}

/* Individual particle positions and timing */
.ep-1  { width: 3px; height: 3px; left: 8%;  bottom: -10px; animation-duration: 22s; animation-delay: 0s; }
.ep-2  { width: 2px; height: 2px; left: 16%; bottom: -10px; animation-duration: 28s; animation-delay: 3s; }
.ep-3  { width: 4px; height: 4px; left: 24%; bottom: -10px; animation-duration: 19s; animation-delay: 1.5s; box-shadow: 0 0 8px #e9d5ff, 0 0 16px #a855f7; }
.ep-4  { width: 2px; height: 2px; left: 32%; bottom: -10px; animation-duration: 25s; animation-delay: 7s; }
.ep-5  { width: 3px; height: 3px; left: 40%; bottom: -10px; animation-duration: 21s; animation-delay: 4s; }
.ep-6  { width: 2px; height: 2px; left: 48%; bottom: -10px; animation-duration: 30s; animation-delay: 9s; }
.ep-7  { width: 4px; height: 4px; left: 55%; bottom: -10px; animation-duration: 20s; animation-delay: 2s; }
.ep-8  { width: 3px; height: 3px; left: 63%; bottom: -10px; animation-duration: 24s; animation-delay: 5s; }
.ep-9  { width: 2px; height: 2px; left: 71%; bottom: -10px; animation-duration: 27s; animation-delay: 8s; }
.ep-10 { width: 3px; height: 3px; left: 79%; bottom: -10px; animation-duration: 23s; animation-delay: 3.5s; }
.ep-11 { width: 4px; height: 4px; left: 86%; bottom: -10px; animation-duration: 18s; animation-delay: 6s; }
.ep-12 { width: 2px; height: 2px; left: 93%; bottom: -10px; animation-duration: 26s; animation-delay: 11s; }
.ep-13 { width: 3px; height: 3px; left: 12%; bottom: -10px; animation-duration: 24s; animation-delay: 12s; }
.ep-14 { width: 2px; height: 2px; left: 37%; bottom: -10px; animation-duration: 29s; animation-delay: 14s; }
.ep-15 { width: 3px; height: 3px; left: 68%; bottom: -10px; animation-duration: 22s; animation-delay: 10s; }
.ep-16 { width: 2px; height: 2px; left: 83%; bottom: -10px; animation-duration: 25s; animation-delay: 15s; }

@keyframes endParticleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.75;
  }
  50% {
    transform: translateY(-50vh) translateX(15px);
    opacity: 0.9;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-105vh) translateX(-10px);
    opacity: 0;
  }
}

/* Layer 5: Dark Obsidian Readability Vignette Overlay */
.end-layer-vignette {
  background: 
    radial-gradient(ellipse at 50% 45%, rgba(4, 2, 8, 0.45) 0%, rgba(3, 1, 7, 0.78) 75%, rgba(2, 0, 5, 0.92) 100%),
    linear-gradient(to bottom, rgba(4, 1, 8, 0.35) 0%, rgba(3, 1, 6, 0.60) 100%);
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .end-layer-image,
  .end-layer-celestial,
  .end-particle {
    animation: none !important;
    transform: none !important;
  }
}

/* Mobile optimization */
@media (max-width: 640px) {
  .end-particle:nth-child(even) {
    display: none;
  }
  .end-layer-image {
    animation: none !important;
  }
}

/* Frosted Glass Panels & Containers (End Dimension Subtle Visibility) */
.liquid-glass-canvas {
  background: rgba(10, 8, 18, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ender-card {
  background: rgba(12, 10, 20, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.ender-card-interactive {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ender-card-interactive:hover {
  background: rgba(22, 18, 36, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ender-glass {
  background: rgba(14, 12, 24, 0.70);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Clean Monochrome Navigation Pills */
.glass-nav-pill-active {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border: 1px solid #ffffff !important;
}

/* Active tab style for sidebar tabs */
.nav-tab-btn.active,
.nav-tab-btn[data-active="true"] {
  background: #141414 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-left: 3px solid #ffffff !important;
}

.nav-tab-btn.active i,
.nav-tab-btn[data-active="true"] i {
  color: #ffffff !important;
}

/* Black & White High-Contrast Buttons */
.btn-primary-orchid,
.btn-primary-bw {
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-orchid:hover,
.btn-primary-bw:hover {
  background: #e4e4e7;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-primary-orchid:active,
.btn-primary-bw:active {
  transform: scale(0.98);
}

.btn-secondary-glass,
.btn-secondary-bw {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.20);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-glass:hover,
.btn-secondary-bw:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary-glass:active,
.btn-secondary-bw:active {
  transform: scale(0.98);
}

.btn-danger-glass,
.btn-danger-bw {
  background: transparent;
  color: #e4e4e7;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.18s ease;
}

.btn-danger-glass:hover,
.btn-danger-bw:hover {
  background: #1c1c1c;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Input Fields & Selects */
.glass-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input:not([type="checkbox"]):not([type="range"]):not([type="color"]),
select,
textarea {
  background-color: #09090b !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

input:not([type="checkbox"]):not([type="range"]):not([type="color"])::placeholder,
textarea::placeholder {
  color: #71717a !important;
}

input:not([type="checkbox"]):not([type="range"]):not([type="color"]):hover,
select:hover,
textarea:hover {
  background-color: #0d0d10 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

input:not([type="checkbox"]):not([type="range"]):not([type="color"]):focus,
select:focus,
textarea:focus {
  background-color: #0d0d10 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 1px #ffffff !important;
  outline: none !important;
}

/* Monochrome Toggle Switches */
.switch-input:checked + .switch-track {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(1.25rem) translateY(0.125rem) !important;
  background-color: #000000 !important;
}

.switch-input:checked + .switch-track.w-9 .switch-thumb {
  transform: translateX(1.05rem) translateY(0.125rem) !important;
}

.switch-track .switch-thumb {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #a1a1aa;
}

.variable-pill {
  transition: all 0.18s ease;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d4d4d8;
}

.variable-pill:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

/* Custom Clean Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.18s ease-out forwards;
}

/* Discord Chat Simulator (Monochrome Frame with Discord Embed Content) */
.discord-preview-box {
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.discord-embed-card {
  background-color: #121212;
  border-left: 4px solid #ffffff;
}

/* ==========================================================================
   HOMEPAGE UI/UX PRO MAX DESIGN UTILITIES
   ========================================================================== */
.hero-glow-ambient {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 95vw;
  height: 480px;
  background: radial-gradient(ellipse at 50% 30%, rgba(168, 85, 247, 0.18) 0%, rgba(126, 34, 206, 0.08) 45%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  filter: blur(40px);
}

.telemetry-card {
  background: rgba(10, 8, 20, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.telemetry-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(18, 14, 32, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bento-card {
  background: rgba(12, 10, 24, 0.75);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  background: rgba(20, 16, 38, 0.88);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.discord-mockup-window {
  background: rgba(14, 11, 24, 0.90);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.preview-tab-btn {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-tab-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.preview-tab-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
