/* ==========================================================================
   PREMIUM GAME RANKING SECTION
   Design: Dark Maroon (#35090E), Deep Red Gradient, Gold Borders (#FFD45A)
   Responsive Vertical Ranking Cards with Interactive Hover Animations
   ========================================================================== */

.game-ranking-section {
  position: relative;
  background: radial-gradient(ellipse at 50% -10%, #5c0d17 0%, #35090E 50%, #1f0407 100%);
  border-top: 2px solid rgba(255, 212, 90, 0.4);
  border-bottom: 2px solid rgba(255, 212, 90, 0.4);
  padding: 64px 20px;
  overflow: hidden;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 -10px 30px rgba(0, 0, 0, 0.6);
  margin: 32px 0;
}

/* Subtle background ambient glow elements */
.game-ranking-section::before,
.game-ranking-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  z-index: 0;
}

.game-ranking-section::before {
  top: -80px;
  left: 15%;
  width: 340px;
  height: 340px;
  background: #ff9800;
}

.game-ranking-section::after {
  bottom: -60px;
  right: 15%;
  width: 300px;
  height: 300px;
  background: #ffd45a;
}

.ranking-shell {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
}

/* ==========================================================================
   SECTION HEADER (Crown + Pill + Typography)
   ========================================================================== */

.ranking-header {
  text-align: center;
  margin-bottom: 40px;
}

.ranking-crown-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  animation: crownFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(255, 212, 90, 0.6));
}

@keyframes crownFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.ranking-heading-box {
  display: inline-block;
  background: linear-gradient(180deg, #6e0f1a 0%, #44070d 50%, #260307 100%);
  border: 2px solid #FFD45A;
  border-radius: 24px;
  padding: 20px 42px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 212, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

.ranking-kicker {
  display: block;
  font-family: "Orbitron", "Noto Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFD45A;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 212, 90, 0.4);
}

.ranking-title {
  font-family: "Orbitron", "Noto Sans", sans-serif;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  background: linear-gradient(180deg, #FFFFFF 15%, #FFF3B0 55%, #FFD45A 80%, #FFA000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
  letter-spacing: 0.5px;
}

/* ==========================================================================
   VERTICAL RANKING CARDS CONTAINER
   ========================================================================== */

.ranking-cards-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Card Base */
.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px 88px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-radius: 20px;
  background: #35090E;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

/* Ambient Top Edge Shimmer */
.ranking-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

/* Card 1: Orange / Golden / Neon Cyan Accent */
.ranking-card-1 {
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.15) 0%, rgba(255, 152, 0, 0.18) 35%, rgba(53, 9, 14, 0.95) 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
}

.ranking-card-1:hover {
  transform: translateY(-5px);
  border-color: #00E5FF;
  box-shadow: 0 16px 36px rgba(0, 180, 255, 0.35), 0 0 25px rgba(255, 212, 90, 0.25);
}

.ranking-card-1 .ranking-logo-img {
  border: 2px solid rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35), 0 6px 18px rgba(0, 0, 0, 0.6);
  padding: 0;
  background: #000000;
}

.ranking-card-1:hover .ranking-logo-img {
  border-color: #00E5FF;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.65), 0 8px 24px rgba(0, 0, 0, 0.7);
}

/* Card 2: Purple / Blue Gradient */
.ranking-card-2 {
  background: linear-gradient(135deg, rgba(142, 36, 170, 0.25) 0%, rgba(57, 73, 171, 0.18) 45%, rgba(53, 9, 14, 0.95) 100%);
  border: 1.5px solid rgba(179, 136, 255, 0.55);
}

.ranking-card-2:hover {
  transform: translateY(-5px);
  border-color: #D1C4E9;
  box-shadow: 0 16px 36px rgba(123, 31, 162, 0.35), 0 0 24px rgba(103, 58, 183, 0.25);
}

/* Card 3: Coral / Red Gradient */
.ranking-card-3 {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.26) 0%, rgba(255, 110, 64, 0.18) 45%, rgba(53, 9, 14, 0.95) 100%);
  border: 1.5px solid rgba(255, 138, 128, 0.55);
}

.ranking-card-3:hover {
  transform: translateY(-5px);
  border-color: #FF8A80;
  box-shadow: 0 16px 36px rgba(229, 57, 53, 0.35), 0 0 24px rgba(255, 87, 34, 0.25);
}

/* ==========================================================================
   RANK BADGE (Rank # and Crown)
   ========================================================================== */

