/* css/themes.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Quicksand:wght@500;700;800&display=swap');

* {
  font-family: 'Cairo', 'Quicksand', sans-serif;
}

/* =========================================
   1. ثيم البنات (Kawaii Pastel Pink & Lavender) 🌸
   ========================================= */
:root,
[data-theme="girls"] {
  --bg-main: #fff0f3;
  --bg-gradient: linear-gradient(135deg, #fff0f3 0%, #f7edf9 50%, #eefbf4 100%);
  --bg-header: rgba(255, 255, 255, 0.88);
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-soft: #fff5f8;
  --text-main: #1e293b;
  --text-muted: #be185d;
  --border-color: #fbcfe8;
  --border-purple: #e9d5ff;
  --border-emerald: #bbf7d0;
  --accent-primary: #ff4d6d;
  --accent-secondary: #c084fc;
  --accent-gradient: linear-gradient(135deg, #ff758f 0%, #ff4d6d 50%, #a855f7 100%);
  --banner-gradient: linear-gradient(90deg, #ec4899 0%, #f43f5e 50%, #a855f7 100%);
  --badge-bg: rgba(236, 72, 153, 0.12);
  --quote-color: rgba(236, 72, 153, 0.06);
  --shadow-card: 0 12px 30px -10px rgba(244, 114, 182, 0.22);
  --tab-active-bg: #ffffff;
  --tab-active-text: #db2777;
  --tab-active-border: #fbcfe8;
}

/* =========================================
   2. ثيم الدراري (Sleek Cyber Navy & Electric Cyan) ⚡
   ========================================= */
[data-theme="boys"] {
  --bg-main: #090d16;
  --bg-gradient: linear-gradient(135deg, #060b19 0%, #0b132b 50%, #091526 100%);
  --bg-header: rgba(11, 19, 43, 0.88);
  --bg-card: rgba(15, 23, 42, 0.92);
  --bg-card-soft: rgba(30, 41, 59, 0.78);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(56, 189, 248, 0.25);
  --border-purple: rgba(99, 102, 241, 0.3);
  --border-emerald: rgba(16, 185, 129, 0.3);
  --accent-primary: #0ea5e9;
  --accent-secondary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #4f46e5 100%);
  --banner-gradient: linear-gradient(90deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  --badge-bg: rgba(6, 182, 212, 0.15);
  --quote-color: rgba(56, 189, 248, 0.05);
  --shadow-card: 0 14px 32px -10px rgba(2, 132, 199, 0.25);
  --tab-active-bg: rgba(15, 23, 42, 0.98);
  --tab-active-text: #38bdf8;
  --tab-active-border: rgba(56, 189, 248, 0.35);
}

body {
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* خلفية العبارات التحفيزية في صفحة الدخول (index.html) */
.motivational-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 2rem;
  user-select: none;
}

.bg-quote-item {
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--quote-color);
  white-space: nowrap;
  transform: rotate(-4deg);
}

/* الهيدر والكروت */
.themed-header {
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--border-color);
}

.themed-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.themed-card-purple {
  background: var(--bg-card);
  border: 2px solid var(--border-purple);
  box-shadow: var(--shadow-card);
}

.themed-card-emerald {
  background: var(--bg-card);
  border: 2px solid var(--border-emerald);
  box-shadow: var(--shadow-card);
}

.themed-card-soft {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-color);
}

.btn-accent {
  background: var(--accent-gradient);
  color: #ffffff !important;
  font-weight: 800;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn-accent:hover {
  opacity: 0.93;
  transform: translateY(-1px);
}

.announce-banner {
  background: var(--banner-gradient);
}

/* التبويبات */
.nav-tab-active {
  background: var(--tab-active-bg);
  color: var(--tab-active-text);
  border-top: 2px solid var(--tab-active-border);
  border-left: 2px solid var(--tab-active-border);
  border-right: 2px solid var(--tab-active-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.nav-tab-inactive {
  color: var(--text-muted);
  opacity: 0.8;
}

.nav-tab-inactive:hover {
  opacity: 1;
}

/* أيقونات تزيينية لثيم البنات فقط */
.girls-only-decor {
  display: block;
}
[data-theme="boys"] .girls-only-decor {
  display: none !important;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

.floating-decor {
  animation: floatSlow 4.5s ease-in-out infinite;
}
.floating-decor-delayed {
  animation: floatSlow 5.5s ease-in-out 1.5s infinite;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 99px;
}