/* ===== GAMEPLAY PAGE STYLES ===== */

.gp-hero {
  position: relative; z-index: 1;
  min-height: 50vh;
  display: flex; align-items: center;
  padding: 8rem 2rem 3rem;
  overflow: hidden;
}
.gp-hero-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(4rem, 15vw, 14rem);
  font-weight: 900; color: transparent;
  -webkit-text-stroke: 1px rgba(0,212,255,0.08);
  white-space: nowrap; pointer-events: none;
}
.gp-hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center; width: 100%; }

.gp-tabs {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  justify-content: center; margin-top: 2rem;
}
.gp-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text2); cursor: pointer;
  padding: 0.7rem 1.5rem; border-radius: 30px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s;
}
.gp-tab:hover { border-color: var(--diamond); color: var(--diamond); }
.gp-tab.active {
  background: linear-gradient(135deg, var(--diamond2), var(--diamond));
  border-color: var(--diamond); color: #000; font-weight: 700;
}

/* ===== CONTENT SECTIONS ===== */
.gp-content {
  position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.gp-section-header { text-align: center; margin-bottom: 2.5rem; }
.gp-section-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem; font-weight: 900; margin-bottom: 0.5rem;
}
.gp-section-header p { color: var(--text2); }

/* ===== STREAMS ===== */
.streams-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 1.5rem; margin-bottom: 3rem;
}
.stream-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden;
  transition: all 0.3s;
}
.stream-card:hover { border-color: var(--fire); box-shadow: 0 10px 30px rgba(255,107,0,0.2); }
.stream-card.featured { border-color: rgba(255,23,68,0.4); }
.stream-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--dark3); overflow: hidden;
}
.stream-thumb iframe { width: 100%; height: 100%; border: none; }
.stream-info { padding: 1rem; }
.stream-live-badge {
  display: inline-block;
  background: rgba(255,23,68,0.2);
  border: 1px solid rgba(255,23,68,0.4);
  color: #ff1744; padding: 0.2rem 0.6rem;
  border-radius: 20px; font-size: 0.7rem;
  font-weight: 700; margin-bottom: 0.5rem;
}
.stream-title { font-weight: 700; margin-bottom: 0.3rem; }
.stream-meta { font-size: 0.8rem; color: var(--text2); }

/* ===== YT SEARCH ===== */
.yt-search-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px; padding: 2rem;
}
.yt-search-section h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem; margin-bottom: 1rem; color: var(--gold);
}
.yt-search-bar { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; }
.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.yt-video-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: all 0.3s;
}
.yt-video-card:hover { border-color: var(--fire); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,107,0,0.2); }
.yt-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; opacity: 0; transition: opacity 0.3s;
  color: white;
}
.yt-video-card:hover .yt-play-overlay { opacity: 1; }
.yt-info { padding: 0.8rem; }
.yt-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; line-height: 1.3; }
.yt-meta { font-size: 0.75rem; color: var(--text2); }

/* ===== VIDEO MODAL ===== */
.video-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.video-modal-inner {
  position: relative;
  width: 90%; max-width: 900px;
}
.video-close {
  position: absolute; top: -40px; right: 0;
  background: rgba(255,107,0,0.2);
  border: 1px solid rgba(255,107,0,0.4);
  color: var(--fire); cursor: pointer;
  width: 35px; height: 35px; border-radius: 50%;
  font-size: 1rem; font-weight: 700;
  transition: all 0.3s;
}
.video-close:hover { background: rgba(255,107,0,0.4); }
.video-player { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; }
.video-player iframe { width: 100%; height: 100%; }

