/* ============================================
   WOZZMAC - Custom Styles
   ============================================ */

/* ---------- Theme Variables ---------- */
:root {
  /* Light mode (default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
}

.dark {
  --bg-primary: #0d0d12;
  --bg-secondary: #18181f;
  --bg-card: rgba(24, 24, 31, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #b0b0c9;
  --text-muted: #8585ab;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --scrollbar-track: #0d0d12;
  --scrollbar-thumb: #434362;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #525278; }

/* ---------- Selection ---------- */
::selection { background: rgba(51, 129, 255, 0.3); color: white; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #3381ff 0%, #8ec4ff 50%, #58a4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Glass Effect ---------- */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dark .glass {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

/* ---------- Glow Effects ---------- */
.glow-blue {
  box-shadow: 0 0 40px rgba(51, 129, 255, 0.15), 0 0 80px rgba(51, 129, 255, 0.05);
}

/* ---------- Grid Background ---------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(51, 129, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 129, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- Dot Pattern ---------- */
.dot-pattern {
  background-image: radial-gradient(rgba(51, 129, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Input Focus ---------- */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 129, 255, 0.3);
}

/* ---------- Card Hover ---------- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ---------- Gradient Border Animation ---------- */
@keyframes border-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #3381ff, #8ec4ff, #3381ff, #58a4ff);
  background-size: 300% 300%;
  animation: border-rotate 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Theme Toggle Button ---------- */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
.theme-toggle:hover {
  background: var(--bg-secondary);
}

/* ---------- Logo Placeholder ---------- */
.logo-placeholder {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3381ff, #144ae1);
  color: white;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.025em;
}

/* ---------- Noscript Fallback ---------- */
noscript + .reveal {
  opacity: 1;
  transform: none;
}
