/* ============================================================
   WatchLane — tokens.css
   Fondasi: CSS Variables, Reset, Animasi, Utility Classes
   ============================================================ */

/* 1. Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Inter:wght@300;400;500&family=Space+Grotesk:wght@400;500&family=Rajdhani:wght@500;700&family=Nunito:wght@400;700;800&display=swap');

/* 2. CSS Variables — Design Tokens */
:root {
  /* Background */
  --bg:          #08090E;
  --surface-1:   #0F1018;
  --surface-2:   #16181F;
  --surface-3:   #1E2029;

  /* Border */
  --border:      rgba(255, 255, 255, 0.06);
  --border-hi:   rgba(255, 255, 255, 0.10);

  /* Aksen Utama — Red Neon */
  --red:         #FF1744;
  --red-glow:    rgba(255, 23, 68, 0.15);
  --red-dim:     rgba(255, 23, 68, 0.08);
  --red-border:  rgba(255, 23, 68, 0.25);
  --red-shadow:  0 0 12px rgba(255, 23, 68, 0.35);
  --red-shadow-lg: 0 0 32px rgba(255, 23, 68, 0.25);

  /* Text */
  --text-1:      #FFFFFF;
  --text-2:      #A0A3B1;
  --text-3:      #454857;

  /* Status */
  --green:       #22C55E;
  --yellow:      #F59E0B;
  --blue:        #3B82F6;
  --grey:        #6B7280;

  /* Anime Theme Override */
  --anime-accent:  #C084FC;
  --anime-accent2: #FF6B9D;
  --anime-bg:      #070711;

  /* Kids Theme Override */
  --kids-bg:       #FFF8F0;
  --kids-accent:   #FF6B6B;
  --kids-accent2:  #FFD93D;
  --kids-accent3:  #6BCB77;
  --kids-text:     #1A1A2E;

  /* Spacing */
  --nav-h:       56px;
  --sidebar-w:   240px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Shadow */
  --shadow-sm:  0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.8);
}

/* 3. CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* 4. Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--surface-1);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hi);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

/* 5. Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 6. Utility Classes */
.gone {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-red {
  color: var(--red);
}

.text-dim {
  color: var(--text-2);
}

.text-muted {
  color: var(--text-3);
}

.glow-red {
  box-shadow: var(--red-shadow);
}

.animate-fade {
  animation: fadeIn 0.3s ease;
}

.animate-up {
  animation: slideUp 0.4s ease;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
