/* css styles */

body {
  isolation: isolate;
  background-color: #11151b;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, 0.75) 98%, transparent),
    radial-gradient(1px 1px at 100px 120px, rgba(173, 216, 230, 0.65) 98%, transparent),
    radial-gradient(2px 2px at 180px 70px, rgba(255, 255, 255, 0.55) 98%, transparent);
  background-size: 220px 220px, 310px 310px, 470px 470px;
  animation: star-drift 120s linear infinite;
}

@keyframes star-drift {
  to {
    background-position: 440px 220px, -310px 310px, 235px -470px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

/* DataTables dark theme styling */
.dataTables_wrapper {
  color: #ffffff !important;
}

.dataTables_wrapper label,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  color: #e0e0e0 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background-color: #2b2b2b !important;
  color: #ffffff !important;
  border: 1px solid #555555 !important;
  padding: 4px 8px;
  border-radius: 4px;
}

table.dataTable {
  background-color: #222222 !important;
  color: #ffffff !important;
  border-collapse: collapse !important;
}

table.dataTable th {
  background-color: #2c3e50 !important;
  color: #ffffff !important;
  border-bottom: 2px solid #555555 !important;
  font-weight: 600;
}

table.dataTable tbody tr {
  background-color: #222222 !important;
  color: #ffffff !important;
}

table.dataTable tbody tr:nth-child(even) {
  background-color: #2a2a2a !important;
}

table.dataTable tbody tr:hover {
  background-color: #375a7f !important;
  color: #ffffff !important;
}

table.dataTable td {
  border-color: #3a3a3a !important;
  color: #f0f0f0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #375a7f !important;
  color: #ffffff !important;
  border: 1px solid #375a7f !important;
}

/* Featured Game Cards */
.game-card {
  background-color: #24292e;
  border: 1px solid #373e47;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border-color: #375a7f;
}

.game-cover-container {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #1a1a1a;
}

.game-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.game-card:hover .game-cover-img {
  transform: scale(1.04);
}

.playtime-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 4px;
  margin-bottom: 4px;
}

.badge-story {
  background-color: rgba(52, 152, 219, 0.15);
  color: #5dade2;
  border: 1px solid rgba(52, 152, 219, 0.4);
}

.badge-extras {
  background-color: rgba(243, 156, 18, 0.15);
  color: #f5b041;
  border: 1px solid rgba(243, 156, 18, 0.4);
}

.badge-comp {
  background-color: rgba(231, 76, 60, 0.15);
  color: #ec7063;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

.badge-score {
  background-color: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.metric-box {
  background-color: #222222;
  border: 1px solid #373e47;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

/* Story Description Box */
.story-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db;
  background-color: #24292e;
  border-left: 4px solid #3498db;
  padding: 1.75rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.story-description h3 {
  color: #5bc0de;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}

.story-description ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.story-description li {
  margin-bottom: 0.5rem;
}

/* Glowing point highlight for scatter plot */
.glowing-point {
  filter: drop-shadow(0 0 6px #ffbe76) drop-shadow(0 0 12px #f39c12) drop-shadow(0 0 20px rgba(243, 156, 18, 0.8)) !important;
  stroke: #ffffff !important;
  stroke-width: 2px !important;
  animation: pulse-glow 1.5s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
  0% {
    filter: drop-shadow(0 0 5px #ffbe76) drop-shadow(0 0 10px #f39c12) drop-shadow(0 0 16px rgba(243, 156, 18, 0.7));
  }
  100% {
    filter: drop-shadow(0 0 8px #ffffff) drop-shadow(0 0 16px #ffaa00) drop-shadow(0 0 26px rgba(255, 170, 0, 0.95));
  }
}

/* Backlog Planner styles */
.backlog-card {
  background-color: #24292e;
  border: 1px solid #373e47;
  border-radius: 8px;
  padding: 1.15rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.backlog-card:hover {
  transform: translateY(-3px);
  border-color: #3498db;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.time-progress-bar {
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  background-color: #181b1e;
  margin-top: 10px;
  margin-bottom: 6px;
}

.progress-story {
  background-color: #3498db;
}

.progress-extra {
  background-color: #f39c12;
}



