/* ═══════════════════════════════════════════════════════════════
   budiyet.css — Ana Stil Dosyası v2.0
   Sağlık, Diyet & Spor Profesyonelleri Platformu
   ═══════════════════════════════════════════════════════════════ */

/* ── Cursor normalizasyonu ──────────────────────────────────────
   Modern siteler (Apple, Linear, Stripe) browser default "metin
   üstünde I-beam, boşlukta ok, link'te pointer" davranışını sakin-
   leştirmek için body'ye default cursor verir. Text selection yine
   çalışır (tıkla-sürükle seç), sadece imleç titremez. */
body { cursor: default; }
a, button, .btn, label[for], summary,
[role="button"], [onclick], [data-href],
input[type="submit"], input[type="button"], input[type="reset"],
input[type="checkbox"], input[type="radio"], input[type="file"] {
  cursor: pointer;
}
input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea, select, [contenteditable="true"] {
  cursor: text;
}
input[disabled], button[disabled], .btn[disabled], .disabled {
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════
   PUBLIC SAYFA TEMA OVERRIDE'ı — Bootstrap "success" (yeşil) renklerini
   Budiyet vişne çürüğü temasına map eder. Sadece _Layout.cshtml kullanan
   public sayfalarda aktif (body.budiyet-public). Panel (_PanelLayout)
   etkilenmez çünkü kendi .theme-* override'ı var.
   ═══════════════════════════════════════════════════════════════════════ */
body.budiyet-public {
  --bs-success:               #c2185b;
  --bs-success-rgb:           194, 24, 91;
  --bs-success-bg-subtle:     #fce4ec;
  --bs-success-border-subtle: #f8bbd0;
  --bs-success-text-emphasis: #880e4f;
}
/* Bootstrap bazı utility class'larda CSS variable değil hardcoded renk kullanıyor
   (özellikle btn-success fokus/active state, link-success vs). Explicit override. */
body.budiyet-public .btn-success {
  background-color: #c2185b;
  border-color:     #c2185b;
}
body.budiyet-public .btn-success:hover,
body.budiyet-public .btn-success:focus,
body.budiyet-public .btn-success:active,
body.budiyet-public .btn-success.active {
  background-color: #880e4f !important;
  border-color:     #880e4f !important;
}
body.budiyet-public .btn-outline-success {
  color:        #c2185b;
  border-color: #c2185b;
}
body.budiyet-public .btn-outline-success:hover,
body.budiyet-public .btn-outline-success:focus,
body.budiyet-public .btn-outline-success:active {
  background-color: #c2185b !important;
  border-color:     #c2185b !important;
  color:            #fff !important;
}
body.budiyet-public .text-success       { color: #c2185b !important; }
body.budiyet-public .bg-success         { background-color: #c2185b !important; }
body.budiyet-public .border-success     { border-color: #c2185b !important; }
body.budiyet-public .link-success       { color: #c2185b !important; }
body.budiyet-public .link-success:hover { color: #880e4f !important; }
body.budiyet-public .alert-success {
  background-color: #fce4ec;
  border-color:     #f8bbd0;
  color:            #880e4f;
}
body.budiyet-public .badge.bg-success { background-color: #c2185b !important; }
/* bg-success-subtle (light pastel) - vişne light'a map */
body.budiyet-public .bg-success-subtle       { background-color: #fce4ec !important; }
body.budiyet-public .text-success-emphasis   { color: #880e4f !important; }
body.budiyet-public .border-success-subtle   { border-color: #f8bbd0 !important; }
/* Form focus ring (yeşil odak halkası) */
body.budiyet-public .form-control:focus,
body.budiyet-public .form-select:focus {
  border-color: #c2185b;
  box-shadow:   0 0 0 .25rem rgba(194, 24, 91, .2);
}
body.budiyet-public .form-check-input:checked {
  background-color: #c2185b;
  border-color:     #c2185b;
}
/* Progress bar yeşili */
body.budiyet-public .progress-bar.bg-success { background-color: #c2185b !important; }
/* Nav tabs / pills active */
body.budiyet-public .nav-pills .nav-link.active,
body.budiyet-public .nav-pills .show > .nav-link {
  background-color: #c2185b;
}



/* ── CSS Değişkenleri ──────────────────────────────────────── */
/* Default tema = Vişne çürüğü (anasayfa).
   Panel sayfaları body üzerinde .theme-* sınıfı ile override eder. */
:root {
  /* Tema renkleri (panel rolüne göre değişir) */
  --theme-primary:        #c2185b;   /* vişne çürüğü */
  --theme-primary-dark:   #880e4f;
  --theme-primary-light:  #fce4ec;
  --theme-primary-rgb:    194, 24, 91;
  --theme-accent:         #e91e63;

  /* Geçiş uyumu — eski 'green' isimleri tema değişkenlerine bağlandı */
  --budiyet-green:        var(--theme-primary);
  --budiyet-green-dark:   var(--theme-primary-dark);
  --budiyet-green-light:  var(--theme-primary-light);

  /* Sabit (tema-bağımsız) renkler */
  --budiyet-navy:         #1a252f;
  --budiyet-text:         #2c3e50;
  --budiyet-muted:        #7f8c8d;
  --budiyet-border:       #ecf0f1;
  --budiyet-bg:           #f8f9fa;

  /* Eski isimleri de tut (geçiş uyumu için) */
  --primary:              var(--theme-primary-dark);
  --primary-dark:         var(--theme-primary-dark);
  --primary-light:        var(--theme-primary-light);
  --secondary:            var(--theme-primary);
  --accent:               #f39c12;
  --accent-blue:          #3498db;
  --accent-purple:        #9b59b6;
  --text-dark:            var(--budiyet-navy);
  --text-muted:           var(--budiyet-muted);
  --bg-light:             var(--theme-primary-light);
  --bg-card:              #ffffff;
  --border:               var(--budiyet-border);

  --shadow-sm:  0 2px 8px  rgba(44, 62, 80, .06);
  --shadow-md:  0 4px 20px rgba(44, 62, 80, .10);
  --shadow-lg:  0 8px 40px rgba(44, 62, 80, .14);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, .06);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.25s ease;
}

/* ── Rol Bazlı Tema Override'ları ─────────────────────────────
   Body üzerinde .theme-* sınıfı varsa, tema renkleri o role göre
   yeniden tanımlanır. Anasayfa varsayılan kalır (vişne çürüğü). */

body.theme-dietitian {
  --theme-primary:       #16a34a;
  --theme-primary-dark:  #15803d;
  --theme-primary-light: #dcfce7;
  --theme-primary-rgb:   22, 163, 74;
  --theme-accent:        #22c55e;
}

body.theme-doctor {
  --theme-primary:       #2563eb;
  --theme-primary-dark:  #1d4ed8;
  --theme-primary-light: #dbeafe;
  --theme-primary-rgb:   37, 99, 235;
  --theme-accent:        #3b82f6;
}

body.theme-psychologist {
  --theme-primary:       #9333ea;
  --theme-primary-dark:  #7e22ce;
  --theme-primary-light: #f3e8ff;
  --theme-primary-rgb:   147, 51, 234;
  --theme-accent:        #a855f7;
}

body.theme-sports {
  --theme-primary:       #ea580c;
  --theme-primary-dark:  #c2410c;
  --theme-primary-light: #ffedd5;
  --theme-primary-rgb:   234, 88, 12;
  --theme-accent:        #f97316;
}

body.theme-client {
  --theme-primary:       #0284c7;
  --theme-primary-dark:  #0369a1;
  --theme-primary-light: #e0f2fe;
  --theme-primary-rgb:   2, 132, 199;
  --theme-accent:        #38bdf8;
}

body.theme-admin {
  --theme-primary:       #14b8a6;
  --theme-primary-dark:  #0f766e;
  --theme-primary-light: #ccfbf1;
  --theme-primary-rgb:   20, 184, 166;
  --theme-accent:        #2dd4bf;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--budiyet-text);
  background: var(--budiyet-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Özel Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: #f1f1f1; }
::-webkit-scrollbar-thumb  {
  background: var(--budiyet-green);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--budiyet-green-dark); }

/* ── Profesyonel Rozetleri (Badges) ──────────────────────────
   _ProfessionalBadges partial tarafından render edilir. İsim yanında
   inline ikonlar olarak gösterilir — Marketplace kartı + Public profile
   hero'da kullanılır. Tooltip olarak title attribute kullanılır.
*/
.pro-badge-icon {
  font-size: 0.95em;
  vertical-align: middle;
  line-height: 1;
  /* Stack edilen badge'lerin arasında rahat nefes alması için küçük bir gölge */
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}
.pro-badge-icon.badge-verified      { color: #1DA1F2; }
.pro-badge-icon.badge-budiyet-pick  { color: #8b1e3f; }
.pro-badge-icon.badge-gold          { color: #d4af37; }
.pro-badge-icon.badge-silver        { color: #9fa4a8; }
.pro-badge-icon.badge-bronze        { color: #cd7f32; }

/* Public profile hero'da başlık içinde büyük gösterim */
.profile-hero h1 .pro-badge-icon    { font-size: 0.85em; }

/* ── Public Profile Social Media Links ───────────────────────
   Marketplace/Profile.cshtml'de "Web & Sosyal Medya" bölümü için.
*/
.social-links {
  margin-top: 0.25rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.social-link:hover {
  background: #fff;
  border-color: #c7d2e0;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.social-link i { font-size: 1rem; }
.social-link.social-ig:hover  { color: #E4405F; border-color: #E4405F; }
.social-link.social-fb:hover  { color: #1877F2; border-color: #1877F2; }
.social-link.social-li:hover  { color: #0A66C2; border-color: #0A66C2; }
.social-link.social-yt:hover  { color: #FF0000; border-color: #FF0000; }
.social-link.social-x:hover   { color: #000000; border-color: #000000; }

/* ── Sidebar Scrollbar (Role-Based) ─────────────────────────
   Rol bazlı panel sidebar'ları için scrollbar renklerini tema
   değişkenlerinden (--theme-primary, --theme-primary-light vs.)
   okuyoruz. body.theme-dietitian / theme-doctor / theme-psychologist /
   theme-sports / theme-client / theme-admin altındaki CSS değişkenleri
   otomatik uygulanır — her role farklı bir renk.

   Firefox için scrollbar-color (thumb track), Chromium tabanlı browser'lar
   için ::-webkit-scrollbar-* kullanılıyor.
*/

/* ─ Dashboard Sidebar (Professional / Client — beyaz bg) ─ */
.dashboard-sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--theme-primary) transparent;
}
.dashboard-sidebar::-webkit-scrollbar {
  width: 8px;
}
.dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(var(--theme-primary-rgb), 0.35);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s;
}
.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--theme-primary);
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* ─ Admin Sidebar (koyu bg — açık thumb gerekir) ─ */
.admin-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--theme-primary-rgb), 0.55) transparent;
}
.admin-sidebar::-webkit-scrollbar {
  width: 8px;
}
.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(var(--theme-primary-rgb), 0.45);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--theme-primary);
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* ── Yardımcı Sınıflar ─────────────────────────────────────── */
.rounded-4    { border-radius: var(--radius-md) !important; }
.rounded-5    { border-radius: var(--radius-lg) !important; }
.text-purple  { color: var(--accent-purple) !important; }
.bg-purple-subtle { background-color: #f5eef8 !important; }
.card-hover   { transition: var(--transition); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ── Bootstrap "success" Override → Tema Renkleri ───────────
   Bootstrap'in btn-success / text-success / bg-success class'ları
   tüm uygulamada tema rengiyle gözüksün diye buradan override
   ediliyor. Böylece her view'i tek tek değiştirmeye gerek yok. */
.btn-success,
.btn-success:focus {
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
  color: #fff !important;
}
.btn-success:hover,
.btn-success:active,
.btn-success.active {
  background-color: var(--theme-primary-dark) !important;
  border-color: var(--theme-primary-dark) !important;
  color: #fff !important;
}
.btn-outline-success {
  color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
  background-color: transparent !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success.active {
  background-color: var(--theme-primary) !important;
  color: #fff !important;
}
.text-success {
  color: var(--theme-primary-dark) !important;
}
.bg-success {
  background-color: var(--theme-primary) !important;
}
.border-success {
  border-color: var(--theme-primary) !important;
}
.alert-success {
  background-color: var(--theme-primary-light) !important;
  border-color: rgba(var(--theme-primary-rgb), .35) !important;
  color: var(--theme-primary-dark) !important;
}
.link-success {
  color: var(--theme-primary-dark) !important;
}
.form-check-input:checked {
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
}

/* ── Temiz Kart ────────────────────────────────────────────── */
.card-clean {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: none;
}

/* ── Budiyet Ana Buton ─────────────────────────────────────── */
.btn-budiyet {
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark));
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.btn-budiyet:hover,
.btn-budiyet:focus {
  background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary-dark));
  color: #ffffff;
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), .35);
}

.btn-budiyet:active { transform: scale(0.98); }

/* ── Rol Badge'leri ─────────────────────────────────────────── */
.badge-professional {
  background: var(--theme-primary-light);
  color: var(--theme-primary-dark);
  border: 1px solid rgba(var(--theme-primary-rgb), .35);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-client {
  background: #ebf5fb;
  color: #2980b9;
  border: 1px solid #aed6f1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-admin {
  background: #fdf2f8;
  color: #8e44ad;
  border: 1px solid #d7bde2;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--budiyet-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .06);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, .10);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.brand-icon-sm {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--budiyet-navy);
  letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
  color: var(--budiyet-text) !important;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--budiyet-green-light);
  color: var(--budiyet-green-dark) !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--theme-primary-light) 0%,
    #fff5f9 30%,
    #fff0f6 60%,
    var(--theme-primary-light) 100%
  );
  min-height: 85vh;
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--theme-primary-rgb), .22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(var(--theme-primary-rgb), .12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(var(--theme-primary-rgb), .35);
  color: var(--theme-primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 6px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--budiyet-navy);
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--budiyet-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--budiyet-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

/* Hero Arama Kutusu */
.hero-search-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .12);
  padding: 6px;
  max-width: 560px;
}

.hero-search-box .input-group { border-radius: var(--radius-md); overflow: hidden; }

.hero-search-box .form-control {
  border: none;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: transparent;
}

.hero-search-box .form-control:focus {
  box-shadow: none;
  border: none;
}

.hero-search-box .input-group-text {
  border: none;
  background: transparent;
  color: var(--budiyet-muted);
}

/* Floating Cards */
.min-vh-hero { min-height: 520px; }
.hero-illustration { position: relative; height: 440px; }

.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

.card-1 { top: 40px;  right: 60px; animation-delay: 0s; }
.card-2 { top: 180px; right: 20px; min-width: 220px; animation-delay: 0.8s; }
.card-3 { top: 320px; right: 80px; animation-delay: 1.5s; }

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ── Stats Section ────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark)) !important;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ── Section Ortak ────────────────────────────────────────── */
.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--budiyet-navy);
  margin-bottom: 0.5rem;
}

.section-subtitle { font-size: 1rem; color: var(--budiyet-muted); }

/* ═══════════════════════════════════════════════════════════════
   MARKETPLACE — PROFESYONEL KARTLARI
   ═══════════════════════════════════════════════════════════════ */
.professional-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--budiyet-border);
  transition: var(--transition);
  overflow: hidden;
}

.professional-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--budiyet-green);
}

/* Pro Avatar */
.pro-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pro-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pro-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--budiyet-green-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.verified-badge i { font-size: 0.85rem; }

/* Rating Stars */
.rating-stars {
  color: #f39c12;
  letter-spacing: 1px;
}

/* Online Badge */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--budiyet-green-dark);
}

