/* Recordings page specific styles */

/* Hero Section */
.recordings-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 10px 16px;
}

.recordings-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.recordings-subtitle {
  margin-top: 12px;
  font-size: 18px;
  color: #9ca3af;
  font-weight: 400;
}

/* Filters Section */
.filters-section {
  max-width: 1100px;
  margin: 24px auto 0 auto;
  padding: 0 16px;
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 24px;
  background: #0f0f10;
  border: 1px solid #262626;
  border-radius: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

/* Semester Dropdown */
.semester-select {
  appearance: none;
  background: #111111;
  border: 1px solid #262626;
  border-radius: 9999px;
  padding: 10px 40px 10px 16px;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.semester-select:hover {
  border-color: #404040;
}

.semester-select:focus {
  outline: none;
  border-color: #00e5ff;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

.semester-select option {
  background: #111111;
  color: #e5e7eb;
}

/* Tag Pills */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  appearance: none;
  background: #111111;
  border: 1px solid #262626;
  border-radius: 9999px;
  padding: 8px 14px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  border-color: #404040;
  color: #e5e7eb;
}

.tag-pill.active {
  background: #00e5ff;
  border-color: #00e5ff;
  color: #0b0b0b;
}

.tag-pill.active:hover {
  background: #00b8d4;
  border-color: #00b8d4;
}

/* Recordings Grid */
.recordings-grid {
  max-width: 1100px;
  margin: 24px auto 32px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Recording Card */
.recording-card {
  background: #0f0f10;
  border: 1px solid #262626;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.recording-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: #404040;
}

/* Video Wrapper - 16:9 Aspect Ratio */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* YouTube lite embed - thumbnail + play button, iframe on click */
.video-wrapper .yt-lite {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-wrapper .yt-lite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

.video-wrapper .yt-lite .yt-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.video-wrapper .yt-lite .yt-play svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 120ms ease;
}

.video-wrapper .yt-lite:hover .yt-play svg {
  transform: scale(1.04);
}

.video-wrapper .yt-lite:active .yt-play svg {
  transform: scale(0.98);
}

.video-wrapper .yt-lite iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Recording Info */
.recording-info {
  padding: 18px 20px 20px 20px;
}

.recording-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.recording-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 10px;
}

.recording-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.semester-tag {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
}

.recording-date {
  font-size: 13px;
  color: #6b7280;
}

/* Badges (reusing from meetings.css pattern) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  border-radius: 9999px;
  padding: 5px 10px;
  font-size: 12px;
}

.badge-green {
  background: #052e1a;
  color: #86efac;
  border: 1px solid #14532d;
}

.badge-blue {
  background: #0a2640;
  color: #93c5fd;
  border: 1px solid #1e3a8a;
}

.badge-red {
  background: #3b0a0a;
  color: #fca5a5;
  border: 1px solid #7f1d1d;
}

.badge-yellow {
  background: #2a2306;
  color: #fde68a;
  border: 1px solid #854d0e;
}

.badge-purple {
  background: #201036;
  color: #d8b4fe;
  border: 1px solid #6d28d9;
}

/* No Results */
.no-results {
  max-width: 1100px;
  margin: 40px auto;
  padding: 60px 16px;
  text-align: center;
}

.no-results p {
  font-size: 18px;
  color: #6b7280;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .recordings-title {
    font-size: 40px;
  }

  .recordings-subtitle {
    font-size: 16px;
  }

  .filters-container {
    flex-direction: column;
    gap: 20px;
    padding: 16px 20px;
  }

  .filter-group {
    width: 100%;
  }

  .semester-select {
    width: 100%;
  }

  .tag-filters {
    width: 100%;
  }

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

  .recording-card {
    margin: 0;
  }

  .recording-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .recordings-hero {
    padding: 30px 16px 10px 16px;
  }

  .recordings-title {
    font-size: 32px;
  }

  .tag-pill {
    padding: 6px 12px;
    font-size: 13px;
  }
}