/* ===== HIGHLIGHTS ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.highlight-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: all 0.3s;
}
.highlight-card:hover { border-color: var(--fire); transform: translateY(-5px); box-shadow: 0 12px 35px rgba(255,107,0,0.25); }
.hl-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.highlight-card:hover .hl-thumb img { transform: scale(1.05); }
.hl-play {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: white;
  opacity: 0; transition: opacity 0.3s;
}
.highlight-card:hover .hl-play { opacity: 1; }
.hl-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,107,0,0.9);
  color: white; padding: 0.2rem 0.6rem;
  border-radius: 20px; font-size: 0.65rem; font-weight: 700;
}
.hl-info { padding: 1rem; }
.hl-title { font-weight: 700; margin-bottom: 0.3rem; }
.hl-meta { font-size: 0.75rem; color: var(--text2); }

/* ===== TIPS ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.tip-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px; padding: 1.5rem;
  transition: all 0.3s; backdrop-filter: blur(10px);
}
.tip-card:hover { border-color: var(--diamond); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,212,255,0.15); }
.tip-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.tip-card h3 { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; margin-bottom: 0.7rem; color: var(--gold); }
.tip-card p { color: var(--text2); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }
.tip-level {
  display: inline-block;
  padding: 0.2rem 0.7rem; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===== MINI GAME ===== */
.minigame-container {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 2rem; align-items: start;
}
.mg-stats {
  display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.mg-stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px; padding: 0.8rem 1.5rem;
  text-align: center; flex: 1; min-width: 80px;
}
.mg-num {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem; font-weight: 900; color: var(--gold);
}
.mg-lbl { font-size: 0.7rem; color: var(--text2); }

.mg-arena {
  position: relative;
  background: var(--dark3);
  border: 2px solid rgba(255,107,0,0.3);
  border-radius: 20px;
  height: 450px; overflow: hidden;
  cursor: crosshair;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}
.mg-arena::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.mg-crosshair {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem; color: rgba(255,107,0,0.3);
  pointer-events: none; z-index: 5;
  font-weight: 100;
}
.mg-start-overlay, .mg-end-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(5,8,16,0.85);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 1rem;
  backdrop-filter: blur(5px);
}
.mg-start-icon { font-size: 4rem; }
.mg-start-overlay h3, .mg-end-overlay h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem; color: var(--gold);
}
.mg-start-overlay p, .mg-end-overlay p { color: var(--text2); font-size: 0.9rem; line-height: 1.6; }
.mg-reward {
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold); padding: 0.5rem 1.5rem;
  border-radius: 20px; font-weight: 700;
}

.mg-target {
  position: absolute; z-index: 6;
  cursor: crosshair;
  animation: target-appear 0.2s ease;
  transition: transform 0.1s;
}
.mg-target:hover { transform: scale(1.1); }
.mg-target-inner {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(255,107,0,0.5);
  animation: target-pulse 0.5s ease-in-out infinite alternate;
}
@keyframes target-appear {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes target-pulse {
  from { box-shadow: 0 0 10px rgba(255,107,0,0.3); }
  to { box-shadow: 0 0 25px rgba(255,107,0,0.8); }
}
.mg-hit-effect {
  position: absolute; z-index: 7;
  font-size: 1.2rem; font-weight: 900;
  color: var(--gold); pointer-events: none;
  animation: hit-float 0.8s ease forwards;
  font-family: 'Orbitron', sans-serif;
}
@keyframes hit-float {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-60px) scale(1.5); }
}

.mg-leaderboard {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px; padding: 1.5rem;
}
.mg-leaderboard h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem; color: var(--gold);
  margin-bottom: 1rem;
}
.mg-lb-list { display: flex; flex-direction: column; gap: 0.7rem; }
.mg-lb-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem; border-radius: 8px;
  background: rgba(255,255,255,0.03);
  font-size: 0.85rem;
}
.mg-rank { font-size: 1rem; }
.mg-lb-score { margin-left: auto; color: var(--gold); font-weight: 700; font-family: 'Orbitron', sans-serif; font-size: 0.8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .streams-grid { grid-template-columns: 1fr; }
  .minigame-container { grid-template-columns: 1fr; }
  .mg-arena { height: 350px; }
}
@media (max-width: 600px) {
  .gp-tabs { gap: 0.5rem; }
  .gp-tab { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .yt-search-bar { flex-direction: column; }
}