.online-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--theme-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(var(--theme-primary-rgb), .3);
  animation: pulse 2s infinite;
}

/* Pro List Card (Marketplace liste görünümü) */
.pro-list-card {
  background: white;
  border: 1.5px solid var(--budiyet-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  gap: 1.25rem;
}

.pro-list-card:hover {
  border-color: var(--budiyet-green);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

/* Marketplace Hero */
.marketplace-hero {
  background: linear-gradient(135deg, var(--budiyet-green-light), #ffffff);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--budiyet-border);
}

.search-bar-lg {
  background: white;
  border-radius: var(--radius-md);
  border: 1.5px solid #d4edda;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.filter-sidebar .card {
  border: 1.5px solid var(--budiyet-border);
  border-radius: var(--radius-md);
}

.filter-section-title {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--budiyet-muted);
  margin-bottom: 0.75rem;
}

/* Category Cards */
.category-card {
  cursor: pointer;
  background: white;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--budiyet-green) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — ORTAK
   NOT: Sidebar/Topbar/Sidebar-toggle stilleri _PanelLayout.cshtml
   içindeki inline <style> bloğunda tanımlıdır. Buradaki eski
   .dashboard-sidebar, .sidebar-brand, .sidebar-nav-link tanımları
   layout ile çakışıyordu (z-index, breakpoint farklı) ve kaldırıldı.
   ═══════════════════════════════════════════════════════════════ */
.dashboard-layout { display: flex; min-height: 100vh; }
.dashboard-content { padding: 1.5rem; }

/* ── Stat Kartları ─────────────────────────────────────────── */
.stat-card {
  background: white;
  border-radius: var(--radius-md);
  border: none;
  border-left: 4px solid var(--budiyet-border);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-green  { border-left-color: var(--budiyet-green); }
.stat-card-blue   { border-left-color: var(--accent-blue); }
.stat-card-orange { border-left-color: #e67e22; }
.stat-card-yellow { border-left-color: #f1c40f; }

.stat-card-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-card-label { font-size: 0.85rem; color: var(--budiyet-muted); }

/* Stat İkon */
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-icon.green  { background: var(--budiyet-green-light); color: var(--budiyet-green-dark); }
.stat-icon.blue   { background: #ebf5fb; color: #2980b9; }
.stat-icon.orange { background: #fef9e7; color: #e67e22; }
.stat-icon.yellow { background: #fefde7; color: #b7950b; }

/* stat-card-icon (eski uyum) */
.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* Quick Action Butonlar */
.quick-action-btn {
  background: white;
  border: 1.5px solid var(--budiyet-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--budiyet-text);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}

.quick-action-btn:hover {
  border-color: var(--budiyet-green);
  background: var(--budiyet-green-light);
  color: var(--budiyet-green-dark);
  transform: scale(1.03);
  box-shadow: var(--shadow-sm);
}

/* Danışan / Randevu Listesi */
.client-list-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--budiyet-muted);
  font-weight: 600;
  background: var(--budiyet-bg);
}

.client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.appointment-item {
  background: white;
  border: 1.5px solid var(--budiyet-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: var(--transition);
}

.appointment-item:hover { border-color: var(--budiyet-green); }

/* ═══════════════════════════════════════════════════════════════
   CHAT
   ═══════════════════════════════════════════════════════════════ */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  overflow-y: auto;
  max-height: 480px;
}

.chat-bubble-own {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark));
  color: white;
  padding: 0.65rem 1rem;
  border-radius: 18px 18px 4px 18px;
  max-width: 72%;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(var(--theme-primary-rgb), .25);
}

.chat-bubble-other {
  align-self: flex-start;
  background: #f4f4f4;
  color: var(--budiyet-text);
  padding: 0.65rem 1rem;
  border-radius: 18px 18px 18px 4px;
  max-width: 72%;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

/* Yazıyor göstergesi */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 1rem;
  background: #f4f4f4;
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--budiyet-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════════ */
.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--budiyet-border);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--budiyet-green);
}

.blog-card .blog-cover {
  position: relative;
  overflow: hidden;
}

.blog-card .blog-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-cover img { transform: scale(1.04); }

.blog-card .blog-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(26, 37, 47, .5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-cover-overlay { opacity: 1; }

.blog-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--budiyet-muted);
}

.blog-author-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author-chip .author-initials {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark));
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   GAMİFİKASYON — DANIŞAN PANELİ
   ═══════════════════════════════════════════════════════════════ */

