/* ===== BASE ===== */
body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #0f0f1a, #1f1f3d);
  color: white;
  transition: 0.3s;
}

/* ===== NAVBAR ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.glass {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: #ff7a18;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

nav a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #ff7a18;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 120px 20px;
}

.glow {
  font-size: 40px;
  text-shadow: 0 0 10px #ff7a18, 0 0 30px #ff3d00;
}

/* ===== BUTTON ===== */
button {
  background: linear-gradient(45deg, #ff7a18, #ff3d00);
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.1);
}

/* ===== CARD ===== */
.card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 50px;
  flex-wrap: wrap; /* FIX */
}

.card {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 15px;
  transition: 0.3s;
  width: 250px;
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 20px #ff7a18;
}

/* ===== THEME BUTTON ===== */
.theme-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

/* ===== ANIMATION ===== */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== LIGHT MODE ===== */
body.light {
  background: #f5f5f5;
  color: #111;
}

body.light .card {
  background: white;
  color: black;
}

body.light nav a {
  color: black;
}

body.light .glass {
  background: rgba(0,0,0,0.05);
}

/* ===== FADE OVERLAY ===== */
#fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

#fade-overlay.active {
  opacity: 1;
}

/* ===== BANNER ===== */
.banner {
  height: 300px;
  background: linear-gradient(45deg, #ff3d00, #6a00ff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ===== PLAYERS ===== */
.players {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 50px;
  flex-wrap: wrap; /* FIX */
}

.player-card {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
  width: 180px;
}

.player-card img {
  width: 100px;
  border-radius: 50%;
}

.player-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 20px #ff3d00;
}

/* ===== SEARCH ===== */
#searchInput {
  display: block;
  margin: 20px auto;
  padding: 10px;
  width: 300px;
  border-radius: 10px;
  border: none;
  outline: none;
}

/* ===== FILTER ===== */
.filters {
  text-align: center;
  margin-bottom: 20px;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  background: #111;
  margin: 100px auto;
  padding: 20px;
  width: 60%;
  max-width: 600px; /* FIX */
  border-radius: 10px;
}

.close {
  float: right;
  cursor: pointer;
}

/* ===== ACTIONS ===== */
.actions {
  margin-top: 10px;
  font-size: 18px;
}

.actions span {
  margin-right: 15px;
  cursor: pointer;
}

/* ===== COMMENT ===== */
.comment-box {
  margin-top: 15px;
}

.comment-box input {
  width: 70%;
  padding: 8px;
  border-radius: 8px;
}

.comment-box button {
  padding: 8px;
}

#commentList {
  margin-top: 10px;
}

.comment {
  background: rgba(255,255,255,0.1);
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
}
.heart-fly {
  position: fixed;
  font-size: 24px;
  animation: flyUp 1s ease forwards;
  pointer-events: none;
}

@keyframes flyUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1.5);
    opacity: 0;
  }
}
/* ===== SOCIAL ===== */
.social {
  text-align: center;
  padding: 80px 20px;
}

.social-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.social-card {
  width: 240px;
  padding: 20px;
  border-radius: 15px;
  text-decoration: none;
  color: white;
  background: rgba(255,255,255,0.08);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

/* glow nền nhẹ */
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: 0.3s;
}

.social-card:hover::before {
  opacity: 1;
}

.social-card:hover {
  transform: translateY(-10px) scale(1.05);
}

/* màu từng nền tảng */
.fb:hover {
  box-shadow: 0 0 25px #1877f2;
}

.yt:hover {
  box-shadow: 0 0 25px #ff0000;
}

.dc:hover {
  box-shadow: 0 0 25px #5865f2;
}

/* LIGHT MODE FIX */
body.light .social-card {
  background: white;
  color: black;
}
/* ===== SOCIAL MAX LEVEL ===== */
.social {
  text-align: center;
  padding: 100px 20px;
}

.social-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* CARD */
.social-card {
  width: 260px;
  padding: 25px;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

/* ICON */
.social-card .icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* VIỀN NEON */
.social-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0;
  transition: 0.4s;
}

/* GLOW */
.social-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
  opacity: 0;
  transition: 0.4s;
}

/* HOVER */
.social-card:hover {
  transform: translateY(-15px) scale(1.07);
}

.social-card:hover::before {
  opacity: 1;
  animation: borderRun 2s linear infinite;
}

.social-card:hover::after {
  opacity: 1;
}

/* PULSE DOT */
.pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  bottom: 15px;
  right: 15px;
  background: white;
  animation: pulseAnim 1.5s infinite;
}

/* MÀU RIÊNG */
.fb:hover { box-shadow: 0 0 30px #1877f2; }
.yt:hover { box-shadow: 0 0 30px #ff0000; }
.dc:hover { box-shadow: 0 0 30px #5865f2; }

/* ANIMATION */
@keyframes borderRun {
  0% { background-position: 0% }
  100% { background-position: 200% }
}

@keyframes pulseAnim {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* LIGHT MODE FIX */
body.light .social-card {
  background: white;
  color: black;
}
/* ===== POPUP PRO ===== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.6);

  justify-content: center;
  align-items: center;
  z-index: 9999;

  animation: fadeIn 0.3s ease;
}

.popup-content {
  width: 90%;
  max-width: 750px;
  background: #111;
  padding: 15px;
  border-radius: 15px;
  position: relative;

  transform: scale(0.8);
  opacity: 0;
  animation: popupZoom 0.3s ease forwards;
}

@keyframes popupZoom {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

.popup .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 26px;
  cursor: pointer;
  color: white;
  transition: 0.2s;
}

.popup .close:hover {
  color: #ff3d00;
  transform: scale(1.2);
}

.popup iframe {
  border-radius: 10px;
}

/* nút join */
.join-btn {
  margin-top: 15px;
  background: linear-gradient(45deg, #00ffcc, #00c3ff);
  box-shadow: 0 0 15px rgba(0,255,200,0.6);
}

.join-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0,255,200,1);
}

/* mobile */
@media (max-width: 600px) {
  .popup-content {
    width: 95%;
    height: 80%;
  }

  .popup iframe {
    height: 100%;
  }
}
/* ===== FEATURED ===== */
.featured-main {
  width: 80%;
  margin: 30px auto;
  text-align: center;
  cursor: pointer;
}

.featured-main img {
  width: 100%;
  border-radius: 15px;
}

.featured-main h2 {
  margin-top: 10px;
}
/* ===== FIX MODAL HIỂN THỊ ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 999;
}

.modal-content {
  background: #111;
  color: white; /* 👈 FIX CHÍNH */
  margin: 100px auto;
  padding: 20px;
  width: 60%;
  max-width: 600px;
  border-radius: 10px;
  text-align: center;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}
.modal-content {
  color: white;
}
