/* ========== EDC Page ========== */
.edc-hero {
  text-align: center;
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.edc-hero h1 {
  margin-bottom: var(--space-md);
}

.edc-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ========== Gallery Grid ========== */
.edc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .edc-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.edc-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-base);
}

.edc-card:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-4px);
}

.edc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.edc-card:hover img {
  transform: scale(1.05);
}

.edc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.edc-card:hover .edc-card-overlay {
  opacity: 1;
}

.edc-card-phone {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  margin-bottom: 4px;
}

.edc-card-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edc-card-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  display: flex;
  gap: var(--space-sm);
}

/* ========== Load More ========== */
.edc-load-more {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ========== Loading State ========== */
.edc-loading {
  text-align: center;
  padding: var(--space-4xl);
  color: var(--color-text-muted);
}

.edc-loading .spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-md);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Empty State ========== */
.edc-empty {
  text-align: center;
  padding: var(--space-4xl);
}

.edc-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}
