/* ============================================================
   Goathletic — pages/trainer-detail.css
   Eğitmen profil sayfası: hero, biyografi ve sertifika listesi.
   ============================================================ */

/* ── Geri butonu ────────────────────────────────────────── */
.back-btn {
  position: fixed;
  top: 5.5rem;
  left: 5%;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.back-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.back-btn:hover { color: #fff; }
.back-btn:hover svg { transform: translateX(-3px); }

/* ── Hero ───────────────────────────────────────────────── */
.profile-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

/* sol sütun: fotoğraf */
.profile-photo-col {
  position: relative;
  min-height: 100vh;
}
.profile-photo-col img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #1a0800 0%, #3d1400 100%);
}
/* sağa doğru siyah geçiş */
.profile-photo-col::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(to right, transparent, #000);
  pointer-events: none;
}
/* alta doğru siyah geçiş */
.profile-photo-col::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  z-index: 1;
  background: linear-gradient(to top, #000, transparent);
  pointer-events: none;
}

/* sağ sütun: bilgi */
.profile-info-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 7% 6rem 4%;
}
.profile-info-col::before {
  content: '';
  position: absolute;
  top: 40%;
  right: 10%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(255, 107, 0, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.profile-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.profile-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.profile-name {
  margin-bottom: 0.5rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.profile-name span { color: var(--accent); }

.profile-title {
  margin-bottom: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.profile-socials {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}
.profile-socials a {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.profile-socials a:hover {
  background: rgba(255, 107, 0, 0.14);
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
}
.profile-socials svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}
.profile-socials a:hover svg { stroke: var(--accent); }

.profile-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.profile-stat-n {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.profile-stat-n .acc { color: var(--accent); }
.profile-stat-l {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── İçerik ─────────────────────────────────────────────── */
.profile-content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 6rem 6% 8rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: start;
}
.profile-content .glass-card { padding: 2.4rem; }

.about-text {
  font-size: 0.93rem;
  line-height: 1.88;
  color: var(--text-soft);
  /* Biyografi düz metin olarak giriliyor — satır sonları korunsun. */
  white-space: pre-line;
}
.about-text p + p { margin-top: 1.1rem; }
.about-text strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

/* ── Sertifikalar ───────────────────────────────────────── */
.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, background 0.25s;
}
.cert-item:hover {
  border-color: rgba(255, 107, 0, 0.3);
  background: rgba(255, 107, 0, 0.05);
}
.cert-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ikon yerine sertifika görseli kullanıldığında */
.cert-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.cert-info {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.cert-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
}
.cert-meta {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}
.cert-year {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .profile-hero { grid-template-columns: 1fr; min-height: auto; }

  .profile-photo-col { height: 55vw; min-height: 320px; }
  .profile-photo-col::after {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, #000, transparent);
  }
  .profile-photo-col::before { display: none; }
  .profile-photo-placeholder { min-height: 0; }

  .profile-info-col { padding: 2.5rem 6% 4rem; }
  .profile-info-col::before { display: none; }

  .back-btn {
    position: static;
    display: inline-flex;
    margin: 5.5rem 5% -2rem;
  }

  .profile-content { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .profile-stats { gap: 1.4rem; }
}
