/* ============================================================
   SASSQUAD OFFICIAL WEBSITE STYLES
   ============================================================ */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);
  
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base resets & typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.15), transparent 50%),
              radial-gradient(circle at 10% 40%, rgba(139, 92, 246, 0.08), transparent 40%),
              radial-gradient(circle at 90% 70%, rgba(6, 182, 212, 0.08), transparent 40%),
              #07090e;
  background-attachment: fixed;
}

/* Background grid effect */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.2);
}

/* Glow effects */
.glow-text {
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
}

.glow-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glow-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glow-btn:hover::before {
  opacity: 1;
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Timeline Custom Styles */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 3px;
  background: linear-gradient(to bottom, #8b5cf6, #06b6d4, #10b981, #f59e0b);
  border-radius: 9999px;
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-dot {
  position: absolute;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0f172a;
  border: 4px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 10;
}

/* Rarity border styles for relics */
.rarity-mythic {
  border: 1px solid rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 25px -5px rgba(244, 63, 94, 0.3);
}

.rarity-legendary {
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 25px -5px rgba(245, 158, 11, 0.3);
}

.rarity-epic {
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 25px -5px rgba(168, 85, 247, 0.3);
}

.rarity-rare {
  border: 1px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.3);
}

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

::-webkit-scrollbar-track {
  background: #07090e;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Party Mode Easter Egg */
body.party-mode {
  animation: partyHue 8s linear infinite;
}

@keyframes partyHue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

#toast.show {
  transform: translateY(0);
}

/* Lightbox Modal */
.modal-backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
}
