/* Video Gallery List Styles */
.video-gallery-header {
  margin-bottom: 2rem;
  text-align: center;
}

.video-gallery-header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #333;
  margin-bottom: 0.5rem;
}

.faculty-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Filter Styles */
.video-gallery-filter {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.filter-form .filter-inputs {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.filter-inputs input[type="text"] {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  padding-right: 35px;
}

.search-help {
  position: absolute;
  right: 8px;
  cursor: help;
  color: #6c757d;
  z-index: 10;
}

.search-help svg {
  width: 16px;
  height: 16px;
}

.search-help:hover .search-tooltip {
  visibility: visible;
  opacity: 1;
}

.search-tooltip {
  position: absolute;
  bottom: 25px;
  right: 0;
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
  max-width: 250px;
  white-space: normal;
  line-height: 1.3;
}

.search-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 10px;
  border: 5px solid transparent;
  border-top-color: #333;
}

.filter-inputs select {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  min-width: 200px;
  background: white;
}

.filter-button, .reset-filter-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button {
  background: #007bff;
  color: white;
}

.filter-button:hover {
  background: #0056b3;
}

.reset-filter-button {
  background: #6c757d;
  color: white;
}

.reset-filter-button:hover {
  background: #545b62;
}

/* Video Gallery Grid */
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.video-gallery-item {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

/* Video Thumbnail */
.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.02);
}

.no-thumbnail {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
}

.no-thumbnail svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
}

.no-thumbnail-text {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* Play Overlay - Minimalistic */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-thumbnail:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay svg {
  width: 1.2rem;
  height: 1.2rem;
  color: #333;
}

/* Video Play Button - Minimalistic */
.video-play-button {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border-radius: 16px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.video-thumbnail:hover .video-play-button {
  opacity: 1;
  transform: translateY(0);
}

.video-play-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.video-play-button svg {
  width: 12px;
  height: 12px;
}

.video-play-button span {
  color: #333;
}

/* Video Content */
.video-content {
  padding: 1.5rem;
}

.video-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.video-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.video-title a:hover {
  color: #007bff;
}

.video-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Video Meta */
.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #666;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.video-meta svg {
  width: 1rem;
  height: 1rem;
}

/* Single Video Gallery Styles */
.video-gallery-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.video-header {
  text-align: center;
  margin-bottom: 2rem;
}

.video-header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #333;
  margin-bottom: 1rem;
}

.video-description {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #555;
}

/* Video Player */
.video-player {
  margin-bottom: 2rem;
}

.video-thumbnail-container {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-thumbnail-container:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.video-main-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumbnail-container:hover .video-main-thumbnail {
  transform: scale(1.02);
}

.no-video-thumbnail {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
  border-radius: 8px;
}

.no-video-thumbnail svg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}

/* Play overlay for single page - Enhanced */
.video-thumbnail-container .play-overlay,
.no-video-thumbnail .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-container:hover .play-overlay,
.no-video-thumbnail:hover .play-overlay {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.play-overlay svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.15rem;
}

.play-overlay .play-text {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Video Actions */
.video-actions {
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary svg {
  width: 1rem;
  height: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-left: 0.75rem;
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #ccc;
  color: #333;
  transform: translateY(-1px);
}

.btn-secondary svg {
  width: 1rem;
  height: 1rem;
}

/* Video play button specific styling */
.video-play-btn {
  background: #333 !important;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
}

.video-play-btn:hover {
  background: #222 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* No video message */
.no-video-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #6c757d;
  text-align: center;
  padding: 2rem;
}

.no-video-message svg {
  width: 3rem;
  height: 3rem;
}

.no-video-message p {
  margin: 0;
  font-size: 1.1rem;
}

/* Video Lightbox - Enhanced */
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  animation: lightboxFadeIn 0.4s ease-out;
}

/* Ensure lightbox is visible when shown */
.video-lightbox.show {
  display: flex !important;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lightboxSlideIn 0.4s ease-out;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.1);
  min-width: 800px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close:active {
  transform: scale(0.95);
}

.lightbox-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.video-container {
  aspect-ratio: 16/9;
  max-width: 100%;
  width: 100%;
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-height: 450px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.lightbox-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-video-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
}

.no-video-content svg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}

.lightbox-info {
  display: none;
}

.lightbox-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.lightbox-info p {
  margin: 0;
  color: #666;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Lightbox Animations */
@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightboxSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Body scroll lock when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 3rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.no-results svg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}

.no-results p {
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .filter-inputs {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-inputs input[type="text"],
  .filter-inputs select {
    min-width: auto;
    width: 100%;
  }

  .video-gallery-single {
    padding: 1rem;
  }

  .video-header h1 {
    font-size: 2rem;
  }

  .video-meta {
    justify-content: center;
  }

  .lightbox-content {
    max-width: 98vw;
    max-height: 95vh;
    border-radius: 8px;
    min-width: auto;
  }

  .lightbox-close {
    top: -45px;
    right: 5px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .lightbox-info {
    display: none;
  }

  .video-container {
    max-width: 100%;
    border-radius: 8px;
    min-height: 300px;
  }

  .video-thumbnail-container {
    border-radius: 8px;
  }

  .video-thumbnail-container:hover {
    transform: translateY(-2px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .video-gallery-header h1 {
    font-size: 2rem;
  }

  .video-header h1 {
    font-size: 1.75rem;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 6px;
    min-width: auto;
  }

  .lightbox-close {
    top: -40px;
    right: 2px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .lightbox-info {
    display: none;
  }

  .lightbox-info h3 {
    display: none;
  }

  .lightbox-info p {
    display: none;
  }

  .video-thumbnail-container {
    border-radius: 6px;
  }

  .video-thumbnail-container:hover {
    transform: translateY(-1px) scale(1.005);
  }
} 