/* ======================================================
   Home — Mobile & Tablet (keeps desktop intact)
   Scope: .page-home only
   ====================================================== */

/* ---------- Phones (≤576px) ---------- */
@media (max-width: 576.98px) {
    .page-home .container { padding-left: 14px; padding-right: 14px; }
  
    /* Titles / section headers */
    .page-home h1,
    .page-home .hero-title { font-size: clamp(24px, 8vw, 30px); line-height: 1.15; margin-bottom: 8px; text-align: center; }
    .page-home h2,
    .page-home .section-title { font-size: clamp(18px, 6.2vw, 22px); margin: 10px 0; }
  
    /* Global cards spacing */
    .page-home .card,
    .page-home .ap-neon-card { margin-bottom: 14px; }
  
    /* Hero block */
    .page-home .home-hero { margin-top: 8px; margin-bottom: 14px; }
    .page-home .home-hero .btn,
    .page-home .home-hero .ap-btn-neon,
    .page-home .home-hero .neon-start-btn {
      width: 100%; max-width: 420px; justify-content: center;
    }
  
    /* Generic grid sections → 1 column on phone */
    .page-home .cards-grid,
    .page-home .poster-grid,
    .page-home .list-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }
  
    /* Event posters / “Evenimente” */
    .page-home .event-card,
    .page-home .poster-card { width: 100%; }
    .page-home .event-card img,
    .page-home .poster-card img { width: 100%; height: auto; display: block; border-radius: 16px; }
  
    /* Forum list items */
    .page-home .forum-thread { padding: 12px; }
    .page-home .forum-thread .meta { font-size: 12px; opacity: .9; }
  
    /* Music / “Noutăți” cards */
    .page-home .release-card .title { font-size: 16px; }
    .page-home .release-card .artist { font-size: 14px; opacity: .9; }
  
    /* Buttons in rows → full width */
    .page-home .ap-btn-neon,
    .page-home .btn { width: 100%; max-width: 420px; justify-content: center; }
  
    /* Badges (NEW indicator) */
    .page-home .nav-new-badge,
    .page-home .new-badge { transform: translateY(-1px); }
  
    /* Muted text on dark bg */
    .page-home .text-muted { color: #9ec7d3 !important; opacity: .9; }
  
    /* iOS safe area */
    @supports (padding: max(0px)) {
      .page-home .container {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
      }
    }
  }
  
  /* ---------- Small tablets (577–767px) ---------- */
  @media (min-width: 577px) and (max-width: 767.98px) {
    .page-home .container { padding-left: 16px; padding-right: 16px; }
  
    .page-home h1,
    .page-home .hero-title { font-size: clamp(26px, 5.5vw, 36px); text-align: center; }
  
    .page-home .cards-grid,
    .page-home .poster-grid,
    .page-home .list-grid {
      display: grid; grid-template-columns: 1fr; gap: 14px;
    }
  
    .page-home .ap-btn-neon,
    .page-home .btn { max-width: 520px; margin-left: auto; margin-right: auto; }
  }
  
  /* ---------- Tablets (768–991px) ---------- */
  @media (min-width: 768px) and (max-width: 991.98px) {
    .page-home .cards-grid,
    .page-home .poster-grid,
    .page-home .list-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
    }
    .page-home .ap-btn-neon,
    .page-home .btn { width: auto; }
  }
  
  /* ---------- Desktop (≥992px) ----------
     No changes; desktop remains as-is.
  */

/* ======================================================
   HOME TOP 3 PLAYER CARDS
   Professional, gorgeous design
   ====================================================== */

.home-top-player-card {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.08) 0%,
    rgba(10, 21, 18, 0.85) 30%,
    rgba(10, 21, 18, 0.98) 100%);
  border-radius: 16px;
  padding: 20px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(16, 185, 129, 0.25);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-top-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, 
    rgba(16, 185, 129, 0.08) 0%,
    transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.home-top-player-card::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  background: linear-gradient(135deg, 
    currentColor 0%,
    transparent 70%);
  border-radius: 16px;
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.4s ease;
}

