/* ============================================================
   EUROSTAR International Education — Design System
   Premium CSS for Turkish Students → Iranian Universities
   ============================================================ */

/* ── Base & Resets ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ─────────────────────────────────────────────── */
.font-arabic { font-family: 'Noto Sans Arabic', sans-serif; }

/* ── Announcement Bar ───────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(135deg, #0f172a, #7f1d1d, #0f172a);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

/* ── Navigation ─────────────────────────────────────────────── */
#main-nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.nav-link { transition: all 0.15s ease; }
.nav-link:hover { transform: translateY(-1px); }

.cta-btn {
  position: relative;
  overflow: hidden;
}
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.cta-btn:hover::after { opacity: 1; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #450a0a 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

/* ── Cards ──────────────────────────────────────────────────── */
.uni-card, .prog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.uni-card:hover, .prog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-decoration: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 8px 24px rgba(185,28,28,0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: #dc2626;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 1.5px solid #fecaca;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #fef2f2;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #475569;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-decoration: none;
}
.btn-ghost:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
}
.badge-lisans     { background: #dbeafe; color: #1d4ed8; }
.badge-master     { background: #ede9fe; color: #7c3aed; }
.badge-doktora    { background: #ffe4e6; color: #be123c; }
.badge-devlet     { background: #dbeafe; color: #1e40af; }
.badge-tibbi      { background: #fee2e2; color: #dc2626; }
.badge-teknoloji  { background: #ede9fe; color: #7c3aed; }
.badge-burs       { background: #d1fae5; color: #065f46; }
.badge-ingilizce  { background: #dbeafe; color: #1e40af; }

/* ── Search Input ───────────────────────────────────────────── */
.search-input {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.875rem;
  color: #1e293b;
  transition: all 0.2s ease;
  width: 100%;
  outline: none;
}
.search-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.search-input::placeholder { color: #94a3b8; }

/* ── Filter Chips ───────────────────────────────────────────── */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid #e2e8f0;
  background: white;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.filter-chip:hover, .filter-chip.active {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}
.filter-chip.active {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

/* ── University Cards ───────────────────────────────────────── */
.uni-card {
  background: white;
  border-radius: 1rem;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.uni-card:hover {
  border-color: #fca5a5;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(220,38,38,0.05);
}

/* ── Program Cards ──────────────────────────────────────────── */
.prog-card {
  background: white;
  border-radius: 1rem;
  border: 1.5px solid #e2e8f0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.prog-card:hover {
  border-color: #fca5a5;
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

/* ── Stats Blocks ───────────────────────────────────────────── */
.stat-block {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1.5px solid #e2e8f0;
  text-align: center;
  transition: all 0.2s ease;
}
.stat-block:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

/* ── Tables ─────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: #0f172a;
  color: white;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
}
.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #334155;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fef2f2; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-question {
  cursor: pointer;
  border: none;
  background: white;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease;
}
.faq-answer { transition: all 0.2s ease; }

/* ── Accordion (generic) ────────────────────────────────────── */
.accordion-content { overflow: hidden; transition: max-height 0.3s ease; }

/* ── Section headings ───────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Gradients ──────────────────────────────────────────────── */
.gradient-brand { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.gradient-dark  { background: linear-gradient(135deg, #0f172a, #1e293b); }
.gradient-gold  { background: linear-gradient(135deg, #d97706, #f59e0b); }
.gradient-hero  { background: linear-gradient(135deg, #0f172a 0%, #450a0a 50%, #0f172a 100%); }

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Steps ──────────────────────────────────────────────────── */
.step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.step-dot.active    { background: #dc2626; color: white; box-shadow: 0 0 0 4px rgba(220,38,38,0.2); }
.step-dot.completed { background: #059669; color: white; }
.step-dot.pending   { background: #e2e8f0; color: #94a3b8; }

/* ── Document Status ────────────────────────────────────────── */
.doc-status-missing  { background: #fee2e2; color: #dc2626; }
.doc-status-uploaded { background: #fef9c3; color: #ca8a04; }
.doc-status-review   { background: #dbeafe; color: #2563eb; }
.doc-status-approved { background: #d1fae5; color: #059669; }
.doc-status-needs-fix{ background: #ffedd5; color: #ea580c; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: slideInUp 0.3s ease forwards;
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Loading Skeleton ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Scroll animations ──────────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ── Utility ────────────────────────────────────────────────── */
.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; }
.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .announcement-bar > div { font-size: 0.65rem; }
  h1 { font-size: 2.25rem !important; line-height: 1.2; }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .announcement-bar, #main-nav, footer { display: none !important; }
  body { background: white !important; }
}

/* ── WhatsApp Widget ─────────────────────────────────────────── */
@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.animate-bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
}
#wa-toggle-btn {
  animation: wa-pulse 2.5s ease-in-out infinite;
}
#wa-popup {
  animation: fadeInUp 0.25s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
