/* ==========================================================================
   Bireyle Psikolojik Danışma - Danışman Adayları Portalı
   Tasarım Felsefesi: Sakin, editoryal, ferah, insani ve güven verici.
   Yapay zeka klişelerinden (neon gradientler, süslü renkli haplar) arındırılmıştır.
   ========================================================================== */

:root {
  /* Renk Paleti - Sıcak Doğal Bej & Keten Zemin */
  --bg-app: #f4efe6;          /* Belirgin, sakin, sıcak doğal bej */
  --bg-card: #ffffff;         /* Saf beyaz kartlar (bej zemin üzerinde net ve ferah) */
  --bg-subtle: #eae3d6;       /* Kart içi hafif bej alanlar */
  --bg-hover: #e0d8ca;
  --bg-photo: #e9e2d5;        /* Fotoğraf kabini bej zemin */
  
  --text-main: #191c1f;
  --text-body: #3c4249;
  --text-muted: #646b75;
  --text-light: #88909c;
  
  --border-subtle: #ded6c8;
  --border-medium: #c7beae;
  
  --accent: #234d3f;          /* Sakin orman / adaçayı yeşili */
  --accent-hover: #19382d;
  --accent-surface: #e5ede8;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.06);

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --container-max: 1100px;
}

/* CSS Sıfırlama & Genel Ayarlar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-app);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Erişilebilirlik */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Konteyner */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Üst Kısım / Header */
.header {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-app);
}

.institution-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.meta-tag {
  color: var(--accent);
  font-weight: 600;
}

.meta-sep {
  color: var(--border-medium);
  user-select: none;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

/* Güven & Süreç Şeridi */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.trust-item p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Ana İçerik */
.main-content {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 32rem;
}

/* Minimal Arama Kutusu */
.filter-wrapper {
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.9rem;
  width: 280px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 77, 63, 0.12);
}

.search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-light);
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

/* Profil Kartları Grid */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

@media (max-width: 860px) {
  .profiles-grid {
    grid-template-columns: 1fr;
  }
}

/* Profil Kartı */
.profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-medium);
}

/* Kart Üst Başlık & Portre */
.card-hero {
  position: relative;
  background-color: var(--bg-photo);
  background-image: radial-gradient(circle at center 45%, #ffffff 0%, #ece8df 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  padding: 1.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-portrait {
  max-height: 220px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.07));
  transition: transform 0.25s ease;
}

.profile-card:hover .card-portrait {
  transform: translateY(-2px) scale(1.02);
}

/* Kart Gövdesi */
.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-info {
  margin-bottom: 1rem;
}

.candidate-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.candidate-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Süpervizör & Format Şeridi */
.meta-box {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 85px;
  flex-shrink: 0;
}

.meta-value {
  color: var(--text-main);
  font-weight: 500;
}

.meta-value.supervisor {
  font-weight: 600;
}

/* Açıklama / Aday Metni */
.card-description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* İletişim Aksiyon Alanı */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Telefon & Mail Butonları */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  flex-grow: 1;
  min-width: 0;
  transition: all 0.15s ease;
  min-height: 44px;
}

.action-btn svg {
  flex-shrink: 0;
}

/* Telefon Butonu - Ana Aksiyon */
.btn-phone {
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-phone:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

/* Mail Butonu - İkincil Aksiyon */
.btn-email {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}

.btn-email:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-email .btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Kopyalama Butonu */
.copy-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.copy-btn:active {
  transform: scale(0.96);
}

/* Konum Bilgisi (Varsa) */
.location-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 0.4rem;
}

.location-row svg {
  flex-shrink: 0;
  color: var(--text-light);
}

/* Bilgilendirme ve Süreç Rehberi */
.info-section {
  margin-top: 3.5rem;
}

.info-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.info-header-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.info-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.info-card-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.info-card-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-col {
  background-color: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.info-col-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.info-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.info-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.info-col p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-body);
}

/* Arama Sonucu Boş Durumu */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #ffffff;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.empty-state p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.btn-secondary {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: var(--text-muted);
}

/* Alt Bilgi / Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-app);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-meta {
  max-width: 40rem;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
}

/* Toast Bildirimi */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #1e2227;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  color: #52c41a;
}

/* Tablet ve Küçük Ekran Uyumu */
@media (max-width: 900px) {
  .info-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Mobil İyileştirmeleri */
@media (max-width: 640px) {
  .header {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .page-lead {
    font-size: 1.02rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .card-hero {
    height: 220px;
  }

  .card-portrait {
    max-height: 210px;
  }

  .action-row {
    flex-wrap: nowrap;
  }

  .search-box {
    width: 100%;
  }

  .filter-wrapper {
    width: 100%;
  }

  /* Bilgilendirme Alanı Mobil Düzeltmeleri */
  .info-section {
    margin-top: 2.5rem;
  }

  .info-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .info-header-block {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .info-card-title {
    font-size: 1.35rem;
  }

  .info-card-lead {
    font-size: 0.88rem;
  }

  .info-columns {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .info-col {
    padding: 1.15rem 1rem;
  }

  .info-col h4 {
    font-size: 0.98rem;
  }

  .info-col p {
    font-size: 0.88rem;
    line-height: 1.6;
    word-break: break-word;
  }

  .toast {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    justify-content: center;
  }
}
