/* ==========================================================================
   Prisma Ghost Client — Ultra Modern Gaming Styles & GUI Replica
   ========================================================================== */

:root {
  --primary: #9333ea;
  --primary-glow: rgba(147, 51, 234, 0.45);
  --secondary: #ec4899;
  --accent: #6366f1;
  --bg-dark: #07070b;
  --card-bg: rgba(15, 15, 23, 0.75);
  --border-glow: rgba(168, 85, 247, 0.25);
}

/* Base smoothing */
html {
  scroll-behavior: smooth;
  background-color: #07070b;
}

body {
  background-color: #07070b;
  color: #e2e8f0;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #07070b;
}

::-webkit-scrollbar-thumb {
  background: #1e1e2d;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

/* Text Glow Effects */
.text-glow {
  text-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 0 0 50px rgba(236, 72, 153, 0.3);
}

.text-glow-sm {
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 40%, #c084fc 70%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated Neon Border & Glowing Glass */
.glass-panel {
  background: rgba(16, 16, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-panel-interactive {
  background: rgba(15, 15, 24, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(147, 51, 234, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.glowing-border-card {
  position: relative;
  border-radius: 1.25rem;
  background: rgba(15, 15, 24, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glowing-border-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), transparent 60%, rgba(236, 72, 153, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.glowing-border-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(147, 51, 234, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
}

.glowing-border-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   EXACT PRISMA CLIENT IN-GAME GUI STYLES (from Minecraft Gameplay)
   ========================================================================== */

/* Outer Purple Corner Brackets ⌜ ⌝ ⌞ ⌟ */
.prisma-frame-wrapper {
  position: relative;
  padding: 12px;
}

.prisma-bracket-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-top: 2.5px solid #a855f7;
  border-left: 2.5px solid #a855f7;
}

.prisma-bracket-tr {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-top: 2.5px solid #a855f7;
  border-right: 2.5px solid #a855f7;
}

.prisma-bracket-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-bottom: 2.5px solid #a855f7;
  border-left: 2.5px solid #a855f7;
}

.prisma-bracket-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-bottom: 2.5px solid #a855f7;
  border-right: 2.5px solid #a855f7;
}

/* In-Game Top Left HUD Name Widget */
.prisma-hud-widget {
  background: rgba(15, 15, 24, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
}

/* In-Game Main Window */
.prisma-window {
  background: #0e0e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(138, 43, 226, 0.2);
}

/* Sidebar Tab Buttons */
.prisma-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #94a3b8;
  transition: all 0.2s ease;
  text-align: left;
}

.prisma-tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
}

.prisma-tab-btn.active {
  background: linear-gradient(90deg, #8a2be2 0%, #6b21a8 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.prisma-tab-btn.active .tab-subtext {
  color: #e9d5ff;
}

/* Prisma In-Game Module Card */
.prisma-card {
  background: #141422;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.prisma-card:hover {
  background: #181829;
  border-color: rgba(168, 85, 247, 0.3);
}

.prisma-card.active-module {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.08);
}

/* In-Game Toggle Switch (exact white knob with pill) */
.prisma-switch {
  position: relative;
  width: 38px;
  height: 20px;
  background-color: #1e1e2f;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.prisma-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #64748b;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prisma-switch.active {
  background-color: #8a2be2;
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.prisma-switch.active::after {
  left: 20px;
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

/* Scrollable Container for Modules */
.prisma-module-scroll {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

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

.prisma-module-scroll::-webkit-scrollbar-thumb {
  background: #2a2a40;
  border-radius: 9999px;
}

.prisma-module-scroll::-webkit-scrollbar-thumb:hover {
  background: #8a2be2;
}

/* Pulse animation for live status badge */
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.status-dot-pulse {
  animation: live-pulse 2s infinite;
}

/* Floating animation */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float-badge {
  animation: floatBadge 4s ease-in-out infinite;
}

/* Equalizer Visualizer Bars */
@keyframes eqBar {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.eq-bar:nth-child(1) { animation: eqBar 0.8s ease-in-out infinite; }
.eq-bar:nth-child(2) { animation: eqBar 0.6s ease-in-out infinite 0.2s; }
.eq-bar:nth-child(3) { animation: eqBar 0.9s ease-in-out infinite 0.4s; }
.eq-bar:nth-child(4) { animation: eqBar 0.5s ease-in-out infinite 0.1s; }

/* Grid overlay background */
.cyber-grid {
  background-size: 50px 50px;
  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);
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}
