/* ============================================
   VENDORS PAGE STYLES
   ============================================ */

/* Hero Banner */
.vendors-hero {
  position: relative;
  padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-bg-white);
  text-align: center;
  overflow: hidden;
}

.vendors-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
  background-size: 100px 100px;
  opacity: 0.3;
}

.vendors-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.vendors-hero-content {
  position: relative;
  z-index: 1;
}

.vendors-hero h1 {
  color: var(--color-bg-white);
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.vendors-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Vendor Section */
.vendors-section {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-light);
}

/* Vendor Grid */
.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--spacing-md);
}

/* Vendor Card */
.vendor-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--color-shadow);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.vendor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--color-shadow);
}

.vendor-card-inner {
  padding: var(--spacing-md);
}

/* Vendor Avatar (Initials) */
.vendor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  white-space: pre-line;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-sm);
  box-shadow: 0 4px 10px var(--color-shadow);
}

/* Vendor Names */
.vendor-names {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: var(--spacing-xs);
}

/* Vendor Company */
.vendor-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0;
}

/* Divider — always appears between header and about text */
.vendor-divider {
  border: none;
  height: 2px;
  background: var(--color-border);
  margin: var(--spacing-sm) 0;
}

/* Vendor About */
.vendor-about {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-medium);
  text-align: center;
}

/* Skeleton Loading */
.skeleton {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--color-shadow);
}

.skeleton-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin: 0 auto var(--spacing-sm);
}

.skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--spacing-xs);
}

.skeleton-text.short {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Error State */
.vendors-error {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  color: var(--color-text-light);
}

.vendors-error-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

/* Responsive */
@media (max-width: 768px) {
  .vendors-hero h1 {
    font-size: 2.25rem;
  }

  .vendors-hero p {
    font-size: 1.05rem;
  }

  .vendors-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vendors-hero {
    padding: calc(80px + var(--spacing-md)) 0 var(--spacing-md);
  }

  .vendors-hero h1 {
    font-size: 1.75rem;
  }
}
