/* ===== YOGA MODAL STYLES ===== */
/* Extends modal-base styles - only unique yoga modal styles */

/* Yoga Modal Specific Overrides */
.yoga-modal .modal-content {
  max-width: 900px; /* Wider than base for video grid */
}

/* Category Selection */
.yoga-categories {
  padding: 32px;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  border: 2px solid rgba(5, 150, 105, 0.1);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 18px;
}

.category-card:hover::before {
  opacity: 0.05;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.2);
  border-color: var(--brand);
}

.category-icon {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand-light) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.category-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  position: relative;
  z-index: 1;
}

.category-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  position: relative;
  z-index: 1;
}

.category-duration {
  background: var(--brand-light);
  color: var(--brand);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* Video Gallery */
.yoga-videos {
  padding: 32px;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
}

.video-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.video-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  border: 2px solid rgba(5, 150, 105, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(5, 150, 105, 0.15);
  border-color: var(--brand);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.video-thumbnail iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.video-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.video-duration {
  background: var(--brand-light);
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.video-level {
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .yoga-modal .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    margin: 20px;
  }

  .yoga-categories,
  .yoga-videos {
    padding: 24px 20px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    padding: 24px 20px;
  }

  .category-card h3 {
    font-size: 20px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .video-header h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .yoga-categories,
  .yoga-videos {
    padding: 20px 16px;
  }

  .category-card {
    padding: 20px 16px;
  }

  .video-info {
    padding: 16px;
  }
}