.ranking-rank-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 70px;
}

.rank-crown {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.ranking-card:hover .rank-crown {
  transform: scale(1.15) translateY(-2px);
}

.rank-number {
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.rank-number-1 {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE082 40%, #FFB300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rank-number-2 {
  background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 50%, #90A4AE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rank-number-3 {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFCCBC 50%, #D84315 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rank-tag-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* ==========================================================================
   APP LOGO
   ========================================================================== */

.ranking-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid rgba(255, 212, 90, 0.45);
  background: #1a0407;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ranking-card:hover .ranking-logo-img {
  transform: scale(1.05);
  border-color: #FFD45A;
}

/* ==========================================================================
   CARD CONTENT INFO
   ========================================================================== */

.ranking-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ranking-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ranking-app-name {
  font-family: "Orbitron", "Noto Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.5px;
}

.ranking-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(255, 212, 90, 0.18);
  border: 1px solid rgba(255, 212, 90, 0.5);
  color: #FFD45A;
}

.badge-purple {
  background: rgba(179, 136, 255, 0.18);
  border: 1px solid rgba(179, 136, 255, 0.5);
  color: #D1C4E9;
}

.badge-coral {
  background: rgba(255, 138, 128, 0.18);
  border: 1px solid rgba(255, 138, 128, 0.5);
  color: #FF8A80;
}

/* Verified Rating Area */
.ranking-rating-area {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-stars {
  color: #FFD45A;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 212, 90, 0.5);
}

.ranking-rating-val {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
}

.ranking-verified-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.ranking-verified-check svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.ranking-promo-text {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #FFF3B0;
  margin: 2px 0 0;
  opacity: 0.95;
}

/* ==========================================================================
   BUTTON (PLAY NOW with Gold / Orange Gradient)
   ========================================================================== */

.ranking-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ranking-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFE066 0%, #FFB300 50%, #FF6F00 100%);
  color: #1A0407 !important;
  font-family: "Orbitron", "Noto Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid #FFE082;
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  min-height: 48px;
  min-width: 140px;
  cursor: pointer;
}

.ranking-play-btn svg {
  transition: transform 0.25s ease;
}

.ranking-play-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: linear-gradient(135deg, #FFF176 0%, #FFC107 50%, #FF8F00 100%);
  box-shadow: 0 10px 28px rgba(255, 140, 0, 0.65), 0 0 18px rgba(255, 212, 90, 0.5);
  color: #000000 !important;
}

.ranking-play-btn:hover svg {
  transform: translateX(3px) scale(1.1);
}

.ranking-play-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
  .ranking-card {
    grid-template-columns: 72px 76px 1fr;
    gap: 16px;
    padding: 20px;
  }

  .ranking-logo-img {
    width: 72px;
    height: 72px;
  }

  .ranking-action {
    grid-column: 1 / -1;
    justify-content: stretch;
    margin-top: 6px;
  }

  .ranking-play-btn {
    width: 100%;
    min-width: unset;
  }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
  .game-ranking-section {
    padding: 44px 12px;
    margin: 20px 0;
  }

  .ranking-header {
    margin-bottom: 28px;
  }

  .ranking-crown-top svg {
    width: 46px;
    height: 46px;
  }

  .ranking-heading-box {
    padding: 16px 20px;
    border-radius: 18px;
    max-width: 100%;
  }

  .ranking-kicker {
    font-size: 0.72rem;
    letter-spacing: 2px;
  }

  .ranking-title {
    font-size: 1.65rem;
  }

  .ranking-card {
    display: grid;
    grid-template-columns: 52px 64px 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px 14px;
    padding: 16px 14px;
    border-radius: 16px;
  }

  .ranking-rank-badge {
    grid-column: 1;
    grid-row: 1;
    min-width: unset;
  }

  .rank-number {
    font-size: 1.8rem;
  }

  .rank-crown svg {
    width: 22px;
    height: 22px;
  }

  .ranking-logo-wrapper {
    grid-column: 2;
    grid-row: 1;
  }

  .ranking-logo-img {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .ranking-info {
    grid-column: 3;
    grid-row: 1;
    justify-content: center;
  }

  .ranking-app-name {
    font-size: 1.15rem;
  }

  .ranking-promo-text {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.88rem;
    line-height: 1.42;
    margin-top: 4px;
  }

  .ranking-action {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-top: 6px;
  }

  .ranking-play-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.9rem;
  }
}
