/* RESPAWN GAMING THEME - Modern Dark / Cyber-Indigo Styling */
:root {
  --bg-main: #020617;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --border-color: #1e293b;
  --border-highlight: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --score-green: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Gaming glow utilities */
.glow-cyan {
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}
.glow-box-indigo {
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.25);
}

/* Prose & Markdown Styling for Articles */
.article-content {
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: #ffffff;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.75rem;
  border-left: 4px solid #6366f1;
  padding-left: 0.75rem;
}

.article-content h3 {
  font-size: 1.35rem;
  color: #e2e8f0;
}

.article-content p {
  margin-bottom: 1.3rem;
}

.article-content strong {
  color: #ffffff;
}

.article-content blockquote {
  background: rgba(30, 41, 59, 0.5);
  border-left: 4px solid #06b6d4;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #94a3b8;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  margin: 1.75rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.article-content pre {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: #38bdf8;
}

.article-content code {
  background: #1e293b;
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.875rem;
  color: #a5b4fc;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.article-content ul,
.article-content ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* ========================================================= */
/* STORE BUTTONS & PURCHASE ACTIONS (HERO UI) */
/* ========================================================= */
.store-box-container {
  margin: 2.75rem 0;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #0f172a 0%, #060913 100%);
  border: 1.5px solid #1e293b;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.store-box-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #06b6d4, #10b981, #f43f5e);
}

.store-box-header {
  margin-bottom: 1.25rem;
}

.store-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22d3ee;
  margin-bottom: 0.5rem;
}

.store-box-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 !important;
}

.store-box-subtitle {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 0.25rem 0 0 0 !important;
}

.store-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.store-card-btn {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem !important;
  border-radius: 0.85rem;
  background: #090d16;
  border: 1.5px solid #334155;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.store-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.store-card-icon-wrap {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease;
}

.store-card-btn:hover .store-card-icon-wrap {
  transform: scale(1.08);
}

.store-icon {
  width: 1.4rem;
  height: 1.4rem;
}

