/* ============================================
   WORDS WITH VIDEOS PAGE
   Engaging gallery of vocabulary words with YouTube video content
   Blue theme
   ============================================ */

.word-videos-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #e8f0fe 0%, #f0f5ff 25%, #f8faff 50%, #eef4ff 100%);
}

.word-videos-page__container {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

/* Hero Section */
.word-videos-page__hero {
  padding: 48px 0 40px;
  text-align: center;
}

.word-videos-page__hero-icon {
  font-size: 64px;
  color: var(--home-page-blue, #2563eb);
  margin-bottom: 16px;
  animation: word-videos-pulse 2s ease-in-out infinite;
}

@keyframes word-videos-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.word-videos-page__title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--home-page-text, #0b1220);
  margin: 0 0 16px;
  background: linear-gradient(135deg, #0b1220 0%, #1e3a5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-videos-page__subtitle {
  font-size: 18px;
  color: var(--home-page-muted, rgba(11, 18, 32, 0.65));
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.word-videos-page__count {
  font-size: 16px;
  font-weight: 600;
  color: var(--home-page-blue, #2563eb);
}

.word-videos-page__count strong {
  font-weight: 800;
}

/* A-Z Filter */
.word-videos-page__filters {
  padding: 0 0 32px;
}

.word-videos-page__az-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.word-videos-page__az-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--home-page-blue, #2563eb);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.word-videos-page__az-link:hover {
  transform: translateY(-2px);
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.word-videos-page__az-link--active {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.word-videos-page__az-link--active:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  transform: translateY(-2px);
}

/* Cards Grid */
.word-videos-page__main {
  padding: 0 0 80px;
}

.word-videos-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.word-videos-page__card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(10, 20, 40, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.word-videos-page__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2), 0 8px 16px rgba(10, 20, 40, 0.08);
  border-color: rgba(37, 99, 235, 0.45);
}

.word-videos-page__card-thumb-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.word-videos-page__card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  overflow: hidden;
  border-bottom: 2px solid rgba(37, 99, 235, 0.2);
}

.word-videos-page__card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 55, 0.35) 0%, rgba(15, 35, 80, 0.45) 50%, rgba(20, 45, 100, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.word-videos-page__card-thumb .word-videos-page__card-badge,
.word-videos-page__card-thumb .word-videos-page__card-play {
  z-index: 2;
}

.word-videos-page__card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.word-videos-page__card-badge i {
  font-size: 14px;
}

.word-videos-page__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.word-videos-page__card-thumb-link:hover .word-videos-page__card-img {
  transform: scale(1.05);
}

.word-videos-page__card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(37, 99, 235, 0.4);
}

.word-videos-page__card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  transition: all 0.3s ease;
  pointer-events: none;
}

.word-videos-page__card-thumb-link:hover .word-videos-page__card-play {
  background: rgba(59, 130, 246, 0.98);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
}

.word-videos-page__card-play i {
  margin-left: 4px;
}

.word-videos-page__card-body {
  padding: 20px;
  background: linear-gradient(180deg, #fafbff 0%, #f0f5ff 100%);
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.word-videos-page__card-word {
  font-size: 22px;
  font-weight: 800;
  color: var(--home-page-text, #0b1220);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.word-videos-page__card-phonetic {
  font-size: 14px;
  color: var(--home-page-muted, rgba(11, 18, 32, 0.6));
  font-style: italic;
  margin: 0 0 10px;
}

.word-videos-page__card-btns {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.word-videos-page__card-cta {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.word-videos-page__card-cta--video {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border: 1px solid rgba(29, 78, 216, 0.5);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.word-videos-page__card-cta--video:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.word-videos-page__card-cta--word {
  color: var(--home-page-blue, #2563eb);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.word-videos-page__card-cta--word:hover {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.word-videos-page__card:hover .word-videos-page__card-cta {
  gap: 10px;
}

.word-videos-page__card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.word-videos-page__card-audio {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-page-blue, #2563eb);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.word-videos-page__card-audio:hover {
  background: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.word-videos-page__share-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--home-page-blue, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.word-videos-page__share-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
  color: #1d4ed8;
  transform: translateY(-1px);
}

.word-videos-page__share-btn--copy {
  border: 1px solid rgba(37, 99, 235, 0.25);
}

/* Pagination */
.word-videos-page__pagination {
  margin-top: 48px;
}

.word-videos-page__pagination-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.word-videos-page__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--home-page-text, #0b1220);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
}

.word-videos-page__pagination-link:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--home-page-blue, #2563eb);
  transform: translateY(-1px);
}

.word-videos-page__pagination-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

/* Vocab Loco Promo - Dark Theme */
.word-videos-page__vl-promo {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.word-videos-page__vl-promo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  z-index: 0;
}

.word-videos-page__vl-promo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: vl-promo-orb-float 10s ease-in-out infinite;
}

.word-videos-page__vl-promo-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.word-videos-page__vl-promo-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 201, 149, 0.25) 0%, transparent 70%);
  bottom: -120px;
  left: -100px;
  animation-delay: -4s;
}

@keyframes vl-promo-orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
}

.word-videos-page__vl-promo-card {
  position: relative;
  z-index: 1;
  padding: 56px 56px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  overflow: hidden;
}

