/* ============================================
   КомиссионерЪ — Team & Agent Card Styles
   team.css
   ============================================ */

/* ===== /team — страница команды ===== */

.team-page__header {
  background: var(--dark);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
}

.team-page__header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.team-page__header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

.team-page__grid-section {
  padding: 64px 0 80px;
  background: var(--gray-50);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.team-card__photo-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--dark);
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card__photo {
  transform: scale(1.04);
}

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, #2a2520 100%);
}

.team-card__photo-placeholder span {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(205, 35, 35, 0.5);
  letter-spacing: 2px;
}

.team-card__body {
  padding: 20px 20px 22px;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.team-card__position {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card__arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--brand);
  font-weight: 500;
  transition: transform 0.2s;
}

.team-card:hover .team-card__arrow {
  transform: translateX(4px);
}

/* Loading state */
.team-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--gray-400);
  font-size: 1rem;
}

/* ===== /team/:slug — визитка агента ===== */

.agent-card-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.agent-card {
  flex: 1;
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: calc(100vh - 72px);
}

@media (max-width: 900px) {
  .agent-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* Left: photo */
.agent-card__photo-col {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  min-height: 480px;
}

.agent-card__photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.agent-card__photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1A1714 0%, #2a2520 100%);
}

.agent-card__photo-placeholder span {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: rgba(205, 35, 35, 0.3);
}

/* Right: info */
.agent-card__info-col {
  padding: 64px 56px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .agent-card__info-col {
    padding: 40px 24px 48px;
  }
}

.agent-card__role-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand);
  margin-bottom: 12px;
}

.agent-card__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 8px;
}

.agent-card__position {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 400;
  margin-bottom: 28px;
}

.agent-card__divider {
  width: 48px;
  height: 3px;
  background: var(--brand);
  margin-bottom: 28px;
  border-radius: 2px;
}

.agent-card__bio {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 36px;
  max-width: 480px;
}

.agent-card__bio:empty {
  display: none;
}

/* Contact buttons */
.agent-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

.agent-card__contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.agent-card__contact-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.agent-card__contact-btn--phone {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.agent-card__contact-btn--phone:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.agent-card__contact-btn--tg {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-200);
}

.agent-card__contact-btn--tg:hover {
  border-color: #2AABEE;
  color: #2AABEE;
}

.agent-card__contact-btn--wa {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-200);
}

.agent-card__contact-btn--wa:hover {
  border-color: #25D366;
  color: #25D366;
}

.agent-card__contact-btn--email {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-200);
}

.agent-card__contact-btn--email:hover {
  border-color: var(--dark);
  color: var(--dark);
}

/* Hired date */
.agent-card__meta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* 404 state */
.agent-not-found {
  text-align: center;
  padding: 120px 24px;
  color: var(--gray-500);
}

.agent-not-found h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 12px;
}

/* Back link */
.agent-card__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 32px;
}

.agent-card__back:hover {
  color: var(--brand);
}
