/* Modern UI Stylesheet for Rabbi Khalifa ben Malka educational landing page */

/* Import Outfit (for headers) and Plus Jakarta Sans (for body) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-red: #C1272D;           /* Moroccan Flag Red */
  --color-green: #006233;         /* Moroccan Flag Green */
  --color-green-light: #E6F3EC;   /* Soft Green Tint */
  --color-red-light: #FCEAEA;     /* Soft Red Tint */
  --color-bg: #FFFFFF;            /* Pure White Background */
  --color-bg-light: #F8FAFC;      /* Light Slate-50 Background */
  --color-bg-alt: #F1F5F9;        /* Slate-100 Alternating Background */
  --color-text-main: #0F172A;     /* Slate-900 Main Text */
  --color-text-muted: #475569;    /* Slate-600 Muted Text */
  --color-border: #E2E8F0;        /* Light Clean Slate Border */
  
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-green);
}

/* Base resets */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  overflow-x: hidden;
}

/* Helper Typography */
.font-header {
  font-family: var(--font-header);
  letter-spacing: -0.02em;
}

.font-sans {
  font-family: var(--font-sans);
}

/* Modern Card Hover Effects */
.hover-clean-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-border);
}
.hover-clean-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 98, 51, 0.15);
  box-shadow: 0 20px 40px -15px rgba(0, 98, 51, 0.05), 0 0 0 1px rgba(0, 98, 51, 0.05);
}

.hover-clean-card-red:hover {
  border-color: rgba(193, 39, 45, 0.15);
  box-shadow: 0 20px 40px -15px rgba(193, 39, 45, 0.05), 0 0 0 1px rgba(193, 39, 45, 0.05);
}

/* Custom Book Card 3D rotations */
.book-card {
  perspective: 1200px;
}

.book-cover {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.book-card:hover .book-cover {
  transform: rotateY(-8deg) translateZ(8px);
}

/* Timeline Indicators */
.timeline-dot {
  position: relative;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-dot.active::after {
  opacity: 1;
  transform: scale(1);
}

/* Custom Text Sizes */
.text-size-sm { font-size: 0.875rem; }
.text-size-md { font-size: 1rem; }
.text-size-lg { font-size: 1.125rem; }
.text-size-xl { font-size: 1.25rem; }

/* Modern clean transitions */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom background overlay override to 0.65 opacity */
.bg-black\/75 {
  background-color: rgb(0 0 0 / 0.65) !important;
}

/* RTL Language Selector Dropdown Override */
.rtl-layout #lang-select-mobile {
  padding-left: 2rem !important;
  padding-right: 0.75rem !important;
}
.rtl-layout .mobile-dropdown-chevron {
  right: auto !important;
  left: 0 !important;
  padding-left: 0.5rem !important;
  padding-right: 0 !important;
}