.word-videos-page__vl-promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 300px at 15% 10%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(700px 260px at 85% 80%, rgba(22, 201, 149, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 0;
}

.word-videos-page__vl-promo-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.word-videos-page__vl-promo-content {
  min-width: 0;
}

.word-videos-page__vl-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(22, 201, 149, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}

.word-videos-page__vl-promo-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px;
}

.word-videos-page__vl-promo-title em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-videos-page__vl-promo-desc {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 32px;
}

.word-videos-page__vl-promo-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
}

.word-videos-page__vl-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.word-videos-page__vl-promo-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.word-videos-page__vl-promo-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.word-videos-page__vl-promo-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.word-videos-page__vl-promo-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.word-videos-page__vl-promo-trust {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.word-videos-page__vl-promo-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
}

.word-videos-page__vl-promo-trust-item i {
  color: #34d399;
  font-size: 16px;
}

.word-videos-page__vl-promo-right {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.word-videos-page__vl-promo-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.word-videos-page__vl-promo-tile {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.word-videos-page__vl-promo-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(59,130,246,0.15));
  border: 1px solid rgba(255,255,255,0.10);
  color: #bfdbfe;
}

.word-videos-page__vl-promo-tile-title {
  color: rgba(255,255,255,0.95);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}

.word-videos-page__vl-promo-tile-sub {
  margin-top: 4px;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  line-height: 1.3;
}

.word-videos-page__vl-promo-tile--tracking .word-videos-page__vl-promo-tile-icon {
  background: linear-gradient(135deg, rgba(22,201,149,0.28), rgba(59,130,246,0.14));
  color: #a7f3d0;
}

.word-videos-page__vl-promo-tile--grades .word-videos-page__vl-promo-tile-icon {
  background: linear-gradient(135deg, rgba(96,165,250,0.28), rgba(37,99,235,0.16));
  color: #dbeafe;
}

.word-videos-page__vl-promo-tile--assign .word-videos-page__vl-promo-tile-icon {
  background: linear-gradient(135deg, rgba(52,211,153,0.22), rgba(37,99,235,0.16));
  color: #bbf7d0;
}

.word-videos-page__vl-promo-mock {
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}

.word-videos-page__vl-promo-mock-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}

.word-videos-page__vl-promo-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

.word-videos-page__vl-promo-mock-body {
  padding: 14px;
}

.word-videos-page__vl-promo-mock-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: end;
  height: 72px;
  margin-bottom: 12px;
}

.word-videos-page__vl-promo-mock-bars span {
  display: block;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(37,99,235,0.55), rgba(59,130,246,0.12));
  border: 1px solid rgba(255,255,255,0.08);
  animation: vl-mock-bar 3.2s ease-in-out infinite;
}

.word-videos-page__vl-promo-mock-bars span:nth-child(1) { height: 34%; animation-delay: 0s; }
.word-videos-page__vl-promo-mock-bars span:nth-child(2) { height: 55%; animation-delay: .2s; }
.word-videos-page__vl-promo-mock-bars span:nth-child(3) { height: 42%; animation-delay: .4s; }
.word-videos-page__vl-promo-mock-bars span:nth-child(4) { height: 70%; animation-delay: .6s; }
.word-videos-page__vl-promo-mock-bars span:nth-child(5) { height: 48%; animation-delay: .8s; }
.word-videos-page__vl-promo-mock-bars span:nth-child(6) { height: 62%; animation-delay: 1s; }

@keyframes vl-mock-bar {
  0%, 100% { filter: brightness(1); transform: translateY(0); }
  50% { filter: brightness(1.12); transform: translateY(-1px); }
}

.word-videos-page__vl-promo-mock-row {
  display: flex;
  gap: 10px;
}

.word-videos-page__vl-promo-mock-pill {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .word-videos-page__vl-promo-card {
    padding: 40px 22px;
  }

  .word-videos-page__vl-promo-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .word-videos-page__vl-promo {
    padding: 60px 0 80px;
  }

  .word-videos-page__vl-promo-ctas {
    justify-content: center;
  }

  .word-videos-page__vl-promo-trust {
    justify-content: center;
  }
}

/* Empty State */
.word-videos-page__empty {
  text-align: center;
  padding: 80px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}

.word-videos-page__empty-icon {
  font-size: 72px;
  color: rgba(37, 99, 235, 0.35);
  margin-bottom: 24px;
}

.word-videos-page__empty-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--home-page-text, #0b1220);
  margin: 0 0 12px;
}

.word-videos-page__empty-text {
  font-size: 16px;
  color: var(--home-page-muted, rgba(11, 18, 32, 0.65));
  margin: 0 0 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .word-videos-page__hero {
    padding: 36px 0 32px;
  }

  .word-videos-page__hero-icon {
    font-size: 48px;
  }

  .word-videos-page__subtitle {
    font-size: 16px;
  }

  .word-videos-page__az-nav {
    padding: 14px 16px;
    gap: 6px;
  }

  .word-videos-page__az-link {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .word-videos-page__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .word-videos-page__card-body {
    padding: 16px;
  }

  .word-videos-page__card-word {
    font-size: 20px;
  }

  .word-videos-page__card-actions {
    flex-wrap: wrap;
    gap: 4px;
  }

  .word-videos-page__share-btn,
  .word-videos-page__card-audio {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
