/* ==========================================
   GameCerto 2026 - Modern CSS Design System
   ========================================== */

/* Variables & Design Tokens */
:root {
  --bg-color: #0b0813;
  --panel-bg: rgb(20 16 36 / 60%);
  --card-bg: rgb(26 21 46 / 70%);
  --border-color: rgb(255 255 255 / 8%);
  --primary-glow: #b65cfb;
  --secondary-glow: #33d6ff;
  --warning-glow: #ff5e97;
  --success-glow: #00f2fe;
  --text-main: #f3f1f6;
  --text-muted: #a39eb2;
  --font-display: "Oxanium", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Animated Mesh Glows */
.mesh-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.mesh-glow-1 {
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: floatGlow 25s infinite alternate;
}

.mesh-glow-2 {
  background: radial-gradient(
    circle,
    var(--secondary-glow) 0%,
    transparent 70%
  );
  bottom: -150px;
  right: -100px;
  animation: floatGlow 30s infinite alternate-reverse;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(80px, -40px) scale(1.1);
  }

  100% {
    transform: translate(-40px, 80px) scale(0.9);
  }
}

/* Glassmorphism Utility */
.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgb(0 0 0 / 37%);
  border-radius: 20px;
}

/* Layout Wrapper */
.app-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Header */
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.app-nav {
  display: flex;
  gap: 12px;
  background: rgb(0 0 0 / 20%);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 5%);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item svg {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgb(255 255 255 / 2%);
}

.nav-item:hover svg {
  opacity: 1;
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary-glow) 0%, #a23ffd 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgb(182 92 251 / 25%);
}

.nav-item.active svg {
  opacity: 1;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(
    135deg,
    #fff 30%,
    var(--primary-glow) 70%,
    var(--secondary-glow)
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  text-transform: uppercase;
}

.logo-title span {
  background: linear-gradient(
    135deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* Main Area - Desktop Split Grid */
.app-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Control Panel (Sidebar) */
.control-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  padding-bottom: 16px;
}

.panel-icon {
  color: var(--primary-glow);
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Tags Scrollable Grid */
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 3%);
  border-radius: 12px;
  background: rgb(0 0 0 / 15%);
}

/* Custom Scrollbar for Tags Scrollbox */
.tags-grid::-webkit-scrollbar {
  width: 6px;
}

.tags-grid::-webkit-scrollbar-track {
  background: rgb(255 255 255 / 1%);
  border-radius: 8px;
}

.tags-grid::-webkit-scrollbar-thumb {
  background: rgb(182 92 251 / 25%);
  border-radius: 8px;
}

.tags-grid::-webkit-scrollbar-thumb:hover {
  background: rgb(182 92 251 / 50%);
}

/* Custom Chips (Checkboxes) */
.chip-wrapper {
  display: inline-block;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip-label {
  display: inline-block;
  padding: 8px 14px;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 30px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.chip-label:hover {
  background: rgb(182 92 251 / 12%);
  border-color: rgb(182 92 251 / 35%);
  color: #fff;
  transform: translateY(-1px);
}

.checkbox-input:checked + .chip-label {
  background: linear-gradient(135deg, var(--primary-glow) 0%, #a23ffd 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgb(182 92 251 / 35%);
}

/* Platform Select & RAM Row */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Custom Select and Input Styling */
select,
input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  background: rgb(0 0 0 / 25%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px rgb(182 92 251 / 25%);
  background: rgb(0 0 0 / 40%);
}

/* Custom dropdown style */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.8rem;
}

select {
  appearance: none;
  padding-right: 40px;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-glow), #9e39f3);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgb(182 92 251 / 30%);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #c77bfa, var(--primary-glow));
  box-shadow: 0 6px 24px rgb(182 92 251 / 50%);
  transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 5%);
  color: rgb(255 255 255 / 20%);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-primary:hover:not(:disabled) .btn-icon {
  transform: translateX(3px) scale(1.1);
}

/* Results Panel Layout */
.results-panel {
  min-height: 480px;
  display: flex;
  align-items: stretch;
}

.card-showcase {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Placeholder Default State Card */
.placeholder-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  gap: 16px;
  border-style: dashed;
  border-width: 2px;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgb(255 255 255 / 2%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-glow);
  box-shadow: inset 0 0 15px rgb(182 92 251 / 10%);
  animation: pulseIcon 3s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(182 92 251 / 20%);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgb(182 92 251 / 20%);
  }
}

.placeholder-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
}

