/* ============================================================================
   doktorportal.com.tr — Tasarım Sistemi (mavi + teal)
   Yasal not: yıldız/amber puan rengi YOK (puanlama yok).
   ========================================================================== */

:root {
  /* Mavi palet */
  --primary:        #1E5FD8;
  --primary-dark:   #0F3D8C;
  --primary-light:  #4F8DF0;
  --soft-tint:      #EAF2FF;
  --secondary:      #14B8A6;  /* teal — Doğrulanmış Hekim, müsait slot */
  --secondary-dark: #0E8C7E;
  --accent:         #00C2FF;

  /* Nötr */
  --text:           #0B1220;
  --text-2:         #475569;
  --text-3:         #94A3B8;
  --border:         #E2E8F0;
  --bg:             #F8FAFC;
  --white:          #FFFFFF;

  /* Durum */
  --success:        #16A34A;
  --warning:        #F59E0B;
  --danger:         #DC2626;

  /* Ölçü */
  --radius:         12px;
  --radius-lg:      16px;
  --radius-sm:      8px;
  --shadow-sm:      0 2px 8px rgba(15,23,42,.06);
  --shadow-md:      0 6px 20px rgba(15,23,42,.10);
  --shadow-primary: 0 4px 14px rgba(30,95,216,.25);
  --container:      1180px;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head:      'Poppins', var(--font);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.grid { display: grid; gap: 24px; }
.text-center { text-align: center; }
.muted { color: var(--text-2); }
.eyebrow { color: var(--primary); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }

/* --- Butonlar --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--soft-tint); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--soft-tint); color: var(--primary); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- Kart --- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.card-pad { padding: 24px; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* --- Badge / rozet --- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge-verified { background: rgba(20,184,166,.12); color: var(--secondary-dark); }
.badge-online   { background: rgba(0,194,255,.12);  color: #0284c7; }
.badge-soft     { background: var(--soft-tint); color: var(--primary); }
.badge-pending  { background: rgba(245,158,11,.14); color: #b45309; }
.badge-passive  { background: #f1f5f9; color: var(--text-2); }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--primary-dark); }
.logo .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--secondary); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-2); font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); color: #fff; padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::after { content:''; position:absolute; right:-120px; top:-120px; width:420px; height:420px; background: radial-gradient(circle, rgba(0,194,255,.35), transparent 70%); }
.hero h1 { color: #fff; max-width: 720px; }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 560px; margin-top: 14px; }
.hero-stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 1.6rem; display: block; }
.hero-stats .stat span { color: rgba(255,255,255,.85); font-size: .9rem; }

/* --- Arama kutusu --- */
.search-box { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(15,23,42,.18); padding: 14px; display: flex; gap: 10px; max-width: 760px; margin-top: 30px; }
.search-box .field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius); }
.search-box .field + .field { border-left: 1px solid var(--border); }
.search-box input, .search-box select { border: none; outline: none; font-size: 1rem; width: 100%; background: transparent; color: var(--text); }
.search-toggle { display: inline-flex; background: var(--soft-tint); border-radius: 999px; padding: 4px; margin-top: 18px; }
.search-toggle label { padding: 7px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--primary-dark); cursor: pointer; }
.search-toggle input { display: none; }
.search-toggle input:checked + label { background: #fff; box-shadow: var(--shadow-sm); }

/* --- Branş çipleri / kartlar --- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: rgba(255,255,255,.16); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; transition: background .15s; }
.chip:hover { background: rgba(255,255,255,.28); color: #fff; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.spec-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; }
.spec-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--soft-tint); display: grid; place-items: center; color: var(--primary); font-size: 1.4rem; }
.spec-card .nm { font-weight: 600; color: var(--text); }
.spec-card .ct { font-size: .85rem; color: var(--text-3); }

/* --- Doktor kartı --- */
.doctor-card { display: flex; gap: 18px; padding: 20px; }
.doctor-card .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--soft-tint); flex-shrink: 0; }
.doctor-card .avatar-ph { display: grid; place-items: center; color: var(--primary); font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; }
.doctor-card .info { flex: 1; min-width: 0; }
.doctor-card .name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.doctor-card .spec { color: var(--primary); font-size: .92rem; font-weight: 500; }
.doctor-card .meta { color: var(--text-2); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.doctor-card .meta .item { display: inline-flex; align-items: center; gap: 5px; }
.doctor-card .next-slot { color: var(--secondary-dark); font-weight: 600; font-size: .9rem; margin-top: 8px; }
.doctor-card .actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

/* --- Doktor profil --- */
.profile-head { display: flex; gap: 24px; align-items: flex-start; }
.profile-head .avatar { width: 130px; height: 130px; border-radius: 20px; object-fit: cover; }
.profile-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.sticky-book { position: sticky; top: 88px; }
.section-title { font-size: 1.15rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--soft-tint); }
.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-list li { display: flex; gap: 10px; color: var(--text-2); }
.info-list li b { color: var(--text); min-width: 130px; }

