/* Custom Styles for Arabic Educational Notes Platform */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
  --font-cairo: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-tajawal: 'Tajawal', system-ui, -apple-system, sans-serif;
  --primary-gradient: linear-gradient(135deg, #e11d48 0%, #ec4899 50%, #8b5cf6 100%);
  --secondary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --hero-bg: linear-gradient(180deg, #fff1f2 0%, #faf5ff 50%, #ffffff 100%);
}

* {
  font-family: var(--font-cairo);
  box-sizing: border-box;
}

body {
  direction: rtl;
  text-align: right;
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Brand Gradients */
.bg-brand-gradient {
  background: linear-gradient(135deg, #e11d48 0%, #d946ef 50%, #7c3aed 100%);
}

.text-brand-gradient {
  background: linear-gradient(135deg, #e11d48 0%, #c026d3 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subject Badges & Themes */
.badge-arabic {
  background-color: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.badge-math {
  background-color: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-english {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-science {
  background-color: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-social {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-math-lang {
  background-color: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.badge-religion {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-ict {
  background-color: #ccfbf1;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

/* Card Hover Animation */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Badge */
.hero-badge {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(225, 29, 72, 0.15);
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.08);
}
