
:root {
  --text-primary: #2c3e50;
  --text-secondary: #34495e;
  --text-muted: #7f8c8d;
  --link-color: #3273dc;
  --link-hover: #2366d1;
  --success-color: #48c78e;
  --warning-color: #ffdd57;
  --danger-color: #f14668;
  --info-color: #3e8ed0;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 2px 8px rgba(0,0,0,0.12);
  --border-radius: 6px;
  --transition-speed: 0.15s;
}

.hero-compact .hero-body {
  padding: 2rem 1.5rem !important;
}

.hero-title {
  font-size: 2rem !important;
  margin-bottom: 0.5rem !important;
}

.hero-subtitle {
  font-size: 1rem !important;
  margin-bottom: 0 !important;
}

.hero-content {
  font-size: 0.95rem !important;
  margin-top: 0.5rem;
}

.hero-content p {
  margin-bottom: 0.5rem !important;
}

@media screen and (max-width: 768px) {
  .hero-compact .hero-body {
    padding: 1.5rem 1rem !important;
  }
  
  .hero-title {
    font-size: 1.75rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
  }
  
  .hero-content {
    font-size: 0.85rem !important;
  }
}

.vendor-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

.vendor-card-link:hover,
.vendor-card-link:focus {
  text-decoration: none;
  color: inherit;
}

.vendor-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  height: 400px;
  display: flex;
  flex-direction: column;
  background: white;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

.vendor-card-link:hover .vendor-card {
  transform: translateY(-1px);
  box-shadow: var(--card-shadow-hover);
  border-color: #d0d0d0;
}

.vendor-card-link:focus .vendor-card {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

/* Card Content Layout */
.vendor-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  position: relative;
}

.vendor-card .media {
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.vendor-card .media-left {
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.vendor-card .media-content {
  overflow: hidden;
  flex: 1;
}

/* Vendor Header */
.vendor-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vendor-title {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
  text-rendering: optimizeLegibility;
}

/* Vendor Badges */
.vendor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: flex-start;
}

.vendor-badges .tag {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.7rem;
  height: auto;
  min-height: 1.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: 500;
  border: 1px solid transparent;
}

/* VIP Badge */
.vendor-badges .tag.is-warning {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  color: white;
  border: none;
}

/* Rating Badge */
.rating-badge {
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  color: #495057 !important;
  font-weight: 600 !important;
}

.rating-badge .fa-star {
  color: #f39c12 !important;
  margin-right: 0.2rem;
}

/* Category Tags */
.vendor-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.category-tag {
  font-size: 0.65rem !important;
  background-color: #f0f6ff !important;
  color: #2366d1 !important;
  border: 1px solid #d6e3f8 !important;
  padding: 0.2rem 0.4rem !important;
  border-radius: 3px !important;
}

.category-tag .icon {
  margin-right: 0.15rem;
}

.more-categories {
  background-color: #f5f5f5 !important;
  color: #666 !important;
  font-weight: 600 !important;
  border: 1px solid #ddd !important;
}

/* Content Sections */
.vendor-card .content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vendor-summary {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.75rem;
}

.vendor-meta {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

.vendor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  max-height: 4rem;
}

.vendor-tags .tag {
  font-size: 0.6rem;
  padding: 0.15rem 0.3rem;
  height: auto;
  border-radius: 2px;
}

/* Vendor Logo */
.vendor-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
}

.vendor-card .media-left .icon.is-large {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 50%;
  border: 1px solid #e9ecef;
}

/* Form Controls */
.field .label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.select select,
.input {
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.select select:focus,
.input:focus {
  border-color: var(--link-color);
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.1);
}

.select select:hover,
.input:hover {
  border-color: #b5b5b5;
}

select[multiple] {
  min-height: 120px !important;
  max-height: 180px !important;
  padding: 0.5rem;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background-color: white;
}

select[multiple] option {
  padding: 0.4rem;
  margin: 1px 0;
  border-radius: 2px;
}

select[multiple] option:hover {
  background-color: #f5f5f5;
}

select[multiple] option:checked {
  background-color: var(--link-color);
  color: white;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .vendor-card {
    height: auto;
    min-height: 260px;
  }

  .vendor-title {
    font-size: 1.05rem !important;
  }

  .vendor-summary {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .vendor-card .card-content {
    padding: 1rem;
  }

  .vendor-card .media {
    margin-bottom: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .vendor-title {
    font-size: 1rem !important;
  }

}

/* Dark Theme Support */
[data-theme="dark"] {
  --text-primary: #ecf0f1;
  --text-secondary: #bdc3c7;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 2px 8px rgba(0,0,0,0.4);
}

[data-theme="dark"] .vendor-title {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .vendor-summary {
  color: var(--text-secondary);
}

[data-theme="dark"] .vendor-meta {
  border-top-color: #4a4a4a;
}

[data-theme="dark"] .vendor-card {
  background-color: #2c3e50;
  border-color: #4a4a4a;
  box-shadow: var(--card-shadow);
}

[data-theme="dark"] .vendor-card-link:hover .vendor-card {
  border-color: #5a6a7a;
  box-shadow: var(--card-shadow-hover);
}

[data-theme="dark"] .category-tag {
  background-color: #34495e !important;
  color: #74b9ff !important;
  border-color: #4a4a4a !important;
}

[data-theme="dark"] .vendor-logo {
  border-color: #4a4a4a;
}

[data-theme="dark"] .rating-badge {
  background-color: #34495e !important;
  border-color: #4a4a4a !important;
  color: #ecf0f1 !important;
}

[data-theme="dark"] .field .label {
  color: var(--text-primary);
}

[data-theme="dark"] .select select,
[data-theme="dark"] .input {
  background-color: #34495e;
  border-color: #4a4a4a;
  color: #ecf0f1;
}

[data-theme="dark"] select[multiple] {
  background-color: #34495e;
  border-color: #4a4a4a;
  color: #ecf0f1;
}

[data-theme="dark"] select[multiple] option:hover {
  background-color: #4a4a4a;
}

/* Status Indicators */
.vendor-card[data-status="pending"] {
  border-left: 3px solid var(--warning-color);
}

.vendor-card[data-status="claimed"] {
  border-left: 3px solid var(--success-color);
}

.vendor-card[data-status="approved"] {
  border-left: 3px solid var(--info-color);
}

.vendor-card[data-status="rejected"] {
  border-left: 3px solid var(--danger-color);
  opacity: 0.6;
}

/* Accessibility */
@media (prefers-contrast: high) {
  .vendor-title {
    color: #000 !important;
    font-weight: 700 !important;
  }

  .vendor-summary {
    color: #333 !important;
  }

  .vendor-card {
    border: 2px solid #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vendor-card,
  .vendor-card-link {
    transition: none;
  }

  .vendor-card-link:hover .vendor-card {
    transform: none;
  }
}

/* Performance */
.vendor-card {
  will-change: transform;
}

.vendor-title {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
