/* ========================================
   CARDS.CSS - Card Component Styles
   ======================================== */

.card {
  background-color: var(--color-bg-card);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== CARD HEADER ===== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: var(--border-width) solid var(--color-border);
}

.card-header h2,
.card-header h3 {
  margin-bottom: 0;
  font-size: var(--font-size-xl);
}

/* ===== CARD BODY ===== */
.card-body {
  color: var(--color-text);
}

/* ===== CARD FOOTER ===== */
.card-footer {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: var(--border-width) solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: var(--spacing-sm);
  animation: pulse 2s infinite;
}

.status-badge--live {
  background-color: rgba(46, 204, 113, 0.2);
  color: var(--color-success);
}

.status-badge--live::before {
  background-color: var(--color-success);
}

.status-badge--offline {
  background-color: rgba(231, 76, 60, 0.2);
  color: var(--color-danger);
}

.status-badge--offline::before {
  background-color: var(--color-danger);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ===== GENERAL BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.badge-coming-soon {
  background-color: rgba(241, 196, 15, 0.2);
  color: var(--color-warning);
}

/* ===== SPECIFIC CARD VARIANTS ===== */

/* Center Aesthetic Card */
.card-aesthetic {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(74, 198, 255, 0.1) 100%);
  border: var(--border-width) solid rgba(74, 198, 255, 0.3);
  text-align: center;
}

/* Stream Status Card */
.card-stream-status {
  margin-bottom: var(--spacing-lg);
}

/* Twitch Embed Card */
.card-twitch-embed {
  margin-bottom: var(--spacing-lg);
}

.twitch-embed-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.twitch-embed-container iframe,
.twitch-embed-container #twitch-embed {
  display: block;
  border: none;
  border-radius: var(--radius-md);
  width: 100%;
}

.twitch-embed-container iframe {
  display: block;
  border: none;
  border-radius: var(--radius-md);
}

/* Clips Card */
.card-clips .clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

/* Services Card */
.card-services {
  height: 100%;
}

.services-intro {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.services-subtitle {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--color-bg-dark);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--color-border);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.services-list-item:hover {
  border-color: var(--color-primary);
  background-color: rgba(74, 198, 255, 0.05);
}

.service-icon {
  font-size: var(--font-size-2xl);
  margin-right: var(--spacing-md);
  flex-shrink: 0;
}

.service-details h4 {
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-md);
}

.service-details p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.services-note {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-style: italic;
  margin-top: var(--spacing-lg);
  margin-bottom: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
  /* Ensure consistent spacing for all cards on mobile */
  .card {
    margin-bottom: var(--spacing-xl);
  }

  .card-stream-status,
  .card-twitch-embed,
  .card-clips,
  .card-services {
    margin-bottom: var(--spacing-xl);
  }
}
