/* index.css - CSS riêng cho trang chủ Cosmic Hub */

/* Hero section với hiệu ứng gradient xoay */
.hero-section {
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.2) 0%, rgba(0, 217, 255, 0.1) 100%);
  border-radius: 30px;
  padding: 1.5rem 1rem;
  border: 1px solid var(--primary);
  box-shadow: 0 0 40px var(--glow-primary);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Game cards */
.game-card {
  background: rgba(15, 18, 32, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-radius: 30px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(123, 92, 255, 0.1), rgba(0, 217, 255, 0.1));
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}
.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--glow-primary);
}
.game-card:hover::before {
  left: 100%;
}
.game-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 15px var(--primary));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.game-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
}
.game-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text);
}
.stat-item {
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--primary);
}

/* Insight cards */
.insight-card {
  background: rgba(15, 18, 32, 0.6);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 1rem;
  backdrop-filter: blur(5px);
  transition: all 0.2s;
}
.insight-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow-accent);
}
.insight-title {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.insight-value {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 0.2rem;
}
.insight-trend {
  font-size: 0.65rem;
  color: #4dff88;
}

/* Leaderboard */
.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(123, 92, 255, 0.2);
}
.leaderboard-rank {
  width: 30px;
  height: 30px;
  background: rgba(123, 92, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--accent);
}
.leaderboard-name {
  flex: 1;
  margin-left: 0.5rem;
  font-size: 0.8rem;
}
.leaderboard-score {
  font-weight: bold;
  color: #ffd700;
}

/* Live counter animation */
.live-counter {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Activity feed */
#activityFeed {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--card-bg);
}
#activityFeed::-webkit-scrollbar {
  width: 4px;
}
#activityFeed::-webkit-scrollbar-track {
  background: var(--card-bg);
}
#activityFeed::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* Animation */
.animate-fadeInUp {
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature cards */
.feature-icon {
  font-size: 1.5rem;
}
.feature-title {
  font-size: 0.7rem;
  margin-top: 0.25rem;
}
.feature-desc {
  font-size: 0.6rem;
  opacity: 0.7;
}

/* Animation */
.animate-fadeInUp {
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}