/* Videos Page Styles - Editable CSS File */
/* Access via: http://localhost:3000/css/videos.css */

/* Container */
.videos-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.videos-main {
  flex-grow: 1;
  padding: 3rem 0;
}

.videos-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.videos-header {
  text-align: center;
  margin-bottom: 3rem;
}

.videos-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ddeaee;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.videos-title-icon {
  color: #475569;
}

.videos-description {
  color: #64748b;
  font-size: 1.125rem;
}

.videos-subtitle {
  color: #64748b;
  font-size: 1.125rem;
}

/* Loading State */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .loading-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .loading-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.loading-card {
  background: #e5e7eb;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  height: 16rem;
  border-radius: 0.5rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Video Card */
.video-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Video Thumbnail */
.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1e293b;
}

.video-thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail-image {
  transform: scale(1.1);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #10b981;
  transition: all 0.3s ease;
}

.video-card:hover .play-button {
  background: white;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Video Info */
.video-info {
  padding: 1.5rem;
}

.video-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #c9d0dc;
}

.video-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Empty State */
.videos-empty-state {
  text-align: center;
  padding: 5rem 0;
}

.videos-empty-icon {
  font-size: 4rem;
  color: #d1d5db;
  margin: 0 auto 1rem;
  display: block;
}

.videos-empty-text {
  color: #6b7280;
  font-size: 1.25rem;
}

.empty-state {
  text-align: center;
  padding: 5rem 0;
}

.empty-icon {
  font-size: 4rem;
  color: #d1d5db;
  margin: 0 auto 1rem;
  display: block;
}

.empty-text {
  color: #6b7280;
  font-size: 1.25rem;
}

/* Video Modal - EDIT THIS TO CHANGE MODAL STYLE */
.video-modal {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem !important;
  /* ⭐ Add your custom styles here */
}

.video-modal-content-wrapper {
  position: relative !important;
  max-width: 90% !important;
  max-height: 90vh !important;
  width: 100% !important;
  /* ⭐ Add your custom styles here */
}

.video-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  padding: 1rem;
}

.video-modal-player-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  margin-bottom: 1rem !important;
  background: black !important;
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  /* ⭐ Add your custom styles here */
}

.video-modal-info {
  background: white !important;
  border-radius: 0.5rem !important;
  padding: 1.5rem !important;
  /* ⭐ Add your custom styles here */
}

.video-modal-player {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
}

.video-modal-info {
  padding: 1.5rem;
}

.video-modal-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
  color: #1e293b !important;
  /* ⭐ Add your custom styles here */
}

.video-modal-description {
  color: #64748b !important;
  line-height: 1.6 !important;
  /* ⭐ Add your custom styles here */
}

.video-modal-close {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  background: rgba(0, 0, 0, 0.5) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 3rem !important;
  height: 3rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  cursor: pointer !important;
  z-index: 1001 !important;
  backdrop-filter: blur(8px) !important;
  transition: background 0.3s ease !important;
  /* ⭐ Add your custom styles here */
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .videos-title {
    font-size: 2rem;
  }
  
  .videos-grid {
    grid-template-columns: 1fr;
  }
  
  .video-modal-content {
    max-width: 95%;
    padding: 0.5rem;
  }
}

