/* Strategy Hub – src/css/strategy-hub.css */

:root {
  --card-bg: rgba(26, 26, 31, 0.85); /* translucent panel for glass‑morphism */
  --card-border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  --card-hover-scale: 1.05;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  --grid-gap: 20px;
}

/* Container for the hub */
.strategy-hub {
  padding: 24px;
  background: linear-gradient(135deg, rgba(18, 18, 20, 0.35), rgba(30, 30, 34, 0.35));
  backdrop-filter: blur(12px);
  border: var(--card-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Filter controls */
.hub-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

@media (min-width: 996px) {
  .hub-controls {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
}

/* Search input styling */
.search-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  min-width: 200px;
}

@media (min-width: 996px) {
  .search-wrapper {
    max-width: 480px;
  }
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #666);
  pointer-events: none;
  font-size: 20px;
}

.search-wrapper .form-input {
  height: 40px;
  box-sizing: border-box;
  padding-left: 40px;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #fff);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.search-wrapper .form-input:focus {
  outline: none;
  border-color: var(--color-primary, #ff005b);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(255, 0, 91, 0.2);
}

/* Chip buttons for game filtering */
.btn-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #aaa);
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #fff);
}

.btn-chip.active {
  background: var(--color-primary, #ff005b);
  border-color: var(--color-primary, #ff005b);
  color: #000 !important;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(255, 0, 91, 0.4);
}

/* Game Sections */
.game-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.game-header-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.game-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

.character-countbadge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #888);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Responsive grid for character cards */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--grid-gap);
}



@media (min-width: 600px) {
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Individual character card */
.strategy-hub .character-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.strategy-hub .character-card:hover {
  transform: scale(var(--card-hover-scale));
  box-shadow: var(--card-shadow);
  border-color: var(--color-primary, #ff005b);
}

/* Portrait image */
.character-card .portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top; /* Align to top to prevent cutting off heads/faces */
  background-color: rgba(0, 0, 0, 0.2);
  filter: contrast(1.05) saturate(1.1);
  transition: filter 0.2s ease;
  display: block;
}

.character-card:hover .portrait {
  filter: contrast(1.1) saturate(1.2);
}

/* Game badge – small colored bar on top */
.character-card .game-badge {
  padding: 4px 8px;
  font-size: 0.65rem;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* Title / character name */
.character-card .char-name {
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary, #fff);
  letter-spacing: 0.2px;
}

/* Game‑specific badge colors */
.game-badge-sf6 { background: #ff6b00; color: #000; }
.game-badge-t8 { background: #00cbd6; color: #000; }
.game-badge-ggst { background: #ff005b; color: #000; }
.game-badge-dbfz { background: #ff5500; color: #fff; }
.game-badge-dbfzce { background: #ffaa00; color: #000; }
.game-badge-gbvsr { background: #3b82f6; color: #fff; }
.game-badge-dnfd { background: #a855f7; color: #fff; }
.game-badge-ssbu { background: #ffca00; color: #000; }

/* Empty state styling */
#hub-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.hidden {
  display: none !important;
}

/* Footer license link */
.license-footer {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Character page details */
.character-page {
  padding: 8px 16px;
}

.character-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.character-portrait-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border: 2px solid var(--color-primary, #ff005b);
  box-shadow: 0 0 16px rgba(255, 0, 91, 0.3);
}

.game-header-logo-large {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Table Controls */
.table-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 16px;
}

@media (min-width: 996px) {
  .table-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Frame data table layout */
.frame-data-card {
  background: rgba(26, 26, 31, 0.85);
  backdrop-filter: blur(12px);
  border: var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
}

.frame-data-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.frame-data-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.frame-data-th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-secondary, #aaa);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  position: relative;
}

.frame-data-th:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #fff);
}

.frame-data-th.sorted-asc::after {
  content: ' ▲';
  font-size: 0.7rem;
  color: var(--color-primary, #ff005b);
}

.frame-data-th.sorted-desc::after {
  content: ' ▼';
  font-size: 0.7rem;
  color: var(--color-primary, #ff005b);
}

.frame-data-tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.frame-data-tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.frame-data-tr:last-child {
  border-bottom: none;
}

.frame-data-td {
  padding: 12px 16px;
  color: var(--text-primary, #fff);
}

/* Submove / Follow-up Row Styling */
.frame-data-tr.submove-row {
  background: rgba(0, 0, 0, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.frame-data-tr.submove-row:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

.frame-data-tr.submove-row .frame-data-td {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.82rem !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* Indent the first cell (Move name) and add tree vertical line styling */
.submove-name-td {
  padding-left: 2.75rem !important;
  position: relative;
}

/* Vertical line connecting the child moves */
.submove-name-td::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary, #ff005b);
  opacity: 0.45;
}

/* Indent the second cell (Command buttons) */
.frame-data-tr.submove-row td:nth-child(2) {
  padding-left: 2rem !important;
}

.submove-connector {
  color: var(--color-primary, #ff005b);
  opacity: 0.7;
  font-family: monospace;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 0.4rem;
  user-select: none;
}

/* Advantage Badges */
.adv-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  min-width: 32px;
}

.adv-plus {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.adv-minus {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.adv-neutral {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Unsupported Game View */
.unsupported-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: rgba(26, 26, 31, 0.85);
  border: var(--card-border);
  border-radius: 12px;
  margin-top: 24px;
}

.unsupported-icon {
  font-size: 3rem;
  color: var(--color-primary, #ff005b);
  margin-bottom: 16px;
}

/* Expandable Move details accordion styles */
.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: rgba(0, 240, 255, 0.04) !important;
}

.clickable-row.expanded {
  background: rgba(0, 240, 255, 0.02);
  border-left: 3px solid var(--color-cyan, #00f0ff);
}

.frame-details-tr {
  background: rgba(10, 10, 12, 0.6);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.move-details-expanded {
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.move-images-flex {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 996px) {
  .move-images-flex {
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
  }
}

.move-image-card {
  position: relative;
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}

.move-image-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-action { color: var(--color-primary, #ff005b); }
.title-hitbox { color: var(--color-cyan, #00f0ff); }

.move-image-wrapper {
  background: #141416;
  border-radius: 6px;
  padding: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.move-details-img,
.move-details-video {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.move-details-img:hover,
.move-details-video:hover {
  transform: scale(1.02);
}

/* Spinner helper */
.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* Hitbox & Hurtbox Tooltip Guide */
.hitbox-helper {
  cursor: pointer;
  color: #88888b;
  transition: color var(--transition-fast, 0.2s);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hitbox-helper:hover,
.hitbox-helper.active {
  color: var(--color-cyan, #00f0ff);
}

.hitbox-tooltip {
  visibility: hidden;
  position: absolute;
  top: 40px;
  left: 12px;
  right: 12px;
  background: rgba(18, 18, 22, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--text-primary, #ffffff);
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 0 12px rgba(0, 240, 255, 0.05);
  border-radius: 6px;
  z-index: 100;
  opacity: 0;
  transition: opacity var(--transition-fast, 0.2s), visibility var(--transition-fast, 0.2s);
  pointer-events: none;
  text-transform: none;
  letter-spacing: normal;
  font-weight: normal;
}

.hitbox-tooltip .tooltip-title {
  font-family: var(--font-heading, inherit);
  font-weight: 700;
  color: var(--color-cyan, #00f0ff);
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  padding-bottom: 6px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.hitbox-tooltip ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hitbox-tooltip li {
  line-height: 1.4;
  text-align: left;
  font-size: 0.75rem;
}

.hitbox-tooltip strong {
  font-weight: 600;
}

.hitbox-helper:hover .hitbox-tooltip,
.hitbox-helper.active .hitbox-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Loading overlay & grid transitions for Strategy Hub */
.hub-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 18, 20, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10;
  border-radius: 12px;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.hub-loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.hub-loading-overlay.hidden {
  display: none !important;
}

.hub-sections-wrapper {
  transition: opacity 0.3s ease;
  opacity: 1;
}

.hub-sections-wrapper.loading {
  opacity: 0 !important;
  pointer-events: none;
}

/* Spinner styling inside loading overlay */
.hub-loading-overlay .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-primary, #ff005b);
  border-radius: 50%;
  animation: hub-spin 1s linear infinite;
}

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

/* Page-level loading overlay for Character Details page */
.char-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 18, 20, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: opacity 0.35s ease;
  opacity: 1;
}

.char-loading-overlay .spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-primary, #ff6b00);
  border-radius: 50%;
  animation: hub-spin 1.2s linear infinite;
}

.char-loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.char-loading-overlay.hidden {
  display: none !important;
}

.char-page-container {
  transition: opacity 0.35s ease;
  opacity: 1;
}

.char-page-container.loading {
  opacity: 0 !important;
  pointer-events: none;
}

/* Loading Progress Bar Styling */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 280px;
}

.loading-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.loading-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.loading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-secondary, #00cbd6) 0%, var(--color-primary, #ff6b00) 100%);
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
  border-radius: 2px;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-progress-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--text-secondary, #a0a0ab);
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: none;
}

/* Move Images Preloader Styles */
.preloader-status-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary, #a0a0ab);
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
}

.preloader-status-container.hidden {
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  display: none !important;
}

.preloader-bar {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.preloader-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary, #00cbd6) 0%, var(--color-primary, #ff6b00) 100%);
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
  border-radius: 3px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Move category tab styling */
.move-category-tabs-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
}

.move-category-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.move-category-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary, #a0a0ab);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.move-category-tab:hover {
  color: var(--text-primary, #ffffff);
  background: rgba(255, 255, 255, 0.02);
}

/* Category indicator dot */
.category-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.indicator-all {
  background: #a0a0ab;
}
.indicator-normals {
  background: var(--color-secondary, #00cbd6);
}
.indicator-specials {
  background: var(--color-primary, #ff6b00);
}
.indicator-supers {
  background: var(--color-danger, #ff005b);
}
.indicator-grabs {
  background: #9c27b0;
}
.indicator-state {
  background: #607d8b;
}
.indicator-universal {
  background: #e91e63;
}

.move-category-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Active tab specific glow borders */
.move-category-tab.active[data-category="all"] {
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.move-category-tab.active[data-category="normals"] {
  border: 1px solid rgba(0, 203, 214, 0.3);
  box-shadow: 0 0 10px rgba(0, 203, 214, 0.15);
}
.move-category-tab.active[data-category="specials"] {
  border: 1px solid rgba(255, 107, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.15);
}
.move-category-tab.active[data-category="supers"] {
  border: 1px solid rgba(255, 0, 91, 0.3);
  box-shadow: 0 0 10px rgba(255, 0, 91, 0.15);
}
.move-category-tab.active[data-category="grabs"] {
  border: 1px solid rgba(156, 39, 176, 0.3);
  box-shadow: 0 0 10px rgba(156, 39, 176, 0.15);
}
.move-category-tab.active[data-category="state"] {
  border: 1px solid rgba(96, 125, 139, 0.3);
  box-shadow: 0 0 10px rgba(96, 125, 139, 0.15);
}
.move-category-tab.active[data-category="universal"] {
  border: 1px solid rgba(233, 30, 99, 0.3);
  box-shadow: 0 0 10px rgba(233, 30, 99, 0.15);
}

.move-category-tab.active .category-indicator {
  transform: scale(1.2);
}

.move-category-tab.active .indicator-normals {
  box-shadow: 0 0 8px var(--color-secondary, #00cbd6);
}
.move-category-tab.active .indicator-specials {
  box-shadow: 0 0 8px var(--color-primary, #ff6b00);
}
.move-category-tab.active .indicator-supers {
  box-shadow: 0 0 8px var(--color-danger, #ff005b);
}
.move-category-tab.active .indicator-grabs {
  box-shadow: 0 0 8px #9c27b0;
}
.move-category-tab.active .indicator-state {
  box-shadow: 0 0 8px #607d8b;
}
.move-category-tab.active .indicator-universal {
  box-shadow: 0 0 8px #e91e63;
}

.category-count {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted, #6b6b76);
  transition: all 0.25s ease;
}

.move-category-tab:hover .category-count,
.move-category-tab.active .category-count {
  color: var(--text-secondary, #a0a0ab);
  background: rgba(255, 255, 255, 0.12);
}

/* Category Badge inside table row */
.badge-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.badge-type.normals {
  background: rgba(0, 203, 214, 0.1);
  color: var(--color-secondary, #00cbd6);
  border: 1px solid rgba(0, 203, 214, 0.2);
}
.badge-type.specials {
  background: rgba(255, 107, 0, 0.1);
  color: var(--color-primary, #ff6b00);
  border: 1px solid rgba(255, 107, 0, 0.2);
}
.badge-type.supers {
  background: rgba(255, 0, 91, 0.1);
  color: var(--color-danger, #ff005b);
  border: 1px solid rgba(255, 0, 91, 0.2);
  box-shadow: 0 0 6px rgba(255, 0, 91, 0.2);
}
.badge-type.grabs {
  background: rgba(156, 39, 176, 0.1);
  color: #9c27b0;
  border: 1px solid rgba(156, 39, 176, 0.2);
}
.badge-type.state {
  background: rgba(96, 125, 139, 0.1);
  color: #607d8b;
  border: 1px solid rgba(96, 125, 139, 0.2);
}
.badge-type.universal {
  background: rgba(233, 30, 99, 0.1);
  color: #e91e63;
  border: 1px solid rgba(233, 30, 99, 0.2);
}

@media (max-width: 767px) {
  .move-category-tabs-container {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .move-category-tabs {
    width: 100%;
    justify-content: space-between;
  }
}

/* Data Freshness Indicator Bar */
.data-freshness-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary, #a0a0ab);
  margin-top: 12px;
  width: fit-content;
  transition: opacity 0.3s ease;
}

.freshness-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: freshness-pulse 2s ease-in-out infinite;
}

@keyframes freshness-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.freshness-label {
  font-weight: 700;
  font-family: var(--font-heading, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
  color: var(--text-primary, #fff);
}

.freshness-separator {
  opacity: 0.3;
  font-size: 0.6rem;
}

.freshness-age {
  font-family: var(--font-mono, monospace);
  color: var(--text-muted, #6b6b76);
  font-size: 0.7rem;
}

/* Floating Action Button (FAB) for Strategy Guides */
.floating-guide-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 1000 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: var(--color-primary, #ff005b) !important;
  border: none !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(255, 0, 91, 0.4), 0 0 8px rgba(255, 0, 91, 0.2) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
}

.floating-guide-btn:hover {
  transform: translateY(-4px) scale(1.06) !important;
  box-shadow: 0 8px 24px rgba(255, 0, 91, 0.6), 0 0 15px rgba(255, 0, 91, 0.3) !important;
  background: var(--color-primary-hover, #ff1e73) !important;
}

.floating-guide-btn:active {
  transform: translateY(-1px) scale(0.95) !important;
}

.floating-guide-btn .material-symbols-rounded {
  font-size: 28px !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .floating-guide-btn {
    bottom: 90px !important;
  }
}

/* Stacked Move Name Layout (Option 2) */
.move-name-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.move-name-container .badge-type {
  margin-left: 0;
  margin-bottom: 2px;
}

.move-name-text {
  font-weight: 600;
  line-height: 1.3;
}