.placeholder-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
}

/* Loading State Animation */
.loading-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgb(255 255 255 / 5%);
  border-top-color: var(--primary-glow);
  border-right-color: var(--secondary-glow);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-state p {
  font-family: var(--font-display);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Game Card Styles (The Showcase Result) */
.game-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  height: 100%;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.game-card:hover {
  border-color: rgb(182 92 251 / 30%);
  box-shadow: 0 12px 40px rgb(182 92 251 / 15%);
}

/* Image Container */
.game-img-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Aspect Ratio 16:9 */
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.game-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Origin Badges (API vs Fallback) */
.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.badge-online {
  background: rgb(51 214 255 / 20%);
  border: 1px solid rgb(51 214 255 / 40%);
  color: var(--secondary-glow);
}

.badge-fallback {
  background: rgb(182 92 251 / 20%);
  border: 1px solid rgb(182 92 251 / 40%);
  color: #d19eff;
}

/* Game Card Content Body */
.game-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.game-genre {
  font-family: var(--font-display);
  color: var(--secondary-glow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.game-price-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.game-price-badge.price-free {
  color: #00f2fe;
  background: rgb(0 242 254 / 10%);
  border: 1px solid rgb(0 242 254 / 20%);
}

.game-price-badge.price-paid {
  color: #ff5e97;
  background: rgb(255 94 151 / 10%);
  border: 1px solid rgb(255 94 151 / 20%);
}

.table-price-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.table-price-tag.price-free {
  color: #00f2fe;
  background: rgb(0 242 254 / 8%);
  border: 1px solid rgb(0 242 254 / 15%);
}

.table-price-tag.price-paid {
  color: #ff5e97;
  background: rgb(255 94 151 / 8%);
  border: 1px solid rgb(255 94 151 / 15%);
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.game-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Metadata Row */
.game-meta-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / 4%);
  padding-top: 14px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* System Requirements & RAM alert block */
.game-sys-info {
  background: rgb(0 0 0 / 20%);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
}

.platform-badge svg {
  color: var(--secondary-glow);
}

.ram-status {
  font-size: 0.8rem;
  font-weight: 500;
}

.ram-compatible {
  color: var(--success-glow);
}

.ram-warning {
  color: var(--warning-glow);
}

.ram-neutral {
  color: var(--text-muted);
}

/* Play Button */
.btn-play {
  text-decoration: none;
  background: linear-gradient(135deg, var(--secondary-glow), #26b2d8);
  color: #0b0813;
  border: none;
  font-size: 1rem;
  margin-top: auto;
}

.btn-play:hover {
  background: linear-gradient(135deg, #7be6ff, var(--secondary-glow));
  box-shadow: 0 4px 18px rgb(51 214 255 / 40%);
  transform: translateY(-2px);
}

.btn-play svg {
  transition: transform 0.3s ease;
}

.btn-play:hover svg {
  transform: translate(2px, -2px);
}

/* Entry Animation Class */
.fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error Card */
.error-card {
  padding: 24px;
  text-align: center;
  border-color: rgb(255 94 151 / 20%);
  color: var(--warning-glow);
}

/* Footer styling */
.app-footer {
  text-align: center;
  padding: 24px 0 8px;
  border-top: 1px solid rgb(255 255 255 / 3%);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-footer a {
  color: var(--primary-glow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.app-footer a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--secondary-glow);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.app-footer a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.app-footer a:hover {
  color: var(--secondary-glow);
}

/* Responsive adjustments */
@media (width <= 900px) {
  .app-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .logo-title {
    font-size: 2.8rem;
  }

  .control-panel {
    padding: 20px;
  }

  .placeholder-card {
    padding: 32px 20px;
  }
}

@media (width <= 480px) {
  .logo-title {
    font-size: 2.2rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-container {
    padding: 24px 16px;
  }
}

/* ==========================================
   Dashboard Specific Styles
   ========================================== */
.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Stats Summary Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgb(255 255 255 / 15%);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-blue {
  background: rgb(51 214 255 / 15%);
  border: 1px solid rgb(51 214 255 / 30%);
  color: var(--secondary-glow);
}

.icon-purple {
  background: rgb(182 92 251 / 15%);
  border: 1px solid rgb(182 92 251 / 30%);
  color: var(--primary-glow);
}

.icon-pink {
  background: rgb(255 94 151 / 15%);
  border: 1px solid rgb(255 94 151 / 30%);
  color: var(--warning-glow);
}

.icon-green {
  background: rgb(0 242 254 / 15%);
  border: 1px solid rgb(0 242 254 / 30%);
  color: var(--success-glow);
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-details h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

/* Charts Grid */
.charts-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

@media (width <= 900px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  padding-bottom: 12px;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive Table Card */
.table-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.table-header-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  padding-bottom: 20px;
}

.table-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.table-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

#table-search {
  min-width: 240px;
  background: rgb(0 0 0 / 25%);
  border: 1px solid rgb(255 255 255 / 8%);
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: 10px;
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
}

#table-search:focus {
  border-color: var(--primary-glow);
  box-shadow: 0 0 8px rgb(182 92 251 / 25%);
}

.table-select-wrapper {
  position: relative;
}

.table-select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.75rem;
}

.table-select-wrapper select {
  appearance: none;
  padding: 10px 32px 10px 16px;
  font-size: 0.9rem;
  background: rgb(0 0 0 / 25%);
  border-radius: 10px;
}

/* Data Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 5%);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgb(0 0 0 / 20%);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 10%);
  border-radius: 10px;
}

.games-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  background: rgb(0 0 0 / 15%);
}

.games-table th {
  background: rgb(255 255 255 / 2%);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.games-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 4%);
  color: var(--text-muted);
  vertical-align: middle;
}

.games-table tbody tr {
  transition: background-color 0.2s ease;
}

.games-table tbody tr:hover {
  background-color: rgb(255 255 255 / 2%);
}

.games-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Thumbnail */
.game-table-thumb {
  width: 60px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 10%);
  display: block;
}

.games-table td strong {
  color: #fff;
  font-weight: 600;
}

/* Genre Tag inside Table */
.table-genre-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  background: rgb(182 92 251 / 10%);
  border: 1px solid rgb(182 92 251 / 20%);
  color: #c98eff;
}

/* Table Actions Button */
.btn-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  background: rgb(51 214 255 / 10%);
  border: 1px solid rgb(51 214 255 / 20%);
  color: var(--secondary-glow);
  transition: all 0.2s ease;
}

.btn-table-action:hover {
  background: var(--secondary-glow);
  color: #0b0813;
  box-shadow: 0 0 10px rgb(51 214 255 / 30%);
}

/* Pagination Controls */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgb(255 255 255 / 5%);
  padding-top: 20px;
  margin-top: 8px;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination-buttons {
  display: flex;
  gap: 8px;
}

.btn-pagination {
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pagination:hover:not(:disabled) {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 15%);
}

.btn-pagination:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Responsive Table */
@media (width <= 768px) {
  .table-header-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-filters {
    width: 100%;
  }

  #table-search,
  .table-select-wrapper {
    flex: 1;
    min-width: 140px;
  }
}

/* Seção de Recomendações Alternativas */
.alternatives-section {
  margin-top: 32px;
  width: 100%;
}

.alternatives-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgb(255 255 255 / 10%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 20px;
  width: 100%;
}

.alternative-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 6%);
}

.alternative-card:hover {
  transform: translateY(-4px);
  background: rgb(255 255 255 / 6%);
  border-color: rgb(255 94 151 / 30%);
  box-shadow: 0 12px 30px rgb(0 0 0 / 30%);
}

.match-percentage-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgb(0 242 254 / 15%);
  border: 1px solid rgb(0 242 254 / 30%);
  color: #00f2fe;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.main-match-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  background: rgb(255 94 151 / 20%);
  border: 1px solid rgb(255 94 151 / 45%);
  color: #ff5e97;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.why-recommended-box {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgb(255 255 255 / 3%);
  border-left: 3px solid var(--secondary-glow);
  border-radius: 4px 8px 8px 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
