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

:root {
  --primary: #8a2be2;
  --primary-glow: rgba(138, 43, 226, 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);
  --theme-accent: #8a2be2;
  --theme-border: #8a2be2;
  --theme-tab-bg: linear-gradient(90deg, #8a2be2 0%, #6b21a8 100%);
  --theme-tab-text: #ffffff;
  --theme-text-accent: #c084fc;
}

/* ==========================================================================
   EXACT 10 GUI THEMES (from Minecraft in-game screenshots)
   ========================================================================== */

/* 1. Prisma (Default Viola) */
.prisma-window.theme-prisma {
  --theme-accent: #8a2be2;
  --theme-border: #8a2be2;
  --theme-tab-bg: linear-gradient(90deg, #8a2be2 0%, #6b21a8 100%);
  --theme-tab-text: #ffffff;
  --theme-text-accent: #c084fc;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(138, 43, 226, 0.25);
}

/* 2. Sangue (Rosso Sangue) */
.prisma-window.theme-sangue {
  --theme-accent: #dc2626;
  --theme-border: #dc2626;
  --theme-tab-bg: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
  --theme-tab-text: #ffffff;
  --theme-text-accent: #f87171;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(220, 38, 38, 0.25);
}

/* 3. Vetro (Vetro Smerigliato) */
.prisma-window.theme-vetro {
  --theme-accent: #06b6d4;
  --theme-border: #06b6d4;
  --theme-tab-bg: linear-gradient(90deg, #06b6d4 0%, #0e7490 100%);
  --theme-tab-text: #ffffff;
  --theme-text-accent: #67e8f9;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(6, 182, 212, 0.25);
}

/* 4. Ciano Lucido */
.prisma-window.theme-ciano {
  --theme-accent: #00f0ff;
  --theme-border: #00f0ff;
  --theme-tab-bg: linear-gradient(90deg, #00f0ff 0%, #0284c7 100%);
  --theme-tab-text: #ffffff;
  --theme-text-accent: #7dd3fc;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(0, 240, 255, 0.25);
}

/* 5. Nero Opaco */
.prisma-window.theme-nero-opaco {
  --theme-accent: #64748b;
  --theme-border: #475569;
  --theme-tab-bg: linear-gradient(90deg, #475569 0%, #334155 100%);
  --theme-tab-text: #ffffff;
  --theme-text-accent: #cbd5e1;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(100, 116, 139, 0.2);
}

/* 6. Nero Lucido (White / Silver Carbon) */
.prisma-window.theme-nero-lucido {
  --theme-accent: #ffffff;
  --theme-border: #ffffff;
  --theme-tab-bg: linear-gradient(90deg, #f1f5f9 0%, #cbd5e1 100%);
  --theme-tab-text: #0f172a;
  --theme-text-accent: #ffffff;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(255, 255, 255, 0.2);
}

/* 7. Oro (Nero caldo e oro) */
.prisma-window.theme-oro {
  --theme-accent: #eab308;
  --theme-border: #eab308;
  --theme-tab-bg: linear-gradient(90deg, #eab308 0%, #b45309 100%);
  --theme-tab-text: #000000;
  --theme-text-accent: #fde047;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(234, 179, 8, 0.25);
}

/* 8. Arcobaleno (Tutti i colori) */
.prisma-window.theme-arcobaleno {
  --theme-accent: #ec4899;
  --theme-border: #ec4899;
  --theme-tab-bg: linear-gradient(90deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%);
  --theme-tab-text: #ffffff;
  --theme-text-accent: #f472b6;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(236, 72, 153, 0.3);
}

/* 9. Cyberpunk (Blu notte e giallo) */
.prisma-window.theme-cyberpunk {
  --theme-accent: #facc15;
  --theme-border: #facc15;
  --theme-tab-bg: linear-gradient(90deg, #facc15 0%, #ca8a04 100%);
  --theme-tab-text: #000000;
  --theme-text-accent: #fef08a;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(250, 204, 21, 0.25);
}

/* 10. Matrix (Verde terminale) */
.prisma-window.theme-matrix {
  --theme-accent: #22c55e;
  --theme-border: #22c55e;
  --theme-tab-bg: linear-gradient(90deg, #22c55e 0%, #15803d 100%);
  --theme-tab-text: #ffffff;
  --theme-text-accent: #86efac;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 35px rgba(34, 197, 94, 0.25);
}

/* Dynamic corner brackets border colors */
.prisma-bracket-tl,
.prisma-bracket-tr,
.prisma-bracket-bl,
.prisma-bracket-br {
  border-color: var(--theme-border) !important;
  transition: border-color 0.3s ease;
}

/* 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: var(--theme-accent);
  box-shadow: 0 0 10px var(--theme-accent);
}

/* 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;
}

/* Glass Panels */
.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(14, 14, 22, 0.94);
  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.85), 0 0 35px rgba(138, 43, 226, 0.25), 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;
}

/* ==========================================================================
   PRISMA IN-GAME GUI WRAPPERS & CORNERS
   ========================================================================== */

.prisma-frame-wrapper {
  position: relative;
  padding: 8px;
}

.prisma-bracket-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-top: 2.5px solid var(--theme-border);
  border-left: 2.5px solid var(--theme-border);
}

.prisma-bracket-tr {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-top: 2.5px solid var(--theme-border);
  border-right: 2.5px solid var(--theme-border);
}

.prisma-bracket-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-bottom: 2.5px solid var(--theme-border);
  border-left: 2.5px solid var(--theme-border);
}

.prisma-bracket-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-bottom: 2.5px solid var(--theme-border);
  border-right: 2.5px solid var(--theme-border);
}

/* Main Window */
.prisma-window {
  background: #0d0d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: box-shadow 0.3s ease;
}

/* 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 cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

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

.prisma-tab-btn.active {
  background: var(--theme-tab-bg);
  color: var(--theme-tab-text);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.prisma-tab-btn.active .tab-subtext {
  color: rgba(255, 255, 255, 0.8);
}

/* Prisma In-Game Module Card */
.prisma-card {
  background: #131320;
  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;
  min-height: 64px;
}

.prisma-card:hover {
  background: #181829;
  border-color: rgba(255, 255, 255, 0.15);
}

.prisma-card.active-module {
  border-color: var(--theme-accent);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.3);
}

/* In-Game Toggle Switch */
.prisma-switch {
  position: relative;
  width: 38px;
  height: 20px;
  background-color: #1c1c2e;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  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: var(--theme-accent);
  border-color: var(--theme-accent);
  box-shadow: 0 0 12px var(--theme-accent);
}

.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: 395px;
  overflow-y: auto;
  padding-right: 6px;
}

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

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

.prisma-module-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent);
}

/* Theme Cards in GUI Tab */
.prisma-theme-card {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.prisma-theme-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.prisma-theme-card.active-theme {
  border-color: var(--theme-accent) !important;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* 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%);
}

/* Video Indicator Badge */
.video-indicator {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prisma-card:hover .video-indicator {
  background-color: var(--theme-accent);
  color: #ffffff;
  border-color: var(--theme-accent);
  box-shadow: 0 0 10px var(--theme-accent);
  transform: scale(1.05);
}

/* Modal FadeIn Animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-fadeIn {
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Feedback wall — sort toggle */
.wall-sort {
  color: #9ca3af;
}
.wall-sort:hover {
  color: #fff;
}
.wall-sort.active {
  background: rgba(147, 51, 234, 0.35);
  color: #fff;
}
