/* css/video-courses.css
   Scoped styles for the Video Courses page only.
   (Does not affect index/dashboard.)
*/


/* Fix browser default link colors (blue/purple) for the logo and CTA buttons on this page */
.navbar .logo,
.navbar .logo:visited {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.navbar .logo span {
  color: rgba(255, 255, 255, 0.95);
}

a.btn,
a.btn:visited {
  text-decoration: none;
}

/* Avoid any default underline/shadow artifacts on button text */
.hero-buttons a {
  text-decoration: none;
}

.vc-hero {
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.video-courses-page .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.vc-hero-tag {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  margin: 0 auto 16px;
  border: 1px solid rgba(255, 202, 4, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* Safety: keep the page clean even if an old hint block is present */
.vc-hint { display: none !important; }

/* Hero illustration sizing + entrance animation (same as index logo, but smaller) */
.vc-hero-logo {
  margin: 0 auto 14px;
  display: flex;
  justify-content: center;
}

.vc-hero-logo .hero-main-logo {
  width: 350px;
  max-width: 62vw;
  height: auto;
}

.vc-hint {
  margin-top: 18px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.vc-hint code {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 202, 4, 0.22);
  background: rgba(255, 202, 4, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.vc-main {
  position: relative;
  z-index: 2;
}

.vc-section {
  padding: 70px 0 90px;
}

.vc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Main player ===== */
.vc-player {
  display: grid;
  gap: 12px;
  margin: 6px 0 16px;
}

.vc-player-frame {
  position: relative;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.vc-main-video {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

.vc-bigplay {
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.55), rgba(0,0,0,0.08));
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vc-bigplay i {
  font-size: 44px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
}

.vc-bigplay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
}

.vc-player-meta {
  display: grid;
  gap: 4px;
}

.vc-player-title {
  font-size: 18px;
  font-weight: 900;
}

.vc-player-desc {
  opacity: 0.82;
  line-height: 1.5;
}

/* ===== Playlist gallery (horizontal) ===== */
.vc-gallery {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px;
}

.vc-gallery-nav {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.vc-gallery-track {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow: auto;
  padding: 4px 2px;
  scroll-snap-type: x mandatory;
}

.vc-gallery-track::-webkit-scrollbar { height: 10px; }
.vc-gallery-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,0);
  background-clip: padding-box;
}

.vc-gitem {
  min-width: 190px;
  max-width: 220px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.vc-gitem:hover { transform: translateY(-1px); }
.vc-gitem.is-active { border-color: rgba(255, 202, 4, 0.40); }

.vc-gthumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  aspect-ratio: 16 / 9;
}

.vc-gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vc-gthumb-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.vc-gplay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.vc-gplay i {
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
}

.vc-gtitle {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.vc-search {
  flex: 1;
  min-width: 240px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.vc-search i {
  opacity: 0.75;
}

.vc-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 14px;
}

.vc-select {
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

/* Custom Dropdown (Enhanced Select) */
.vc-dd {
  position: relative;
  min-width: 200px;
  user-select: none;
}

.vc-select--native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.vc-dd__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.95);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vc-dd__btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.vc-dd.is-open .vc-dd__btn {
  border-color: rgba(255, 202, 4, 0.4);
  box-shadow: 0 0 20px rgba(255, 202, 4, 0.1);
}

.vc-dd__btn i {
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.vc-dd.is-open .vc-dd__btn i {
  transform: rotate(180deg);
}

.vc-dd__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vc-dd.is-open .vc-dd__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vc-dd__item {
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vc-dd__item:hover, 
.vc-dd__item.is-hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.vc-dd__item.is-selected {
  background: rgba(255, 202, 4, 0.15);
  color: #FFCA04;
  font-weight: 600;
}

.vc-status {
  font-size: 13px;
  opacity: 0.78;
  margin: 6px 0 16px;
}

.vc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.vc-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.vc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 202, 4, 0.18);
}

.vc-card.is-active {
  border-color: rgba(255, 202, 4, 0.35);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
}

.vc-card__media {
  position: relative;
  padding: 14px;
}

/* Thumbnail (replaces per-card video players) */
.vc-thumb {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

.vc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vc-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.vc-thumb-fallback i {
  font-size: 24px;
  opacity: 0.8;
}

.vc-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
  opacity: 0.9;
}

.vc-thumb-play i {
  font-size: 26px;
  opacity: 0.92;
}

/* Main player */
.vc-player {
  display: grid;
  gap: 12px;
  margin: 6px 0 14px;
}

.vc-player-frame {
  position: relative;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.vc-main-video {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

.vc-bigplay {
  position: absolute;
  inset: 14px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0,0,0,0.55), rgba(0,0,0,0.08));
  color: rgba(255,255,255,0.92);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vc-bigplay i {
  font-size: 38px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 202, 4, 0.20);
  background: rgba(255, 202, 4, 0.10);
  backdrop-filter: blur(10px);
}

.vc-bigplay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

.vc-player-meta {
  padding: 0 6px;
}

.vc-player-title {
  font-size: 18px;
  font-weight: 800;
}

.vc-player-desc {
  margin-top: 6px;
  opacity: 0.82;
  font-size: 14px;
  line-height: 1.5;
}

/* Playlist gallery */
.vc-gallery {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 18px;
}

.vc-gallery-nav {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
}

.vc-gallery-track {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px;
  scroll-snap-type: x mandatory;
}

.vc-gallery-track::-webkit-scrollbar { height: 10px; }
.vc-gallery-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}

.vc-gitem {
  min-width: 190px;
  max-width: 220px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.26);
  backdrop-filter: blur(14px);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.vc-gitem:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 202, 4, 0.18);
}

.vc-gitem.is-active {
  border-color: rgba(255, 202, 4, 0.35);
}

.vc-gthumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.35);
}

.vc-gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vc-gthumb-fallback {
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity: 0.85;
}

.vc-gplay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
  opacity: 0.85;
}

