/* css/vendedores.css - TerreNet Vendedores Premium Styles */

/* ========================================
   PAGE HEADER
   ======================================== */
.vendedores-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vendedores-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.vendedores-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.vendedores-header p {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Stats Bar */
.vendedores-stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.stats-bar-item {
  text-align: center;
}

.stats-bar-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
}

.stats-bar-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   FILTER BAR
   ======================================== */
.vendedores-filters {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-search {
  flex: 1;
  min-width: 200px;
}

.filter-search input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.filter-search input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.filter-select {
  padding: 0.6rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: #22c55e;
}

/* ========================================
   VENDEDORES GRID
   ======================================== */
.vendedores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

/* ========================================
   VENDEDOR CARD - Premium Design
   ======================================== */
.vendedor-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vendedor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.vendedor-card--pro {
  border-color: #fbbf24;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 30%);
}

.vendedor-card--pro::before {
  content: '⭐ PRO';
  position: absolute;
  top: 12px;
  right: -28px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 2rem;
  transform: rotate(45deg);
}

.vendedor-card--premium {
  border-color: #d97706;
  background: linear-gradient(180deg, #fef3c7 0%, #ffffff 30%);
}

.vendedor-card--premium::before {
  content: '👑 PREMIUM';
  position: absolute;
  top: 12px;
  right: -32px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 2rem;
  transform: rotate(45deg);
}

/* Avatar */
.vendedor-thumb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 3px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.vendedor-card--pro .vendedor-thumb {
  border-color: #fbbf24;
}

.vendedor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name & Badge */
.vendedor-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vendedor-actor {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.vendedor-empresa {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Stats */
.vendedor-stats {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin: 0.75rem 0;
  width: 100%;
  justify-content: center;
}

.vendedor-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vendedor-stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #16a34a;
}

.vendedor-stat__label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Actions */
.vendedor-actions {
  margin-top: auto;
  padding-top: 0.75rem;
  width: 100%;
}

.vendedor-actions .btn {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.empty-state__text {
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* ========================================
   SKELETON LOADING
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton--avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto;
}

.skeleton--text-short {
  height: 16px;
  width: 60%;
  margin: 0.5rem auto;
}

.skeleton--text {
  height: 14px;
  width: 80%;
  margin: 0.5rem auto;
}

.skeleton--button {
  height: 40px;
  margin-top: 1rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .vendedores-header {
    padding: 2rem 1rem;
  }
  
  .vendedores-header h1 {
    font-size: 1.5rem;
  }
  
  .vendedores-stats-bar {
    gap: 1.5rem;
  }
  
  .stats-bar-value {
    font-size: 1.25rem;
  }
  
  .vendedores-filters {
    flex-direction: column;
  }
  
  .filter-search {
    width: 100%;
  }
  
  .vendedores-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