/* --- Slot takvimi --- */
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.slot-day { min-width: 92px; text-align: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: .85rem; }
.slot-day.active { border-color: var(--primary); background: var(--soft-tint); }
.slot-day .d { font-weight: 700; color: var(--text); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px,1fr)); gap: 8px; margin-top: 14px; }
.slot { padding: 9px 6px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .12s; color: var(--secondary-dark); }
.slot:hover { border-color: var(--secondary); background: rgba(20,184,166,.08); }
.slot.selected { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.slot.taken { color: var(--text-3); background: var(--bg); cursor: not-allowed; text-decoration: line-through; }

/* --- Formlar --- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--text); }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,95,216,.12); }
.form-help { font-size: .82rem; color: var(--text-3); margin-top: 4px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.checkbox input { margin-top: 3px; }

/* --- Filtre paneli --- */
.layout-listing { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filter-panel { position: sticky; top: 88px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.filter-group h4 { font-size: .95rem; margin-bottom: 10px; }

/* --- Flash / uyarı --- */
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .95rem; border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info    { background: var(--soft-tint); border-color: #cfe0fb; color: var(--primary-dark); }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* --- Paket tablosu --- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.price-card { padding: 28px; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-md); transform: scale(1.02); }
.price-card .pname { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.price-card .pprice { font-size: 2.2rem; font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); margin: 12px 0 2px; }
.price-card .pprice small { font-size: .9rem; color: var(--text-3); font-weight: 500; }
.price-card ul.feat { margin: 18px 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-card ul.feat li { display: flex; gap: 9px; color: var(--text-2); font-size: .92rem; }
.price-card ul.feat li.no { color: var(--text-3); text-decoration: line-through; }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; }

/* --- Footer --- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.78); padding: 56px 0 28px; margin-top: 64px; }
.site-footer h5 { color: #fff; font-size: .98rem; margin-bottom: 14px; font-family: var(--font-head); }
.site-footer a { color: rgba(255,255,255,.78); font-size: .9rem; line-height: 2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* --- Panel / Admin shell --- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.shell-side { background: var(--primary-dark); color: #fff; padding: 22px 16px; }
.shell-side .logo { color: #fff; margin-bottom: 26px; }
.shell-side a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius); color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 4px; }
.shell-side a:hover, .shell-side a.active { background: rgba(255,255,255,.12); color: #fff; }
.shell-main { padding: 28px 32px; background: var(--bg); }
.shell-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; }
.stat-card { padding: 20px; }
.stat-card .v { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--primary-dark); }
.stat-card .l { color: var(--text-2); font-size: .9rem; }

/* --- Tablo --- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 13px 16px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--border); }
.table th { background: var(--soft-tint); color: var(--primary-dark); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }

/* --- Yardımcılar --- */
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex{display:flex}.flex-between{display:flex;justify-content:space-between;align-items:center}
.gap-1{gap:8px}.gap-2{gap:16px}.wrap{flex-wrap:wrap}.items-center{align-items:center}

/* --- Mobil --- */
@media (max-width: 900px) {
  .profile-grid, .layout-listing { grid-template-columns: 1fr; }
  .pricing, .footer-grid { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .shell-side { display: none; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .search-box { flex-direction: column; }
  .search-box .field + .field { border-left: none; border-top: 1px solid var(--border); }
  .mobile-book-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.1); padding: 12px 16px; z-index: 40; }
}
