@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --primary:          #0d9488;
  --primary-light:    #14b8a6;
  --primary-dark:     #0f766e;
  --primary-rgb:      13, 148, 136;
  --accent:           #f59e0b;
  --accent-light:     #fbbf24;

  /* Backgrounds */
  --bg-main:          #f8fafc;
  --bg-card:          #ffffff;
  --bg-hover:         #f1f5f9;
  --bg-section:       #f1f5f9;
  --bg-primary-tint:  #f0fdfa;

  /* Text */
  --text-primary:     #0f172a;
  --text-secondary:   #475569;
  --text-muted:       #94a3b8;

  /* Borders */
  --border:           #e2e8f0;
  --border-hover:     #cbd5e1;

  /* Shadows */
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:        0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:        0 8px 30px rgba(0,0,0,0.12);
  --primary-glow-sm:  0 2px 8px rgba(13,148,136,0.30);
  --primary-glow-md:  0 4px 14px rgba(13,148,136,0.35);
  --primary-glow-lg:  0 6px 22px rgba(13,148,136,0.45);

  /* Border radii */
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        20px;

  /* Layout */
  --player-h:         80px;

  /* Semantic accents */
  --green-bg:         #dcfce7;
  --green-text:       #16a34a;
  --gold-bg:          #fef3c7;
  --gold-text:        #d97706;
  --danger-bg:        #fef2f2;
  --danger-border:    #fca5a5;
  --danger-text:      #dc2626;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Skeleton loader ─────────────────────────────────────────────────────── */
.skel {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-section) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Quick-list row skeletons (index page) */
.skel-row     { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.skel-avatar  { width: 28px; height: 28px; border-radius: var(--radius-sm); flex-shrink: 0; }
.skel-content { flex: 1; }
.skel-title   { height: 14px; width: 65%; margin-bottom: 8px; }
.skel-sub     { height: 10px; width: 40%; }

/* Playlist card skeletons (index page) */
.skel-banner   { height: 100px; border-radius: 0; }
.skel-pl-title { height: 16px; width: 60%; margin-bottom: 10px; }
.skel-pl-desc  { height: 12px; width: 85%; margin-bottom: 6px; }
.skel-pl-badge { height: 26px; width: 70px; border-radius: 100px; margin-top: 12px; }

/* Track card skeletons (playlist page) */
.skel-track-num   { width: 40px; height: 40px; flex-shrink: 0; }
.skel-track-body  { flex: 1; }
.skel-track-title { height: 15px; margin-bottom: 8px; }
.skel-track-sub   { height: 12px; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
