/* ===== TAHLAJOBS — design tokens ported from the React build ===== */
:root {
  --background: 210 40% 97%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --card-border: 214 32% 91%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 221 83% 53%;
  --primary-foreground: 210 40% 98%;
  --secondary: 142 71% 45%;
  --secondary-foreground: 210 40% 98%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221 83% 53%;
  --radius: 0.75rem;
}

.dark {
  --background: 222 47% 9%;
  --foreground: 210 40% 98%;
  --card: 222 47% 13%;
  --card-foreground: 210 40% 98%;
  --card-border: 217 33% 18%;
  --popover: 222 47% 13%;
  --popover-foreground: 210 40% 98%;
  --primary: 217 91% 60%;
  --primary-foreground: 222 47% 11%;
  --secondary: 142 71% 45%;
  --secondary-foreground: 222 47% 11%;
  --muted: 217 33% 17%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217 33% 17%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217 33% 18%;
  --input: 217 33% 18%;
  --ring: 224 76% 48%;
}

/* Fonts per direction (mirrors React index.css) */
[dir="rtl"] { font-family: "Noto Kufi Arabic", "Inter", sans-serif; }
[dir="ltr"] { font-family: "Inter", "Noto Kufi Arabic", sans-serif; }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ===== Custom utilities ported from React ===== */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-hover { transition: transform 0.2s, box-shadow 0.2s; }
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px hsl(221 83% 53% / 0.12);
}

.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-geo {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
.animate-slide-down { animation: slideDown 0.3s ease forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease forwards; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Line clamp helpers (Play CDN includes these, kept for safety) */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== CLS Prevention: reserve stable dimensions ===== */
/* Hero section — prevents layout shift before content loads */
.hero-section-reserve {
  min-height: 280px;
}
@media (min-width: 640px) {
  .hero-section-reserve { min-height: 360px; }
}

/* Reserve space for Google AdSense containers to prevent CLS */
ins.adsbygoogle {
  display: block !important;
  min-height: 90px;
}
.adsense-banner { min-height: 90px; }
.adsense-square { min-height: 250px; }