.store-card-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-card-platform {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.store-card-action {
  font-size: 0.875rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.store-card-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.store-card-btn:hover .store-card-arrow {
  transform: translateX(4px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

/* Platform-Specific Theming */
.store-btn-steam {
  border-color: #0e7490;
}
.store-btn-steam .store-card-icon-wrap {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
}
.store-btn-steam:hover {
  border-color: #06b6d4;
  background: linear-gradient(135deg, #0e2738 0%, #09131d 100%);
  box-shadow: 0 10px 25px -3px rgba(6, 182, 212, 0.35);
  transform: translateY(-2px);
}

.store-btn-psn {
  border-color: #1d4ed8;
}
.store-btn-psn .store-card-icon-wrap {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.store-btn-psn:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #102347 0%, #081023 100%);
  box-shadow: 0 10px 25px -3px rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.store-btn-xbox {
  border-color: #047857;
}
.store-btn-xbox .store-card-icon-wrap {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.store-btn-xbox:hover {
  border-color: #10b981;
  background: linear-gradient(135deg, #0d3224 0%, #061912 100%);
  box-shadow: 0 10px 25px -3px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.store-btn-nintendo {
  border-color: #be123c;
}
.store-btn-nintendo .store-card-icon-wrap {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}
.store-btn-nintendo:hover {
  border-color: #f43f5e;
  background: linear-gradient(135deg, #3d0d1b 0%, #1e060d 100%);
  box-shadow: 0 10px 25px -3px rgba(244, 63, 94, 0.35);
  transform: translateY(-2px);
}

.store-btn-epic {
  border-color: #6d28d9;
}
.store-btn-epic .store-card-icon-wrap {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.store-btn-epic:hover {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #261642 0%, #130a21 100%);
  box-shadow: 0 10px 25px -3px rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.store-btn-gog {
  border-color: #7c3aed;
}
.store-btn-gog .store-card-icon-wrap {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}
.store-btn-gog:hover {
  border-color: #a855f7;
  background: linear-gradient(135deg, #2c164a 0%, #150926 100%);
  box-shadow: 0 10px 25px -3px rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}

.store-btn-ubisoft {
  border-color: #0284c7;
}
.store-btn-ubisoft .store-card-icon-wrap {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}
.store-btn-ubisoft:hover {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #0c2b44 0%, #051421 100%);
  box-shadow: 0 10px 25px -3px rgba(14, 165, 233, 0.35);
  transform: translateY(-2px);
}

.store-btn-rockstar {
  border-color: #d97706;
}
.store-btn-rockstar .store-card-icon-wrap {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.store-btn-rockstar:hover {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #38240a 0%, #1c1103 100%);
  box-shadow: 0 10px 25px -3px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

/* Also automatically convert any store link inside articles to a solid button */
.article-content a[href*="steampowered.com"],
.article-content a[href*="playstation.com"],
.article-content a[href*="xbox.com"],
.article-content a[href*="nintendo.com"],
.article-content a[href*="epicgames.com"],
.article-content a[href*="gog.com"],
.article-content a[href*="ubisoft.com"],
.article-content a[href*="rockstargames.com"] {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem !important;
  margin: 0.35rem 0.25rem;
  border-radius: 0.75rem;
  background: #0f172a;
  border: 1.5px solid #334155;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.article-content a[href*="steampowered.com"]::after,
.article-content a[href*="playstation.com"]::after,
.article-content a[href*="xbox.com"]::after,
.article-content a[href*="nintendo.com"]::after,
.article-content a[href*="epicgames.com"]::after,
.article-content a[href*="gog.com"]::after,
.article-content a[href*="ubisoft.com"]::after,
.article-content a[href*="rockstargames.com"]::after {
  content: ' ↗';
  font-weight: 900;
  opacity: 0.8;
}

.article-content a[href*="steampowered.com"]:hover {
  background: #0e2738;
  border-color: #06b6d4;
  box-shadow: 0 8px 24px -2px rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

.article-content a[href*="playstation.com"]:hover {
  background: #102347;
  border-color: #3b82f6;
  box-shadow: 0 8px 24px -2px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.article-content a[href*="xbox.com"]:hover {
  background: #0d3224;
  border-color: #10b981;
  box-shadow: 0 8px 24px -2px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.article-content a[href*="nintendo.com"]:hover {
  background: #3d0d1b;
  border-color: #f43f5e;
  box-shadow: 0 8px 24px -2px rgba(244, 63, 94, 0.45);
  transform: translateY(-2px);
}

.article-content a[href*="epicgames.com"]:hover,
.article-content a[href*="gog.com"]:hover {
  background: #261642;
  border-color: #8b5cf6;
  box-shadow: 0 8px 24px -2px rgba(139, 92, 246, 0.45);
  transform: translateY(-2px);
}

.article-content a[href*="ubisoft.com"]:hover {
  background: #0c2b44;
  border-color: #0ea5e9;
  box-shadow: 0 8px 24px -2px rgba(14, 165, 233, 0.45);
  transform: translateY(-2px);
}

.article-content a[href*="rockstargames.com"]:hover {
  background: #38240a;
  border-color: #f59e0b;
  box-shadow: 0 8px 24px -2px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

/* Remove bullets if store links are inside lists */
.article-content ul:has(a[href*="steampowered.com"]),
.article-content ul:has(a[href*="playstation.com"]),
.article-content ul:has(a[href*="xbox.com"]),
.article-content ul:has(a[href*="nintendo.com"]),
.article-content ul:has(a[href*="epicgames.com"]),
.article-content ul:has(a[href*="gog.com"]),
.article-content ul:has(a[href*="ubisoft.com"]),
.article-content ul:has(a[href*="rockstargames.com"]) {
  list-style: none !important;
  padding-left: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-content li:has(a[href*="steampowered.com"]),
.article-content li:has(a[href*="playstation.com"]),
.article-content li:has(a[href*="xbox.com"]),
.article-content li:has(a[href*="nintendo.com"]),
.article-content li:has(a[href*="epicgames.com"]),
.article-content li:has(a[href*="gog.com"]),
.article-content li:has(a[href*="ubisoft.com"]),
.article-content li:has(a[href*="rockstargames.com"]) {
  list-style: none !important;
  margin-bottom: 0.5rem !important;
}

