/* ==========================================
   Creator Cards Styles
   (Dedicated file to avoid global conflicts)
   ========================================== */

/* Local branding variables fallback - moved to root for global access */
:root {
  --primary-color: #38b6ff;
  --primary-dark: #2a9bd8;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
}

.creator-card {
  width: 85vw; /* Responsive for mobile */
  max-width: 340px; /* Fixed size for tablet/desktop */
  border-radius: 1.5rem;
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.creator-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px -5px rgba(56, 182, 255, 0.3),
    0 8px 10px -6px rgba(56, 182, 255, 0.2);
}

.creator-card a {
  text-decoration: none;
}

.creator-card .content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.creator-card .image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Adaptive height based on width (approx 190px at 340px width) */
  background: transparent;
  overflow: hidden;
}

.creator-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills the container completely */
  transition: transform 0.3s ease;
  padding: 0;
}

.creator-card:hover .image img {
  transform: scale(1.05);
}

.creator-card .title {
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.creator-card .subtitle {
  color: var(--primary-color);
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.creator-card .desc {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.creator-card .action {
  display: inline-flex;
  margin-top: auto; /* Push to bottom */
  color: #000000; /* Changed to black as requested */
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: fit-content;
}

.creator-card .action:hover {
  background-color: var(--primary-dark);
}

.creator-card .action span {
  transition: transform 0.3s ease;
}

.creator-card .action:hover span {
  transform: translateX(4px);
}

/* Pagination Dots */
.carousel-dot {
  width: 0.75rem; /* 12px */
  height: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.5); /* High contrast inactive */
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background-color: var(--primary-color); /* Branding color */
  transform: scale(1.2);
}
