/* ============================================================
   DANIŞMANLAR — team.css  v3.0
   Firma modu (çoklu danışman) + Solo modu (tek danışman)
   4 kart stili: default | modern | minimal | horizontal
   Professional Card Design — 2026
   ============================================================ */

/* ══════════════════════════════════════════
   SHARED — Rating Stars & Common Elements
   ══════════════════════════════════════════ */
.agent-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.agent-stars .star-filled { color: #f59e0b; }
.agent-stars .star-half { color: #f59e0b; }
.agent-stars .star-empty { color: #e5e7eb; }

/* Accent button */
.btn-accent {
  background: var(--color-accent, #c9a96e);
  color: #fff;
  border: none;
}
.btn-accent:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px -4px var(--color-accent, rgba(201,169,110,.4));
}

/* WhatsApp Button */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
}
.btn-whatsapp:hover {
  background: #20BD5A;
}

/* ══════════════════════════════════════════
   SECTION — TEAM (Firma Modu — Çoklu)
   ══════════════════════════════════════════ */
.section-team {
  background: var(--agents-bg, var(--color-white));
}

/* ---------- TEAM GRID (dynamic cols) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(var(--team-cols, 3), 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ──────────────────────────────────────────
   DEFAULT CARD STYLE — Referans görseldeki 
   horizontal header + bilgi satırları
   ────────────────────────────────────────── */
.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  border: 1px solid var(--color-gray-100, #f3f4f6);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  box-shadow: 0 8px 32px -8px rgba(0,0,0,.08);
  border-color: var(--color-gray-200, #e5e7eb);
}

/* — Card Header: avatar + identity + badge — */
.team-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 0;
  position: relative;
}

.team-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-gray-50, #f9fafb);
  border: 3px solid var(--color-accent, #c9a96e);
}
.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent, #c9a96e);
  background: color-mix(in srgb, var(--color-accent, #c9a96e) 8%, transparent);
}

.team-card-identity {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.team-title {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-gray-500, #6b7280);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* Rating */
.team-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.team-rating-num {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
}
.team-rating-count {
  font-size: 0.75rem;
  color: var(--color-gray-400, #9ca3af);
  font-weight: 400;
}

/* Experience Badge */
.team-exp-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  border: 1px solid var(--color-gray-200, #e5e7eb);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  background: var(--color-white);
}

/* — Card Body: info rows — */
.team-card-body {
  padding: 16px 24px 0;
  flex: 1;
}

/* Info rows (Konuşulan Diller, İlan Sayısı) */
.team-info-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--color-gray-100, #f3f4f6);
  font-size: 0.8125rem;
}
.team-info-row:first-child {
  border-top: 1px solid var(--color-gray-100, #f3f4f6);
}
.team-info-label {
  color: var(--color-gray-400, #9ca3af);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}
.team-info-value {
  color: var(--color-primary);
  font-weight: 500;
}
.team-info-value strong {
  font-weight: 700;
}

/* Specialties row */
.team-specs-row {
  padding: 12px 0;
  border-top: 1px solid var(--color-gray-100, #f3f4f6);
}
.team-specs-row .team-info-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
}
.team-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team-tag {
  padding: 5px 14px;
  background: color-mix(in srgb, var(--color-accent, #c9a96e) 8%, transparent);
  color: var(--color-accent-dark, var(--color-accent, #c9a96e));
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--color-accent, #c9a96e) 15%, transparent);
  transition: all 0.2s ease;
}
.team-tag:hover {
  background: var(--color-accent, #c9a96e);
  color: #fff;
  border-color: var(--color-accent, #c9a96e);
}

/* — Card Footer: contact icons + profile button — */
.team-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 20px;
  margin-top: auto;
  border-top: 1px solid var(--color-gray-100, #f3f4f6);
  background: var(--color-gray-50, #f9fafb);
}

.team-contact-links {
  display: flex;
  gap: 6px;
}
.team-contact-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-gray-500, #6b7280);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200, #e5e7eb);
  transition: all 0.2s ease;
  text-decoration: none;
}
.team-contact-link svg {
  width: 15px;
  height: 15px;
}
.team-contact-link:hover {
  color: var(--color-accent, #c9a96e);
  border-color: var(--color-accent, #c9a96e);
  background: color-mix(in srgb, var(--color-accent, #c9a96e) 6%, transparent);
}
.team-contact-link--wa:hover {
  color: #25D366;
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.06);
}

.team-profile-btn {
  font-size: 0.8125rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}


/* ══════════════════════════════════════════
   CARD STYLE VARIATIONS
   ══════════════════════════════════════════ */

/* — MODERN: Centered avatar, name & title — */
.team-card--modern .team-card-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 32px;
}
.team-card--modern .team-card-avatar {
  width: 88px;
  height: 88px;
}
.team-card--modern .team-card-identity {
  align-items: center;
  display: flex;
  flex-direction: column;
}
.team-card--modern .team-rating {
  justify-content: center;
}
.team-card--modern .team-exp-badge {
  position: static;
  margin-top: 8px;
}
.team-card--modern .team-card-body {
  text-align: center;
}
.team-card--modern .team-info-row {
  justify-content: center;
}
.team-card--modern .team-specs-row {
  text-align: center;
}
.team-card--modern .team-specs-row .team-info-label {
  text-align: center;
}
.team-card--modern .team-specialties {
  justify-content: center;
}
.team-card--modern .team-card-footer {
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.team-card--modern .team-contact-links {
  justify-content: center;
}

/* — MINIMAL: No borders, subtle bg — */
.team-card--minimal {
  border: none;
  box-shadow: none;
  background: transparent;
}
.team-card--minimal:hover {
  box-shadow: none;
  background: var(--color-gray-50, #f9fafb);
}
.team-card--minimal .team-card-footer {
  background: transparent;
  border-top: none;
  padding-top: 8px;
}
.team-card--minimal .team-card-avatar {
  border-width: 2px;
}

/* — HORIZONTAL: Full-width list style — */
.team-grid--horizontal {
  grid-template-columns: 1fr !important;
  gap: 16px;
}
.team-card--horizontal {
  flex-direction: row;
  align-items: stretch;
}
.team-card--horizontal .team-card-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  border-right: 1px solid var(--color-gray-100, #f3f4f6);
  min-width: 220px;
  max-width: 250px;
}
.team-card--horizontal .team-card-avatar {
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
}
.team-card--horizontal .team-card-identity {
  align-items: center;
  display: flex;
  flex-direction: column;
}
.team-card--horizontal .team-exp-badge {
  position: static;
  margin-top: 10px;
}
.team-card--horizontal .team-rating {
  justify-content: center;
}
.team-card--horizontal .team-card-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-card--horizontal .team-card-footer {
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 180px;
  border-top: none;
  border-left: 1px solid var(--color-gray-100, #f3f4f6);
}
.team-card--horizontal .team-contact-links {
  justify-content: center;
}


/* ══════════════════════════════════════════
   SECTION — SOLO AGENT (Tek Danışman Modu)
   Professional Split Layout
   ══════════════════════════════════════════ */
.section-solo-agent {
  background: var(--agents-bg, var(--color-white));
  overflow: hidden;
}

.solo-agent-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

/* ---------- IMAGE SIDE ---------- */
.solo-agent-image {
  position: relative;
}

.solo-agent-img-wrap {
  position: relative;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.solo-agent-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.solo-agent-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-50, #f9fafb);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-accent, #c9a96e);
}

/* Experience badge on image */
.solo-agent-exp-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.solo-agent-exp-badge svg {
  color: var(--color-accent);
}

/* ---------- CONTENT SIDE ---------- */
.solo-agent-content {
  padding: 20px 0;
}
.solo-agent-content .section-label {
  margin-bottom: 12px;
}

.solo-agent-name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--heading-weight, 700);
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.solo-agent-title {
  font-size: 0.9375rem;
  color: var(--color-gray-500, #6b7280);
  font-weight: 400;
  margin-bottom: 16px;
}

/* Rating in solo */
.solo-agent-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.agent-rating-num {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
}
.agent-rating-count {
  font-size: 0.8125rem;
  color: var(--color-gray-400, #9ca3af);
}

.solo-agent-bio {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-gray-500);
  margin-bottom: 24px;
  max-width: 500px;
}

/* Info rows for solo */
.solo-agent-info-rows {
  margin-bottom: 20px;
}
.solo-info-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--color-gray-100, #f3f4f6);
  font-size: 0.875rem;
}
.solo-info-label {
  color: var(--color-gray-400, #9ca3af);
  font-weight: 400;
  flex-shrink: 0;
}
.solo-info-value {
  color: var(--color-primary);
  font-weight: 500;
}
.solo-info-value strong {
  font-weight: 700;
}

/* Specialties for solo */
.solo-agent-specialties {
  margin-bottom: 24px;
}
.solo-specs-label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-gray-400, #9ca3af);
  margin-bottom: 10px;
}
.solo-specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.solo-specialty-tag {
  padding: 7px 18px;
  background: color-mix(in srgb, var(--color-accent, #c9a96e) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent, #c9a96e) 15%, transparent);
  color: var(--color-accent-dark, var(--color-accent, #c9a96e));
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.solo-specialty-tag:hover {
  background: var(--color-accent, #c9a96e);
  color: #fff;
  border-color: var(--color-accent, #c9a96e);
}

/* Actions */
.solo-agent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-100, #f3f4f6);
}


/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (max-width: 1024px)
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
    margin-top: 40px;
  }
  .team-card--horizontal {
    flex-direction: column;
  }
  .team-card--horizontal .team-card-header {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-100, #f3f4f6);
    min-width: auto;
    max-width: none;
  }
  .team-card--horizontal .team-card-footer {
    border-left: none;
    border-top: 1px solid var(--color-gray-100, #f3f4f6);
    min-width: auto;
    flex-direction: row;
  }
  .solo-agent-wrapper {
    gap: 48px;
  }
}


/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (max-width: 768px)
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-top: 32px;
  }

  .team-card-header {
    padding: 20px 20px 0;
  }
  .team-card-avatar {
    width: 64px;
    height: 64px;
  }
  .team-name {
    font-size: 0.9375rem;
  }
  .team-title {
    font-size: 0.75rem;
  }
  .team-exp-badge {
    font-size: 0.625rem;
    padding: 4px 10px;
    top: 16px;
    right: 16px;
  }
  .team-card-body {
    padding: 12px 20px 0;
  }
  .team-info-row {
    font-size: 0.75rem;
    padding: 8px 0;
  }
  .team-specs-row .team-info-label {
    font-size: 0.75rem;
  }
  .team-tag {
    font-size: 0.625rem;
    padding: 4px 10px;
  }
  .team-card-footer {
    padding: 14px 20px 16px;
  }
  .team-contact-link {
    width: 32px;
    height: 32px;
  }
  .team-contact-link svg {
    width: 13px;
    height: 13px;
  }
  .team-profile-btn {
    font-size: 0.75rem;
    padding: 7px 16px;
  }

  /* Solo */
  .solo-agent-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .solo-agent-img-wrap {
    max-width: 360px;
    margin: 0 auto;
  }
  .solo-agent-content {
    padding: 0;
    text-align: center;
  }
  .solo-agent-bio {
    margin-left: auto;
    margin-right: auto;
  }
  .solo-agent-info-rows {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .solo-agent-specialties {
    text-align: center;
  }
  .solo-specs-tags {
    justify-content: center;
  }
  .solo-agent-actions {
    justify-content: center;
  }
}


/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  .team-card-header {
    padding: 16px 16px 0;
    gap: 12px;
  }
  .team-card-avatar {
    width: 56px;
    height: 56px;
    border-width: 2px;
  }
  .team-card-initials {
    font-size: 1rem;
  }
  .team-card-body {
    padding: 10px 16px 0;
  }
  .team-card-footer {
    padding: 12px 16px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .team-profile-btn {
    flex: 1;
    justify-content: center;
  }

  /* Solo */
  .solo-agent-name {
    font-size: 1.5rem;
  }
  .solo-agent-bio {
    font-size: 0.875rem;
  }
  .solo-specialty-tag {
    padding: 5px 12px;
    font-size: 0.75rem;
  }
  .solo-agent-actions {
    flex-direction: column;
  }
  .solo-agent-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
