/* ltx-videos-page.css
   Dedicated Videos portal page — tabbed grid layout
   ------------------------------------------------------------------ */

/* ── Page header ─────────────────────────────────────────────────── */

.ltx-vp {
  padding-bottom: clamp(40px, 4vw, 80px);
}

.ltx-vp__header {
  text-align: center;
  padding: 48px 0 40px;
}

.ltx-vp__title {
  /* font: Tier 1 H1 — ltx-global.css */
  color: #ffffff;
  margin: 0 0 20px;
}

.ltx-vp__description {
  font-family: 'Aeonik', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: #FDFDFE;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 32px;
}

.ltx-vp__subtitle {
  font-family: 'Aeonik', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.296;
  letter-spacing: 0.5px;
  color: #D1D3DB;
  margin: 0;
}

/* ── Tabs ────────────────────────────────────────────────────────── */

.ltx-vp__tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  background: var(--block-bg);
  box-shadow: inset 0 0 0 1px #353434;
  border-radius: 6px;
  padding: 2px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.ltx-vp__tab-slider {
  position: absolute;
  top: 2px;
  left: 0;
  height: calc(100% - 4px);
  background: #ffffff;
  border-radius: 4px;
  transition: transform 0.25s ease, width 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.ltx-vp__tab {
  font-family: 'Aeonik', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #D1D3DB;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 8px 0;
  width: 160px;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.ltx-vp__tab:hover,
.ltx-vp__tab:active {
  color: #ffffff;
}

.ltx-vp__tab.is-active {
  color: #000000;
  font-weight: 500;
}

/* ── Subtabs (LTX Studio: Tutorials / Webinars) ──────────────────── */

.ltx-vp__subtabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  border-bottom: 1px solid #2e3445;
  padding-bottom: 12px;
  margin-bottom: 56px;
}

.ltx-vp__subtab {
  font-family: 'Aeonik', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #636367;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 5px 34px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.ltx-vp__subtab:hover {
  background: rgba(46, 52, 69, 0.6);
  color: #ffffff;
}

.ltx-vp__subtab.is-active {
  background: #f0f0f0;
  color: #000000;
  font-weight: 500;
}

/* ── Panels ──────────────────────────────────────────────────────── */

.ltx-vp__panel {
  display: none;
}

.ltx-vp__panel.is-active {
  display: block;
}

/* ── Grid ────────────────────────────────────────────────────────── */

.ltx-vp__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 60px 32px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1600px;
}

@media (max-width: 1399px) {
  .ltx-vp__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Cards ───────────────────────────────────────────────────────── */

.ltx-vp__card {
  position: relative;
  display: block;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.ltx-vp__card:hover,
.ltx-vp__card:active {
  border-color: transparent;
}

.ltx-vp__thumb-btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  line-height: 0;
  font-size: 0;
}

.ltx-vp__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.ltx-vp__card:hover .ltx-vp__thumb,
.ltx-vp__card:active .ltx-vp__thumb {
  transform: scale(1.06);
}

/* Blur bar — gradient + backdrop-filter, fades in on hover */
.ltx-vp__blur-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 70%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.ltx-vp__card:hover .ltx-vp__blur-bar,
.ltx-vp__card:active .ltx-vp__blur-bar {
  opacity: 1;
}

/* Card title — desktop: overlaid bottom-left, slides up on hover */
.ltx-vp__card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  font-family: 'Aeonik', sans-serif;
  font-size: clamp(15px, 1vw + 13px, 17px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin: 0;
  padding: 12px 16px 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ltx-vp__card:hover .ltx-vp__card-title,
.ltx-vp__card:active .ltx-vp__card-title {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 1199px) {
  .ltx-vp__card {
    aspect-ratio: auto !important;
    display: flex;
    flex-direction: column;
  }

  .ltx-vp__thumb-btn {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    line-height: 0;
    font-size: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
  }

  .ltx-vp__blur-bar {
    display: none !important;
  }

  .ltx-vp__card-title {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 14px 16px 16px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .ltx-vp__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
}

@media (max-width: 767px) {
  .ltx-vp__header {
    padding: 32px 0 28px;
  }

  .ltx-vp__tabs {
    gap: 0;
    width: 100%;
  }

  .ltx-vp__tab {
    flex: 1;
    width: auto;
    padding: 8px 8px;
    font-size: 14px;
    text-align: center;
  }

  .ltx-vp__subtabs {
    width: 100%;
  }

  .ltx-vp__subtab {
    flex: 1;
    padding: 5px 8px;
    text-align: center;
  }

  .ltx-vp__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
