/* Tercüman profil v2 — Ana sayfa / Tercüman Ara dili */
:root {
  --tp-primary: #1e5a9c;
  --tp-primary-dark: #0b3d5c;
  --tp-success: #047857;
  --tp-text: #1e293b;
  --tp-muted: #475569;
  --tp-border: #e2e8f0;
  --tp-bg: #f4f7fb;
  --tp-surface: #fff;
  --tp-radius: 14px;
  --tp-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
  --tp-focus: 0 0 0 3px rgba(30, 90, 156, 0.28);
}

body:has(.tp-page),
.tp-page {
  background: var(--tp-bg);
  color: var(--tp-text);
}

.tp-page {
  padding-bottom: 48px;
}

.tp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.tp-breadcrumb {
  padding: 18px 0 0;
}
.tp-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--tp-muted);
}
.tp-breadcrumb a {
  color: var(--tp-primary);
  text-decoration: none;
  font-weight: 500;
}
.tp-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #94a3b8;
}

/* Hero */
.tp-hero {
  padding: 18px 0 8px;
}
.tp-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 24px;
  align-items: start;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
  padding: 22px 24px;
}
.tp-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--tp-border);
}
.tp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tp-avatar__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tp-primary-dark);
  letter-spacing: 0.02em;
}

.tp-hero-main {
  min-width: 0;
}
.tp-hero-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}
.tp-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--tp-primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: break-word;
}
.tp-hero-sub,
.tp-hero-main > p.tp-hero-sub {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
  max-width: 46rem;
}
.tp-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--tp-muted);
}
.tp-meta-row i {
  color: var(--tp-primary);
  margin-right: 4px;
}
.tp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.tp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--tp-border);
  background: #f8fafc;
  color: var(--tp-text);
}
.tp-pill--corp {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}
.tp-pill--ind {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.tp-pill--muted {
  background: #f1f5f9;
  color: var(--tp-muted);
}
.tp-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tp-text);
}
.tp-rating i {
  color: #f59e0b;
}
.tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tp-btn:focus-visible {
  outline: none;
  box-shadow: var(--tp-focus);
}
.tp-btn--primary {
  background: var(--tp-primary);
  color: #fff;
}
.tp-btn--primary:hover {
  background: var(--tp-primary-dark);
  color: #fff;
}
.tp-btn--secondary {
  background: #fff;
  color: var(--tp-primary-dark);
  border-color: var(--tp-border);
}
.tp-btn--secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.tp-btn--wa {
  background: #059669;
  color: #fff;
}
.tp-btn--wa:hover {
  background: #047857;
  color: #fff;
}
.tp-btn:disabled,
.tp-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tp-network {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--tp-muted);
}
.tp-network strong {
  color: var(--tp-text);
}

/* Layout */
.tp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 20px 0 0;
  align-items: start;
}
.tp-main > * + * {
  margin-top: 18px;
}
.tp-panel {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
  padding: 20px 22px;
}
.tp-panel h2,
.tp-panel h3,
.skills-section-title,
.reviews-section-title,
.qa-section-title,
.sidebar-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tp-primary-dark);
  letter-spacing: -0.01em;
}
.tp-about {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}
.tp-about p,
.tp-about .text {
  margin: 0 0 0.85em;
  color: #334155;
}
.tp-disclaimer {
  font-size: 13px;
  line-height: 1.55;
  color: var(--tp-muted);
  background: #f8fafc;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  padding: 12px 14px;
}

/* Skills */
.skills-list-wrapper,
.tp-skills {
  display: grid;
  gap: 10px;
}
.skill-card-modern,
.tp-skill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: #fafbfc;
}
.skill-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.skill-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4fb;
  color: var(--tp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.skill-title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--tp-text);
  line-height: 1.35;
}
.skill-location {
  font-size: 12.5px;
  color: var(--tp-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.skill-yeminli-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tp-success);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

/* Sidebar */
.tp-sidebar {
  position: sticky;
  top: calc(var(--bc-hdr-h, 76px) + 12px);
}
.sidebar-modern,
.tp-side-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
  padding: 18px 18px 20px;
}
.contact-info-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.contact-info-item:last-of-type {
  border-bottom: none;
}
.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4fb;
  color: var(--tp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 2px;
}
.contact-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--tp-text);
  word-break: break-word;
}
.translator-whatsapp-btn,
.sidebar-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #059669;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.social-links-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social-link-modern {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--tp-primary-dark);
  text-decoration: none;
}
.website-btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--tp-border);
  background: #fff;
  color: var(--tp-primary-dark);
  font-weight: 600;
  text-decoration: none;
}
.tp-qr {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--tp-border);
  text-align: center;
}
.tp-qr h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--tp-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tp-qr img {
  width: 160px;
  height: 160px;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 8px;
}
.tp-qr p {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--tp-muted);
}

