/* ============================================================
 * ASKO Rulate Echipă — stiluri shortcode [asko_echipa]
 * Scoped sub .asko-echipa-wrap pentru a evita conflicte cu tema.
 * ============================================================ */
.asko-echipa-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 20px; box-sizing: border-box; }

.asko-echipa-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 30px;
  color: #1a1a1a;
}

/* ============ GRID LAYOUT ============ */
.asko-echipa-layout-grid .asko-echipa-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .asko-echipa-layout-grid .asko-echipa-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .asko-echipa-layout-grid .asko-echipa-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .asko-echipa-layout-grid .asko-echipa-list { grid-template-columns: 1fr; }
}

/* ============ CARD ============ */
.asko-echipa-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  word-break: break-word;
  box-sizing: border-box;
  min-width: 0;
}

.asko-echipa-card * { box-sizing: border-box; }

.asko-echipa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* ============ PHOTO ============ */
.asko-echipa-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.asko-echipa-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asko-echipa-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #bbb;
  background: #f5f5f5;
}

/* ============ INFO ============ */
.asko-echipa-info { width: 100%; }

.asko-echipa-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a1a;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.asko-echipa-position {
  font-size: 13px;
  color: var(--primary-color, #f91942);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.asko-echipa-location {
  font-size: 13px;
  color: #555;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  transition: color .2s ease;
}
a.asko-echipa-location:hover { color: var(--primary-color, #f91942); text-decoration: underline; }

.asko-echipa-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.asko-echipa-contact li { margin: 0; }

.asko-echipa-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color .2s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.asko-echipa-contact a:hover { color: var(--primary-color, #f91942); }

.asko-echipa-phone { font-weight: 600; color: #1a1a1a !important; }

/* ============ BUTON "VEZI MAȘINILE" (doar vânzători cu user WP) ============ */
.asko-echipa-btn-cars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--primary-color, #f91942);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 24px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
}

.asko-echipa-btn-cars:hover,
.asko-echipa-btn-cars:focus {
  background: var(--primary-hover, #d81536);
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 25, 66, .25);
}

.asko-echipa-btn-cars:active { transform: translateY(0); }

/* Variantă pentru layout list */
.asko-echipa-layout-list .asko-echipa-btn-cars {
  margin-top: 6px;
  margin-left: auto;
}

/* ============ LIST LAYOUT ============ */
.asko-echipa-layout-list .asko-echipa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.asko-echipa-layout-list .asko-echipa-card {
  flex-direction: row;
  text-align: left;
  align-items: center;
  padding: 16px 20px;
  gap: 20px;
}

.asko-echipa-layout-list .asko-echipa-photo {
  width: 80px;
  height: 80px;
  margin-bottom: 0;
}

.asko-echipa-layout-list .asko-echipa-photo-placeholder { font-size: 32px; }

.asko-echipa-layout-list .asko-echipa-info { flex: 1; }

.asko-echipa-layout-list .asko-echipa-position { margin-bottom: 6px; }

.asko-echipa-layout-list .asko-echipa-contact {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 18px;
}

@media (max-width: 600px) {
  .asko-echipa-layout-list .asko-echipa-card { flex-direction: column; text-align: center; }
  .asko-echipa-layout-list .asko-echipa-contact { justify-content: center; }
}

/* ============ CATEGORY-SPECIFIC ACCENTS ============ */
/* Default: orice categorie custom primește border roșu (primary) */
.asko-echipa-card[class*="asko-echipa-cat-"] { border-top: 3px solid var(--primary-color, #f91942); }
/* Override pentru categoriile clasice */
.asko-echipa-cat-management { border-top-color: #2271b1; }
.asko-echipa-cat-vanzari { border-top-color: var(--primary-color, #f91942); }

/* ============ MOBILE TWEAKS ============ */
@media (max-width: 768px) {
  .asko-echipa-wrap { padding: 20px 12px; }
  .asko-echipa-title { font-size: 22px; margin-bottom: 20px; }
  .asko-echipa-card { padding: 20px 12px; }
  .asko-echipa-photo { width: 110px; height: 110px; }
  .asko-echipa-name { font-size: 16px; }
  .asko-echipa-position { font-size: 11px; margin-bottom: 10px; }
  .asko-echipa-contact a { font-size: 12px; }
  .asko-echipa-btn-cars { font-size: 12px; padding: 9px 14px; }
}

@media (max-width: 480px) {
  .asko-echipa-card { padding: 18px 10px; }
  .asko-echipa-photo { width: 100px; height: 100px; }
  .asko-echipa-photo-placeholder { font-size: 40px; }
  .asko-echipa-btn-cars { width: 100%; }
}

/* ============ EMPTY STATE ============ */
.asko-echipa-empty {
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 8px;
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 14px;
}
