/* =========================================================
   VIBECADE - PRIME VIDEO & NETFLIX STYLED CSS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Cinzel:wght@700;900&display=swap');

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d131f;
  --bg-card: #131b2a;
  --accent-cyan: #00e5ff;
  --accent-gold: #ffb703;
  --accent-purple: #8b5cf6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080c14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Hide scrollbar for carousels while allowing smooth scroll */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =========================================================
   HERO BILLBOARD WITH CINEMATIC FOG
   ========================================================= */

.hero-container {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 580px;
  max-height: 860px;
  overflow: hidden;
  background-color: #080c14;
}

/* Video element inside hero */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}

.hero-fallback-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}

/* Fog Gradients: seamlessly blend video into background */
.hero-fog-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(
    to top,
    #080c14 10%,
    rgba(8, 12, 20, 0.95) 30%,
    rgba(8, 12, 20, 0.7) 60%,
    rgba(8, 12, 20, 0.25) 85%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-fog-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 62%;
  background: linear-gradient(
    to right,
    #080c14 18%,
    rgba(8, 12, 20, 0.94) 42%,
    rgba(8, 12, 20, 0.68) 70%,
    rgba(8, 12, 20, 0.2) 90%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-fog-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 20, 0.95) 0%,
    rgba(8, 12, 20, 0.6) 50%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-fog-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 25%;
  background: linear-gradient(
    to left,
    rgba(8, 12, 20, 0.6) 0%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Hero Content overlay */
.hero-content {
  position: absolute;
  bottom: 12%;
  left: 4.5%;
  max-width: 680px;
  z-index: 4;
}

/* =========================================================
   TOP 10 LARGE RANK NUMBERS (NETFLIX & PRIME STYLE)
   ========================================================= */

.top10-card-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.top10-card-wrapper:hover {
  transform: scale(1.04);
  z-index: 20;
}

.top10-rank-num {
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 7.8rem;
  line-height: 0.82;
  color: #080c14;
  -webkit-text-stroke: 3.5px #475569;
  letter-spacing: -6px;
  user-select: none;
  margin-right: -24px;
  z-index: 2;
  filter: drop-shadow(4px 4px 12px rgba(0, 0, 0, 0.9));
  transition: -webkit-text-stroke 0.3s ease, color 0.3s ease;
}

.top10-card-wrapper:hover .top10-rank-num {
  -webkit-text-stroke: 3.5px var(--accent-cyan);
  color: #0b1120;
}

/* Specific highlight for #1 */
.top10-card-wrapper[data-rank="1"] .top10-rank-num {
  -webkit-text-stroke: 4px #eab308;
}

.top10-card {
  position: relative;
  width: 260px;
  height: 155px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 3;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.top10-card-wrapper:hover .top10-card {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 14px 30px rgba(0, 229, 255, 0.2);
}

/* =========================================================
   STANDARD GAME CAROUSEL CARD
   ========================================================= */

.game-card {
  position: relative;
  width: 260px;
  height: 155px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: scale(1.06) translateY(-4px);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 255, 0.25);
  z-index: 20;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 20, 0.95) 0%, rgba(8, 12, 20, 0.5) 45%, transparent 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.game-card:hover .card-overlay {
  opacity: 0.95;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  z-index: 4;
}

/* =========================================================
   CAROUSEL SCROLL NAVIGATION CONTROLS
   ========================================================= */

.row-container {
  position: relative;
  padding-left: 4.5%;
  padding-right: 4.5%;
  margin-bottom: 2.8rem;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-top: 10px;
  padding-bottom: 16px;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 110px;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.2s ease;
  border-radius: 6px;
}

.row-container:hover .nav-arrow {
  opacity: 1;
}

.nav-arrow:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: var(--accent-cyan);
}

.nav-arrow.left {
  left: 0.5%;
}

.nav-arrow.right {
  right: 0.5%;
}

/* =========================================================
   BADGES & PILLS
   ========================================================= */

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-new {
  background: #0284c7;
  color: #f0f9ff;
}

.badge-trending {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}

.badge-student {
  background: rgba(139, 92, 246, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
}

/* Star rating interactive styling */
.star-btn {
  color: #475569;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-btn:hover,
.star-btn.active {
  color: #fbbf24;
  transform: scale(1.15);
}

/* Modal styles */
.modal-backdrop {
  background-color: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
}
