/* ========================================================
   Deadshots Gaming - Cyberpunk & Modern Gaming CSS Theme
   Built on top of Bootstrap 5.3
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #0b0e17;
  --bg-card: #121626;
  --bg-card-hover: #191f36;
  --border-color: #1f2742;
  --color-cyan: #00f3ff;
  --color-purple: #8a2be2;
  --color-pink: #ff007f;
  --color-green: #00ff88;
  --color-yellow: #ffb703;
  --text-main: #f0f4fc;
  --text-muted: #8e9bb4;
  --glow-cyan: 0 0 20px rgba(0, 243, 255, 0.4);
  --glow-purple: 0 0 20px rgba(138, 43, 226, 0.4);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism & Navbar */
.navbar-custom {
  background: rgba(18, 22, 38, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--glow-cyan);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: all 0.25s ease;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-cyan) !important;
  background: rgba(0, 243, 255, 0.08);
}

/* Hero Section */
.hero-banner {
  background: radial-gradient(circle at 50% 20%, rgba(138, 43, 226, 0.18) 0%, rgba(11, 14, 23, 0) 70%),
              linear-gradient(180deg, rgba(18, 22, 38, 0.6) 0%, rgba(11, 14, 23, 1) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards & Game Grid */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-cyan);
  box-shadow: var(--glow-cyan);
}

.game-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070910;
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-thumb {
  transform: scale(1.06);
}

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--color-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.game-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-title:hover {
  color: var(--color-cyan);
}

.game-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* Category Pills */
.category-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.category-pill:hover, .category-pill.active {
  background: var(--color-cyan);
  color: #0b0e17;
  border-color: var(--color-cyan);
  box-shadow: var(--glow-cyan);
}

/* Game Player Container */
.game-player-wrapper {
  background: #000;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  transition: all 0.3s ease;
}

.game-player-wrapper iframe, 
.game-player-wrapper embed,
.game-player-wrapper object {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.game-controls-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Theater Mode & Fullscreen */
.theater-mode .game-player-wrapper {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 70px);
  z-index: 1040;
  border-radius: 0;
}

.theater-mode .game-player-wrapper iframe {
  height: 100% !important;
}

/* Article Styling */
.article-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}

.article-content h1, 
.article-content h2, 
.article-content h3 {
  color: var(--text-main);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  color: var(--color-cyan);
}

.article-content p {
  color: #c0cbde;
  line-height: 1.7;
  font-size: 1.05rem;
}

.article-content ul, .article-content ol {
  color: #c0cbde;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
}

/* Footer */
footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem 0;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--color-cyan);
}

/* Buttons */
.btn-neon {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: var(--glow-cyan);
}

.btn-neon:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

.btn-outline-neon {
  background: transparent;
  color: var(--color-cyan);
  border: 1px solid var(--color-cyan);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.btn-outline-neon:hover {
  background: var(--color-cyan);
  color: #0b0e17;
  box-shadow: var(--glow-cyan);
}

/* Admin Sidebar & Form Inputs */
.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  min-height: calc(100vh - 65px);
}

.form-control, .form-select {
  background-color: #070910 !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: 10px !important;
  padding: 0.65rem 1rem !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.25) !important;
}

.table-dark-custom {
  --bs-table-bg: var(--bg-card);
  --bs-table-border-color: var(--border-color);
  color: var(--text-main);
  border-radius: 12px;
  overflow: hidden;
}

/* Custom Native Editor Toolbar High-Contrast Styling */
.native-editor-toolbar {
  background: #151a2e !important;
  border-bottom: 1px solid #232b47 !important;
  padding: 8px 12px !important;
}

.native-editor-btn {
  background: #1e2642 !important;
  color: #ffffff !important;
  border: 1px solid #323e66 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.native-editor-btn:hover {
  background: #00f3ff !important;
  color: #0b0e17 !important;
  border-color: #00f3ff !important;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.5) !important;
}

.native-editor-btn i {
  font-size: 0.9rem !important;
  color: #00f3ff !important;
}

.native-editor-btn:hover i {
  color: #0b0e17 !important;
}
