/**
 * DIZI Cyberpunk v2 - Custom Effects & Variables
 * Spice Company Design System - Green Theme
 * 
 * Variables CSS, glassmorphism, glow effects, 3D transforms
 * @package DIZI_Cyberpunk
 * @version 2.0.0
 */

/* ============================================
   CSS VARIABLES - SPICE GREEN THEME
   ============================================ */
:root {
  /* Base Colors */
  --background: 150 20% 6%;
  --foreground: 140 30% 90%;

  /* Card & Popover */
  --card: 150 15% 10%;
  --card-foreground: 140 30% 90%;
  --popover: 150 15% 8%;
  --popover-foreground: 140 30% 90%;

  /* Semantic Colors */
  --primary: 145 70% 40%;
  --primary-foreground: 150 20% 98%;
  --secondary: 80 60% 50%;
  --secondary-foreground: 150 20% 6%;
  --muted: 150 15% 18%;
  --muted-foreground: 140 20% 60%;
  --accent: 165 70% 35%;
  --accent-foreground: 140 30% 95%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 150 20% 6%;

  /* Borders & Inputs */
  --border: 150 15% 20%;
  --input: 150 15% 15%;
  --ring: 145 70% 40%;
  --radius: 0.75rem;

  /* Spice Specific Colors */
  --spice-brown: 150 20% 6%;
  --spice-gold: 80 60% 50%;
  --spice-orange: 145 70% 40%;
  --spice-red: 165 70% 35%;
  --spice-cream: 140 30% 90%;
  --spice-warm: 150 40% 25%;

  /* Gradients */
  --gradient-spice: linear-gradient(135deg, hsl(145, 70%, 40%) 0%, hsl(165, 70%, 35%) 100%);
  --gradient-gold: linear-gradient(135deg, hsl(80, 60%, 50%) 0%, hsl(145, 70%, 40%) 100%);
  --gradient-warm: linear-gradient(180deg, hsla(150, 20%, 6%, 0.8) 0%, hsla(150, 20%, 6%, 0.95) 100%);

  /* Shadows & Glows */
  --shadow-spice: 0 10px 40px hsla(145, 70%, 40%, 0.3);
  --shadow-gold: 0 10px 40px hsla(80, 60%, 50%, 0.3);
  --shadow-warm: 0 20px 60px hsla(150, 20%, 6%, 0.8);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  border-color: hsl(var(--border));
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: hsl(var(--secondary));
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--spice-brown));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--spice-orange));
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--spice-gold));
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--spice-orange)) hsl(var(--spice-brown));
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */
.glass-card {
  background: hsla(150, 15%, 10%, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsla(145, 70%, 40%, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-spice);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: hsla(150, 15%, 10%, 0.6);
  border-color: hsla(145, 70%, 40%, 0.4);
  box-shadow: 0 0 30px hsla(145, 70%, 40%, 0.5);
  transform: translateY(-4px);
}

.glass-header {
  background: hsla(150, 20%, 6%, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsla(145, 70%, 40%, 0.15);
}

.glass-sidebar {
  background: hsla(150, 20%, 6%, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid hsla(145, 70%, 40%, 0.2);
}

/* ============================================
   GLOW & NEON EFFECTS
   ============================================ */
.glow-spice {
  box-shadow: 
    0 0 20px hsla(145, 70%, 40%, 0.3),
    0 0 40px hsla(145, 70%, 40%, 0.2),
    inset 0 0 20px hsla(145, 70%, 40%, 0.05);
}

.glow-gold {
  box-shadow: 
    0 0 20px hsla(80, 60%, 50%, 0.3),
    0 0 40px hsla(80, 60%, 50%, 0.2),
    inset 0 0 20px hsla(80, 60%, 50%, 0.05);
}

.glow-accent {
  box-shadow: 
    0 0 20px hsla(165, 70%, 35%, 0.3),
    0 0 40px hsla(165, 70%, 35%, 0.2);
}

.neon-border {
  border: 2px solid hsl(var(--primary));
  box-shadow: 
    0 0 10px hsla(145, 70%, 40%, 0.5),
    inset 0 0 10px hsla(145, 70%, 40%, 0.2);
}

.neon-text {
  color: hsl(var(--primary));
  text-shadow: 
    0 0 10px hsla(145, 70%, 40%, 0.8),
    0 0 20px hsla(145, 70%, 40%, 0.6),
    0 0 30px hsla(145, 70%, 40%, 0.4);
}

/* ============================================
   GRADIENT TEXT & BACKGROUNDS
   ============================================ */
.text-gradient-spice {
  background: linear-gradient(
    135deg, 
    hsl(80, 60%, 50%) 0%, 
    hsl(145, 70%, 40%) 50%, 
    hsl(165, 70%, 35%) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.bg-gradient-spice {
  background: var(--gradient-spice);
}

.bg-gradient-gold {
  background: var(--gradient-gold);
}

.bg-gradient-warm {
  background: var(--gradient-warm);
}

/* ============================================
   3D TRANSFORMS & PERSPECTIVE
   ============================================ */
.perspective-1000 {
  perspective: 1000px;
}

.preserve-3d {
  transform-style: preserve-3d;
}

.backface-hidden {
  backface-visibility: hidden;
}

.rotate-y-0 {
  transform: rotateY(0deg);
}

.rotate-y-12 {
  transform: rotateY(12deg);
}

.rotate-x-12 {
  transform: rotateX(12deg);
}

.translate-z-20 {
  transform: translateZ(20px);
}

/* 3D Card Effect */
.card-3d {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateZ(20px);
}

.hover-3d:hover {
  transform: rotateY(-5deg) rotateX(5deg) translateZ(30px);
}

/* ============================================
   LAYOUT - FIXED DASHBOARD
   ============================================ */
.site-container {
  max-width: 1600px;
  max-height: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.sidebar-fixed {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  height: 100vh;
  z-index: 100;
}

.header-fixed {
  position: fixed;
  top: 0;
  left: 320px;
  right: 0;
  height: 80px;
  z-index: 90;
}

.main-content {
  margin-left: 320px;
  margin-top: 80px;
  padding: 2rem;
  min-height: calc(100vh - 80px);
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-spice);
}

.btn-primary:hover {
  background: hsl(145, 70%, 35%);
  box-shadow: 0 0 30px hsla(145, 70%, 40%, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: hsl(80, 60%, 45%);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
  padding: 0.75rem 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-ghost:hover {
  background: hsla(145, 70%, 40%, 0.1);
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.float-animation {
  animation: float 4s ease-in-out infinite;
}

.pulse-glow-animation {
  animation: pulse-glow 3s ease-in-out infinite;
}

.shimmer-animation {
  animation: shimmer 2s linear infinite;
}

.transition-smooth {
  transition: var(--transition-smooth);
}

.transition-bounce {
  transition: var(--transition-bounce);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
  .sidebar-fixed {
    width: 280px;
  }

  .header-fixed {
    left: 280px;
  }

  .main-content {
    margin-left: 280px;
  }
}

@media (max-width: 768px) {
  .sidebar-fixed {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar-fixed.mobile-open {
    transform: translateX(0);
  }

  .header-fixed {
    left: 0;
  }

  .main-content {
    margin-left: 0;
  }

  .site-container {
    max-width: 100%;
    max-height: none;
  }
}