/* ==========================================================================
   Echipa (echipa.asp) - carduri de agenti in formatul temei angluxury-nou
   (.team-grid / .team-card).
   ========================================================================== */
:root {
  --tm-gold: #c5a572;
  --tm-bg-card: #1a1a1a;
  --tm-border: rgba(197, 165, 114, 0.15);
  --tm-border-subtle: rgba(255, 255, 255, 0.08);
  --tm-text: #f5f0eb;
  --tm-text-secondary: #a09890;
  --tm-text-muted: #8a847d;
  --tm-font-display: "Cormorant Garamond", Georgia, serif;
  --tm-font-body: "Rubik", "Inter", sans-serif;
  --tm-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.team-section { margin: 0 0 40px; }
.team-section .section-header { margin-bottom: 28px; }
.team-section .section-header-center { text-align: center; }
.team-section .section-label {
  display: block;
  font-family: var(--tm-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tm-gold);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 8px;
  border: 1px solid var(--tm-border-subtle);
  background: var(--tm-bg-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card-link { cursor: pointer; }
.team-card:hover {
  border-color: var(--tm-gold);
  transform: translateY(-4px);
  box-shadow: var(--tm-shadow);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 2px solid var(--tm-border);
  transition: border-color 0.3s ease;
  display: block;
}
.team-card:hover .team-avatar { border-color: var(--tm-gold); }

.team-name {
  font-family: var(--tm-font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--tm-text);
  line-height: 1.25;
  margin-bottom: 4px;
}
.team-name a {
  color: inherit;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
}
.team-name a:hover { color: var(--tm-gold); text-decoration: none; }

.team-role {
  font-family: var(--tm-font-body);
  font-size: 12px;
  color: var(--tm-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-desc {
  font-family: var(--tm-font-body);
  font-size: 13px;
  color: var(--tm-text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
  padding: 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-stats {
  font-family: var(--tm-font-body);
  font-size: 13px;
  color: var(--tm-text-muted);
  line-height: 1.8;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--tm-border-subtle);
  width: 100%;
}
.team-stats .team-stat-count { color: var(--tm-text); }
.team-stats a {
  color: var(--tm-text-muted);
  font-size: 13px;
  font-family: var(--tm-font-body);
  text-decoration: none;
  transition: color 0.2s ease;
}
.team-stats a:hover { color: var(--tm-gold); text-decoration: none; }
.team-stats .fa { color: var(--tm-gold); font-size: 12px; }

@media (max-width: 1199px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Pagina agentului (oferteagenti.asp): fara borderul alb pe caseta agentului si pe formular */
.detail-agent .agent_info,
.detail-agent .agent .sidebar {
  border: 1px solid var(--tm-border) !important;
  background: var(--tm-bg-card);
  border-radius: 8px;
}