.vc-gplay i { font-size: 18px; }

  .vc-gtitle {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Mobile: make player tall (Shorts-like) and hide nav buttons (swipe the gallery) */
  @media (max-width: 520px) {
    .vc-main-video { aspect-ratio: 9 / 16; max-height: 78vh; object-fit: cover; }
    .vc-bigplay { inset: 10px; }
    .vc-gallery-nav { display: none; }
    .vc-gitem { min-width: 72%; max-width: 72%; }
  }
  
  /* Fullscreen: avoid cropping */
  video:fullscreen { object-fit: contain; }
  video:-webkit-full-screen { object-fit: contain; }
  
  .vc-card__body {
    padding: 0 18px 18px;
  }

/* ===== Center first block on large screens ===== */
@media (min-width: 1024px) {
  .video-courses-page .section-header,
  .video-courses-page .vc-player,
  .video-courses-page .vc-gallery,
  .video-courses-page .vc-controls {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== Page-only responsive fixes (Video Courses) ===== */

/* 1) Remove the huge empty space under hero buttons (hero was 100vh) */
.video-courses-page .hero.vc-hero{
  min-height: auto;
  padding: 100px 20px 40px;
}

@media (max-width: 768px){
  .video-courses-page .hero.vc-hero{
    padding: 88px 16px 28px;
  }
}

/* 2) Courses cards: avoid side overflow on small screens */
@media (max-width: 520px){
  .video-courses-page .vc-container{ padding-left: 14px; padding-right: 14px; }
  .video-courses-page .vc-grid{ 
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  /* Fix bottom video slider items - make them consistent */
  .video-courses-page .vc-gitem {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
  }
  
  .video-courses-page .vc-gallery-track {
    scroll-padding: 0 10px;
    padding-bottom: 10px;
  }
}