/* Rozet Kartı */
.badge-card {
  border: 1.5px solid var(--budiyet-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: white;
  transition: var(--transition);
  text-align: center;
}

.badge-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--budiyet-bg);
}

/* Kazanılmış rozet */
.badge-earned {
  border-color: #f39c12;
  background: linear-gradient(135deg, #fffde7, #fff8e1);
}

.badge-earned .badge-icon {
  background: linear-gradient(135deg, #f9a825, #f39c12);
  color: white;
  box-shadow: 0 4px 12px rgba(243, 156, 18, .35);
}

.badge-earned .badge-label { color: #b7770d; font-weight: 700; }

/* Streak */
.streak-card {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  border-radius: var(--radius-md);
  color: white;
}

.streak-number { font-size: 3rem; font-weight: 800; line-height: 1; }

.streak-fire {
  display: inline-block;
  font-size: 2rem;
  animation: firePulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 107, 53, .6));
}

@keyframes firePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

/* Progress Ring */
.progress-ring { position: relative; display: inline-flex; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hedef Kartlar */
.goal-card {
  background: white;
  border: 1.5px solid var(--budiyet-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.goal-card:hover { box-shadow: var(--shadow-sm); }
.goal-value  { font-size: 1.6rem; font-weight: 800; }
.goal-target { font-size: 0.8rem; color: var(--budiyet-muted); }
.goal-icon   { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* Görev Listesi */
.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1.5px solid var(--budiyet-border);
  background: white;
}

.task-item.completed { background: var(--theme-primary-light); border-color: rgba(var(--theme-primary-rgb), .35); }
.task-item.completed .task-title { text-decoration: line-through; color: var(--budiyet-muted); }

.task-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d4edda;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.task-item.completed .task-check {
  background: var(--budiyet-green);
  border-color: var(--budiyet-green);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH SAYFALAR
   ═══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--budiyet-green-light) 0%, #ffffff 50%, #e8f5e9 100%);
  display: flex;
  align-items: center;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--budiyet-border);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.auth-logo { font-size: 2rem; font-weight: 800; color: var(--budiyet-green); }

/* Tip Seçim Kartları */
.type-card {
  border: 2px solid #e8f5e9;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.type-card:hover              { border-color: var(--budiyet-green); background: var(--budiyet-green-light); }
.type-card.selected,
.type-card.type-selected      { border-color: var(--budiyet-green); background: var(--budiyet-green-light); box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15); }
.type-card .type-icon         { font-size: 2.5rem; margin-bottom: 0.5rem; }

/* Pro Tip Butonları */
.pro-type-btn {
  border: 2px solid #e8f5e9;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pro-type-btn:hover  { border-color: var(--budiyet-green); background: var(--budiyet-green-light); }
.pro-type-btn.active { border-color: var(--budiyet-green); background: var(--budiyet-green-light); }

/* Şifre Gücü Göstergesi */
.password-strength-bar {
  height: 4px;
  border-radius: 2px;
  transition: var(--transition);
  margin-top: 6px;
}

.password-strength-bar.weak   { background: #e74c3c; width: 33%; }
.password-strength-bar.medium { background: #f39c12; width: 66%; }
.password-strength-bar.strong { background: var(--budiyet-green); width: 100%; }

.password-strength-text {
  font-size: 0.78rem;
  margin-top: 4px;
}

.password-strength-text.weak   { color: #e74c3c; }
.password-strength-text.medium { color: #f39c12; }
.password-strength-text.strong { color: var(--budiyet-green-dark); }

/* Karakter Sayacı */
.char-counter {
  font-size: 0.78rem;
  color: var(--budiyet-muted);
  text-align: right;
  margin-top: 3px;
}

.char-counter.near-limit { color: #f39c12; }
.char-counter.at-limit   { color: #e74c3c; }

/* ═══════════════════════════════════════════════════════════════
   FORM KONTROLLERI
   ═══════════════════════════════════════════════════════════════ */
.form-control, .form-select {
  border: 1.5px solid #d4edda;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: white;
}

.form-control:focus, .form-select:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .15);
}

.form-label { font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }

/* ═══════════════════════════════════════════════════════════════
   PLAN / ABONELİK BADGE'LERİ
   ═══════════════════════════════════════════════════════════════ */
.plan-badge-free    { background: #f0f4f8; color: #555; }
.plan-badge-starter { background: var(--budiyet-green-light); color: var(--budiyet-green-dark); }
.plan-badge-pro     { background: #fff3cd; color: #856404; }
.plan-badge-clinic  { background: #cfe2ff; color: #084298; }

/* ═══════════════════════════════════════════════════════════════
   CTA / FOOTER / DİĞER
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark)) !important;
}

.btn-white {
  background: white;
  color: var(--budiyet-green-dark);
  border: none;
  transition: var(--transition);
}

.btn-white:hover {
  background: var(--budiyet-green-light);
  color: var(--budiyet-green-dark);
}

/* Footer — bg-dark üzerinde okunabilir açık renk tonları.
   text-muted (#6c757d) siyah arka planda neredeyse görünmediği için
   özel footer-link/footer-text sınıfları kullanılıyor. */
.footer-section .footer-link {
  color: rgba(255, 255, 255, 0.72);
  transition: color .15s ease;
}
.footer-section .footer-link:hover,
.footer-section .footer-link:focus {
  color: #ffffff !important;
  text-decoration: none;
}
.footer-section .footer-text {
  color: rgba(255, 255, 255, 0.65);
}
.footer-section h6 { color: #ffffff; }
.footer-section a:hover { color: white !important; }

/* How It Works Steps */
.step-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), .35);
}

/* Testimonial */
.testimonial-card {
  background: white;
  transition: var(--transition);
  border: 1.5px solid var(--budiyet-border);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   TOAST BİLDİRİMLERİ (JS ile üretilir)
   ═══════════════════════════════════════════════════════════════ */
.budiyet-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.budiyet-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  min-width: 240px;
  max-width: 360px;
  pointer-events: all;
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.budiyet-toast.hiding {
  animation: toastSlideOut 0.3s ease forwards;
}

.budiyet-toast.success { background: linear-gradient(135deg, var(--budiyet-green), var(--budiyet-green-dark)); }
.budiyet-toast.error   { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.budiyet-toast.info    { background: linear-gradient(135deg, #3498db, #2980b9); }
.budiyet-toast.warning { background: linear-gradient(135deg, #f39c12, #e67e22); }

/* Marketplace Arama Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid var(--budiyet-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.search-suggestion-item:hover { background: var(--budiyet-green-light); }

/* Confirm Modal */
.budiyet-confirm-modal .modal-content {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* Image Preview */
.image-preview-container {
  margin-top: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--budiyet-border);
  display: none;
}

.image-preview-container.visible { display: block; }

.image-preview-container img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════
   ANİMASYONLAR
   ═══════════════════════════════════════════════════════════════ */

/* Float (hero kartları) */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Aşağıdan yukarı belirme */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nabız */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(var(--theme-primary-rgb), .4); }
  50%       { box-shadow: 0 0 0 6px rgba(var(--theme-primary-rgb), 0); }
}

/* Toast giriş/çıkış */
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(60px) scale(.9); }
  to   { opacity: 1; transform: translateX(0)   scale(1); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0)   scale(1); }
  to   { opacity: 0; transform: translateX(60px) scale(.9); }
}

/* Scroll Animasyonu */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: her elemanı biraz geç tetikle */
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }

/* Su Takibi */
.water-btn { cursor: pointer; font-size: 1.4rem; opacity: 0.35; transition: var(--transition); }
.water-btn:hover { opacity: 0.7; transform: scale(1.1); }
.water-btn.water-filled { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet: 2 sütun grid */
@media (min-width: 576px) and (max-width: 991.98px) {
  .pro-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet / Mobile — sidebar mobil davranışı _PanelLayout içinde */
@media (max-width: 991.98px) {
  .hero-section    { padding: 50px 0 40px; min-height: auto; }
  .hero-title      { font-size: clamp(1.8rem, 5vw, 2.6rem); }
}

/* Mobile: tek sütun */
@media (max-width: 575.98px) {
  .auth-card       { padding: 1.75rem 1.25rem; }
  .hero-title      { font-size: 1.9rem; }
  .stat-number     { font-size: 1.6rem; }
  .section-title   { font-size: 1.5rem; }
  .hero-search-box { padding: 4px; }
  .chat-messages   { max-height: 320px; }
  .budiyet-toast   { min-width: 200px; max-width: calc(100vw - 48px); }

  .pro-list-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