.home-top-player-card:hover {
  transform: translateY(-4px) translateX(2px);
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.12) 0%,
    rgba(10, 21, 18, 0.92) 30%,
    rgba(10, 21, 18, 1) 100%);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              0 0 30px rgba(16, 185, 129, 0.2);
}

.home-top-player-card:hover::before {
  opacity: 1;
}

.home-top-player-card:hover::after {
  opacity: 0.3;
}

.home-player-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(16, 185, 129, 0.5);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.4),
    0 0 30px currentColor,
    inset 0 0 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  flex-shrink: 0;
  position: relative;
}

.home-top-player-card:hover .home-player-photo {
  border-color: rgba(16, 185, 129, 0.8);
  transform: scale(1.08) rotate(2deg);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 40px currentColor,
    inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.home-player-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}

.home-player-points {
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 
    0 0 30px currentColor,
    0 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
  flex-shrink: 0;
  min-width: 100px;
  text-align: right;
}

/* Mobile responsive */
@media (max-width: 576.98px) {
  .home-top-player-card {
    padding: 16px 18px;
  }

  .home-player-photo {
    width: 64px;
    height: 64px;
    border-width: 3px;
  }

  .home-player-name {
    font-size: 1.1rem;
  }

  .home-player-points {
    font-size: 1.6rem;
    min-width: 70px;
  }

  .home-top-player-card .text-4xl {
    font-size: 2.5rem;
  }
}

@media (min-width: 577px) and (max-width: 767.98px) {
  .home-top-player-card {
    padding: 18px 22px;
  }

  .home-player-photo {
    width: 72px;
    height: 72px;
  }

  .home-player-name {
    font-size: 1.15rem;
  }

  .home-player-points {
    font-size: 1.8rem;
    min-width: 85px;
  }
}

/* ======================================================
   VEZI MAI MULT BUTTON - Professional & Gorgeous
   ====================================================== */

.home-vezi-mai-mult-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.2) 0%, 
    rgba(5, 150, 105, 0.15) 50%, 
    rgba(4, 120, 87, 0.1) 100%);
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 12px;
  color: #10b981;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.home-vezi-mai-mult-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.15), 
    rgba(5, 150, 105, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.home-vezi-mai-mult-btn:hover {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.35) 0%, 
    rgba(5, 150, 105, 0.25) 50%, 
    rgba(4, 120, 87, 0.2) 100%);
  border-color: rgba(16, 185, 129, 0.8);
  color: #34d399;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(16, 185, 129, 0.4),
    0 0 40px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.home-vezi-mai-mult-btn:hover::before {
  opacity: 1;
}

.home-vezi-mai-mult-btn:active {
  transform: translateY(0) scale(0.98);
}

.home-vezi-mai-mult-btn .btn-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px currentColor);
  transition: transform 0.4s ease;
}

.home-vezi-mai-mult-btn:hover .btn-icon {
  transform: scale(1.2) rotate(10deg);
}

.home-vezi-mai-mult-btn .btn-text {
  position: relative;
  text-shadow: 0 0 20px currentColor, 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.home-vezi-mai-mult-btn .btn-arrow {
  font-size: 1.3rem;
  font-weight: 900;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-vezi-mai-mult-btn:hover .btn-arrow {
  transform: translateX(6px);
}

/* Mobile optimizations */
@media (max-width: 576.98px) {
  /* Stack vertically and center everything on mobile */
  .page-home .flex.flex-wrap.items-center.justify-between {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  /* Make button 25% smaller on mobile */
  .home-vezi-mai-mult-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    gap: 5px;
    border-width: 1.5px;
    border-radius: 6px;
  }

  .home-vezi-mai-mult-btn .btn-icon {
    font-size: 0.8rem;
  }

  .home-vezi-mai-mult-btn .btn-text {
    letter-spacing: 0.2px;
  }

  .home-vezi-mai-mult-btn .btn-arrow {
    font-size: 0.85rem;
  }
}

@media (min-width: 577px) and (max-width: 767.98px) {
  .home-vezi-mai-mult-btn {
    padding: 11px 20px;
    font-size: 0.95rem;
  }
}
  