/**
 * StreamXHub — Landing Page
 * Version 2.0
 */

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: url('landingpagebackground.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 0, 85, 0.2);
}

/* Rich layered overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(255, 0, 85, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, rgba(8, 8, 16, 0.5) 0%, rgba(8, 8, 16, 0.85) 100%);
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 0, 85, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  animation: heroGlow 9s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50%       { transform: translate(-30px, 30px) scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---- Left column ---- */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-subtle, rgba(255, 0, 85, 0.08));
  border: 1px solid rgba(255, 0, 85, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.04;
  margin: 0;
  background: linear-gradient(145deg, #ffffff 0%, #ff0055 50%, #ff8833 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stat-badge:hover {
  border-color: rgba(255, 0, 85, 0.4);
  background: rgba(255, 0, 85, 0.08);
  color: #fff;
}

.stat-badge::before {
  content: '✓';
  color: var(--success, #00e887);
  font-weight: 900;
  font-size: 13px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff0055 0%, #ff4488 100%);
  color: #fff;
  border: none;
  padding: 15px 34px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  box-shadow: 0 10px 32px rgba(255, 0, 85, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(255, 0, 85, 0.55);
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-secondary:hover {
  background: rgba(255, 0, 85, 0.12);
  border-color: rgba(255, 0, 85, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Right: Preview grid ---- */
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.preview-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(145deg, #1a1a2c 0%, #0f0f1e 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  aspect-ratio: 16 / 9;
}

.preview-video:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(255, 0, 85, 0.5);
  box-shadow: 0 20px 50px rgba(255, 0, 85, 0.3);
}

.preview-video video,
.preview-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.preview-video:hover video,
.preview-video:hover img { transform: scale(1.12); }

.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.preview-video:hover .preview-overlay { opacity: 1; }

.preview-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00cfff 0%, #0077ff 100%);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}

.preview-title {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-button-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 52px;
  height: 52px;
  background: rgba(255, 0, 85, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
  z-index: 3;
  box-shadow: 0 8px 24px rgba(255, 0, 85, 0.5);
}

.preview-video:hover .play-button-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.featured-section {
  background: linear-gradient(145deg, #0e0614 0%, #0a0a14 100%);
  padding: 72px 24px;
  border-bottom: 1px solid rgba(255, 0, 85, 0.15);
}

.featured-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.featured-main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 85, 0.35);
  box-shadow: 0 24px 72px rgba(255, 0, 85, 0.25), 0 0 0 1px rgba(255,255,255,0.04);
  aspect-ratio: 16 / 9;
}

.featured-main video,
.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-label {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--gradient, linear-gradient(135deg, #ff0055, #ff4488));
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}

.featured-live {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 0, 0, 0.92);
  color: #fff;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  animation: livePulse 1.8s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-live::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: liveDot 1.8s ease-in-out infinite;
}

@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.featured-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.featured-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.featured-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 0, 85, 0.15);
  border-bottom: 1px solid rgba(255, 0, 85, 0.15);
}

.featured-stat { display: flex; flex-direction: column; gap: 4px; }

.featured-stat-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary, #ff0055);
}

.featured-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.featured-button {
  background: linear-gradient(135deg, #ff0055 0%, #ff4488 100%);
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  box-shadow: 0 10px 32px rgba(255, 0, 85, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: 100%;
}

.featured-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(255, 0, 85, 0.55);
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: linear-gradient(135deg, #ff0055, #ff8833);
  border-radius: 999px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.category-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.category-btn:hover {
  background: linear-gradient(135deg, rgba(255,0,85,0.15), rgba(255,68,136,0.08));
  border-color: rgba(255, 0, 85, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, #ff0055 0%, #ff4488 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 0, 85, 0.35);
}

/* ============================================================
   VIDEO GRID SECTION
   ============================================================ */
.video-grid-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.video-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a2c 0%, #0f0f1e 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(255, 0, 85, 0.45);
  box-shadow: 0 20px 56px rgba(255, 0, 85, 0.28);
}

.thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1a1a2c 0%, #0f0f1e 100%);
}

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

.video-card:hover .thumbnail-wrapper img,
.video-card:hover .thumbnail-wrapper video { transform: scale(1.15); }

.play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay { opacity: 1; }

/* Watermark */
.thumbnail-wrapper::after {
  content: 'STREAMXHUB';
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255,255,255,0.8);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.video-card:hover .thumbnail-wrapper::after { opacity: 1; }

.video-info {
  padding: 13px 14px;
  background: linear-gradient(180deg, #111120 0%, #0c0c1a 100%);
}

.video-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* Quality badge */
.quality-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #00cfff 0%, #0077ff 100%);
  color: #fff;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 207, 255, 0.4);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
  50%       { box-shadow: 0 0 0 8px rgba(255, 0, 0, 0); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 207, 255, 0.6); }
  50%       { box-shadow: 0 0 0 7px rgba(0, 207, 255, 0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.55s ease forwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-right { grid-template-columns: repeat(3, 1fr); }
  .featured-content { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
  .featured-title { font-size: 26px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 56px 16px 72px; min-height: auto; }
  .hero-subtitle { font-size: 15px; }
  .hero-right { grid-template-columns: 1fr 1fr; }
  .preview-video:nth-child(3) { grid-column: 1 / -1; }
  .featured-stats { grid-template-columns: 1fr; }
  .video-grid-section, .categories-section { padding-inline: 16px; }
}

@media (max-width: 480px) {
  .hero-content { padding: 0; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .hero-right { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}