/* ============================================ */
/* game-guide.club - Premium UI Overhaul        */
/* Inspired by: Fextralife, Paimon.moe, Game8   */
/* ============================================ */

/* --- GLOBAL BACKGROUND OVERLAY --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(249, 115, 22, 0.06), transparent 45%),
    radial-gradient(ellipse at 85% 85%, rgba(59, 130, 246, 0.04), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* --- PER-GAME BACKGROUNDS --- */
[class*="-bg"]::before {
  content: '';
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

.wukong-bg::before {
  background-image: url('../images/bg/wukong-bg.jpg');
  opacity: 0.2;
}
.wukong-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(180, 130, 50, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.genshin-bg::before {
  background-image: url('../images/bg/genshin-bg.jpg');
  opacity: 0.18;
}
.genshin-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(56, 189, 248, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.diablo4-bg::before {
  background-image: url('../images/bg/diablo4-bg.jpg');
  opacity: 0.18;
}
.diablo4-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(220, 38, 38, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.gta-bg::before {
  background-image: url('../images/bg/gta-bg.jpg');
  opacity: 0.18;
}
.gta-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(147, 51, 234, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* --- HEADER / NAVIGATION --- */
.md-header {
  backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(10, 10, 18, 0.82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100 !important;
}

.md-tabs {
  background: rgba(10, 10, 18, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.md-tabs__link {
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  opacity: 0.7;
  transition: all 0.25s;
}
.md-tabs__link:hover,
.md-tabs__link--active {
  opacity: 1;
}

/* --- MAIN CONTENT --- */
.md-main__inner { position: relative; z-index: 1; }

.md-content {
  background: rgba(13, 13, 20, 0.55);
  backdrop-filter: blur(12px) saturate(1.3);
  border-radius: 16px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.md-sidebar { position: relative; z-index: 1; }

/* --- HERO CARD - Homepage Game Cards --- */
.game-hero-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 24px 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.game-hero-card-inner {
  padding: 28px 32px;
  position: relative;
  z-index: 1;
  background: rgba(13, 13, 20, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-hero-card:hover .game-hero-card-inner {
  transform: translateY(-4px);
  background: rgba(13, 13, 20, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Per-game card accents */
.game-card-wukong {
  background: linear-gradient(135deg, rgba(180, 130, 50, 0.08), transparent 60%);
  border-left: 3px solid rgba(180, 130, 50, 0.5);
}
.game-card-wukong .game-card-title { color: #d4a854; }

.game-card-genshin {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 60%);
  border-left: 3px solid rgba(56, 189, 248, 0.5);
}
.game-card-genshin .game-card-title { color: #38bdf8; }

.game-card-diablo4 {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), transparent 60%);
  border-left: 3px solid rgba(220, 38, 38, 0.5);
}
.game-card-diablo4 .game-card-title { color: #ef4444; }

.game-card-gta {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.08), transparent 60%);
  border-left: 3px solid rgba(147, 51, 234, 0.5);
}
.game-card-gta .game-card-title { color: #a855f7; }

.game-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-card-sub {
  font-size: 0.9rem;
  color: var(--md-typeset-color);
  opacity: 0.6;
  margin-bottom: 12px;
}

.game-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.game-card-link {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--md-typeset-color) !important;
  transition: all 0.2s;
  text-decoration: none !important;
}
.game-card-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- FROSTED CARDS (admonition/details/table) --- */
.md-typeset .admonition,
.md-typeset details {
  backdrop-filter: blur(10px) saturate(1.2);
  background: rgba(13, 13, 20, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  transition: all 0.2s;
}
.md-typeset .admonition:hover,
.md-typeset details:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.md-typeset table:not(.md-typeset__table) {
  background: rgba(13, 13, 20, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  overflow: hidden;
}
.md-typeset table tbody tr:hover {
  background: rgba(249, 115, 22, 0.08);
}

.md-typeset code {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2px 6px;
}

/* --- TYPOGRAPHY ENHANCEMENTS --- */
.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.6em;
}
.md-typeset h2 {
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-top: 1.5em;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.md-typeset h3 {
  font-weight: 600;
  margin-top: 1.2em;
}

/* --- FEEDBACK SECTION --- */
.feedback-section {
  margin-top: 48px;
  padding: 24px;
  background: rgba(13, 13, 20, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-align: center;
}

.feedback-section h2 {
  border-bottom: none;
  margin-top: 0;
  color: #f97316;
}
.feedback-section p {
  color: #9b9a95;
  font-size: 0.9rem;
}

/* --- QUOTE BLOCKS --- */
.md-typeset blockquote {
  border-left: 3px solid rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.04);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

/* --- DIVIDER --- */
.md-typeset hr {
  border-color: rgba(255, 255, 255, 0.06);
  margin: 24px 0;
}