/* Reviews / Q&A — compact refresh of existing markup */
.reviews-section,
.qa-section-modern,
.rating-summary,
.review-form-modern,
.review-item-modern {
  /* inherit panel when nested */
}
.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--tp-border);
  margin-bottom: 16px;
}
.rating-big-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tp-primary-dark);
  line-height: 1;
}
.rating-stars-large i {
  color: #f59e0b;
}
.rating-total {
  font-size: 13px;
  color: var(--tp-muted);
  margin-top: 4px;
}
.review-item-modern,
.qa-item-modern {
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.review-item-modern:last-child,
.qa-item-modern:last-child {
  border-bottom: none;
}
.qa-question {
  font-size: 14px;
  margin-bottom: 6px;
}
.qa-answer {
  font-size: 13.5px;
  color: var(--tp-muted);
  padding-left: 8px;
  border-left: 3px solid #bfdbfe;
}

.network-follow-btn,
.network-message-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--tp-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--tp-primary-dark);
}
.network-follow-btn.following {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--tp-success);
}
.network-message-btn {
  background: var(--tp-primary);
  color: #fff;
  border-color: transparent;
}

.btn-ask-question,
.btn-ask-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--tp-border);
  background: #fff;
  color: var(--tp-primary-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.ask-question-block {
  margin: 4px 0 0;
}
.modal-ask-question-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-ask-question-box {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  width: min(480px, 100%);
  position: relative;
  box-shadow: var(--tp-shadow);
}
.modal-ask-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
}
.modal-ask-question-box textarea {
  width: 100%;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  padding: 12px;
  min-height: 110px;
  font: inherit;
}
.modal-ask-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}
.btn-modal-cancel,
.btn-modal-submit {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.btn-modal-cancel {
  border: 1px solid var(--tp-border);
  background: #fff;
}
.btn-modal-submit {
  border: 0;
  background: var(--tp-primary);
  color: #fff;
}

/* Hide legacy purple hero leftovers if any */
.translator-profile-header {
  display: none !important;
}

@media (max-width: 991px) {
  .tp-layout {
    grid-template-columns: 1fr;
  }
  .tp-sidebar {
    position: static;
  }
  .tp-hero-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .tp-avatar {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .tp-container {
    padding: 0 14px;
  }
  .tp-hero-card {
    padding: 16px;
  }
  .tp-actions .tp-btn {
    flex: 1 1 100%;
  }
  .rating-summary {
    grid-template-columns: 1fr;
  }
}

/* İlgili tercümanlar */
.tp-related {
  margin-top: 28px;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
}
.tp-related__head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tp-primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-related__head p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--tp-muted);
  line-height: 1.5;
}
.tp-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tp-related__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--tp-border);
  background: #f8fafc;
  text-decoration: none;
  color: var(--tp-text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.tp-related__card:hover {
  border-color: #bfdbfe;
  background: #fff;
  transform: translateY(-1px);
}
.tp-related__card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.tp-related__initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eef4fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--tp-primary-dark);
  font-size: 14px;
  flex-shrink: 0;
}
.tp-related__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-related__meta strong {
  font-size: 14.5px;
  font-weight: 700;
}
.tp-related__lang,
.tp-related__loc {
  font-size: 12.5px;
  color: var(--tp-muted);
}
.tp-related__cta {
  color: var(--tp-primary);
  opacity: 0.55;
  flex-shrink: 0;
}
.tp-related__empty {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}
.tp-related__empty a {
  color: var(--tp-primary);
  font-weight: 600;
}
@media (max-width: 720px) {
  .tp-related {
    padding: 20px 16px;
  }
  .tp-related__grid {
    grid-template-columns: 1fr;
  }
}
