/* assets/css/custom.css - التنسيقات العصرية والألوان التفاعلية المرحة لمنصة رواء البناتية */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Serif+Arabic:wght@400;600;700;800;900&family=Baloo+Bhaijaan+2:wght@500;600;700;800&family=Almarai:wght@400;700;800&family=Readex+Pro:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-arabic: 'Readex Pro', 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-editorial-post: 'El Messiri', 'Amiri', 'Noto Serif Arabic', serif;
  --font-display-smooth: 'El Messiri', 'Amiri', 'Noto Serif Arabic', serif;
  --font-english: 'Outfit', sans-serif;
  
  /* ألوان رواء البناتية المرحة (Gamified Candy Palette) */
  --color-candy-pink: #F43F5E;
  --color-candy-fuchsia: #EC4899;
  --color-candy-purple: #8B5CF6;
  --color-candy-violet: #7C3AED;
  --color-candy-mint: #14B8A6;
  --color-candy-cyan: #06B6D4;
  --color-candy-yellow: #FBBF24;
  --color-candy-amber: #F59E0B;
}

body {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  background: radial-gradient(circle at 10% 20%, #FFF1F2 0%, #FAF5FF 40%, #F0FDFA 80%, #FFFBEB 100%);
  background-attachment: fixed;
  color: #1E1B4B;
  -webkit-font-smoothing: antialiased;
}

/* خط العنوان التحريري الأنيق (خط المسيري - El Messiri) */
.hero-title-editorial,
.hero-title-smooth {
  font-family: var(--font-editorial-post) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
  line-height: 1.4 !important;
  text-rendering: optimizeLegibility;
}

/* شريط ألوان صفحات كتاب رواء الأربعة الرسمي المعتمد */
.reewaa-ribbon-bar {
  height: 6px;
  background: linear-gradient(to left, 
    #3BB8C8 0%, #3BB8C8 25%, 
    #74B756 25%, #74B756 50%, 
    #E7992D 50%, #E7992D 75%, 
    #EE6D56 75%, #EE6D56 100%
  );
  box-shadow: 0 2px 10px rgba(59, 184, 200, 0.3);
}

/* أزرار الألعاب ثلاثية الأبعاد (3D Game Buttons - Duolingo Style) */
.btn-game-pink {
  background-color: #EC4899;
  border-bottom: 4px solid #BE185D;
  transition: all 0.1s ease;
}
.btn-game-pink:hover {
  background-color: #F43F5E;
  transform: translateY(-2px);
}
.btn-game-pink:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

.btn-game-purple {
  background-color: #8B5CF6;
  border-bottom: 4px solid #6D28D9;
  transition: all 0.1s ease;
}
.btn-game-purple:hover {
  background-color: #9333EA;
  transform: translateY(-2px);
}
.btn-game-purple:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

.btn-game-amber {
  background-color: #F59E0B;
  border-bottom: 4px solid #B45309;
  transition: all 0.1s ease;
}
.btn-game-amber:hover {
  background-color: #FBBF24;
  transform: translateY(-2px);
}
.btn-game-amber:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

.btn-game-teal {
  background-color: #0D9488;
  border-bottom: 4px solid #0F766E;
  transition: all 0.1s ease;
}
.btn-game-teal:hover {
  background-color: #14B8A6;
  transform: translateY(-2px);
}
.btn-game-teal:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

/* بطاقات عصرية ملونة بظلال ناعمة وإطارات فقاعية */
.bubbly-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.08), 0 8px 10px -6px rgba(139, 92, 246, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bubbly-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(244, 63, 94, 0.15), 0 10px 15px -3px rgba(139, 92, 246, 0.1);
}

/* وسوم الألعاب العائمة (Floating Game Badges) */
.game-badge {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

/* بالونات وتأثيرات الطفو (Floating animation) */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}

.animate-float {
  animation: floatGentle 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.4)); }
  50% { filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.6)); }
}

.animate-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* تخصيص شريط التمرير بألوان زاهية */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF2F8;
}
::-webkit-scrollbar-thumb {
  background: #F472B6;
  border-radius: 9999px;
  border: 2px solid #FDF2F8;
}
::-webkit-scrollbar-thumb:hover {
  background: #EC4899;
}

/* كانفاس الألعاب والأوتوجراف */
#autograph-canvas {
  touch-action: none;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23EC4899"><circle cx="12" cy="12" r="8"/></svg>') 12 12, crosshair;
  background: #FFFFFF;
}

/* كانفاس الاحتفال والمفرقعات (Confetti Canvas) */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
}
