/**
 * Free Fire Nation — Character Skill Combo Builder (Light Theme)
 * skill-combo.css
 */

/* ============================================================
   BASE VARIABLES — matched to your Light Theme
   ============================================================ */
:root {
  /* Global Theme Colors */
  --primary-color:   #241164;
  --primary-dark:    #1b0e52;
  --secondary-color: #e76c1e;
  --primary-light:   #eae1f9;
  --orange-light:    #ffe9dc;
  --theme-black:     #0f0f0f;
  --white-color:     #ffffff;
  --black-color:     #000000;

  /* Skill Combo Mapped Variables */
  --fcb-bg:          var(--white-color);
  --fcb-surface:     var(--white-color);
  --fcb-surface2:    #f8f9fc;
  --fcb-border:      #e0e4ed;
  --fcb-accent:      var(--secondary-color);
  --fcb-accent2:     #f7c948;
  --fcb-blue:        var(--primary-color);
  --fcb-green:       #1a8f46;
  --fcb-text:        var(--theme-black);
  --fcb-text-muted:  #5c6b8a;
  --fcb-active-glow: 0 0 16px rgba(231, 108, 30, 0.25);
  --fcb-radius:      10px;
  --fcb-radius-sm:   6px;
  --fcb-font:        "Google Sans Flex", sans-serif;
}

/* ============================================================
   WRAPPER
   ============================================================ */
#ffn-combo-builder {
  font-family: var(--fcb-font);
  color: var(--fcb-text);
  background: var(--fcb-bg);
  min-height: 100vh;
  padding-bottom: 60px;
}
.fcb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
/* ============================================================
   HEADER
   ============================================================ */
.fcb-header {
  /* Matches your page-header gradient from the provided CSS */
  background: linear-gradient(45deg, #e5ddff, #fff0dd);
  border-bottom: 1px solid var(--fcb-border);
  padding: 50px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fcb-badge {
  display: inline-block;
  background: var(--white-color);
  color: var(--fcb-accent);
  border: 1px solid rgba(231, 108, 30, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.fcb-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  line-height: 1.15;
  color: var(--fcb-text);
}

.fcb-title span {
  color: var(--fcb-accent);
}

.fcb-subtitle {
  font-size: 14px;
  color: var(--fcb-text-muted);
  margin: 0;
  max-width: 500px;
  margin-inline: auto;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.fcb-section {
  padding: 28px 0 0;
}

.fcb-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fcb-text-muted);
  margin-bottom: 14px;
}

.fcb-section-label .reco-sub {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--fcb-text-muted);
}

.fcb-section-label .reco-sub strong {
  color: var(--fcb-accent);
}

/* ============================================================
   PLAYSTYLE TABS
   ============================================================ */
.fcb-playstyle-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fcb-ps-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--fcb-surface);
  border: 1px solid var(--fcb-border);
  color: var(--fcb-text-muted);
  font-family: var(--fcb-font);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fcb-ps-tab:hover {
  border-color: var(--fcb-accent);
  color: var(--fcb-text);
}

.fcb-ps-tab.active {
  background: var(--orange-light);
  border-color: var(--fcb-accent);
  color: var(--fcb-accent);
}

.ps-icon {
  font-size: 15px;
}

/* ============================================================
   MAIN 2-COL LAYOUT
   ============================================================ */
.fcb-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .fcb-main {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CHARACTER GRID (PICKER)
   ============================================================ */
.fcb-picker-col {}

.fcb-search-wrap {
  margin-bottom: 14px;
}

.fcb-search {
  width: 100%;
  background: var(--fcb-surface);
  border: 1px solid var(--fcb-border);
  color: var(--fcb-text);
  font-family: var(--fcb-font);
  font-size: 13px;
  padding: 15px 14px;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.fcb-search:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.fcb-search::placeholder {
  color: #a0aabf;
}

.fcb-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.fcb-char-grid::-webkit-scrollbar {
  width: 6px;
}

.fcb-char-grid::-webkit-scrollbar-track {
  background: var(--fcb-surface2);
  border-radius: 10px;
}

.fcb-char-grid::-webkit-scrollbar-thumb {
  background: #cbd2e0;
  border-radius: 10px;
}

.fcb-char-card {
  background: var(--fcb-surface);
  border: 1px solid var(--fcb-border);
  border-radius: var(--fcb-radius);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.fcb-char-card:hover {
  border-color: var(--fcb-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fcb-char-card.selected {
  background: var(--orange-light);
  border-color: var(--fcb-accent);
  box-shadow: var(--fcb-active-glow);
}

/* Tier border colors */
.fcb-char-card.tier-s { border-top: 3px solid var(--fcb-accent); }
.fcb-char-card.tier-a { border-top: 3px solid var(--fcb-accent2); }
.fcb-char-card.tier-b { border-top: 3px solid var(--fcb-blue); }

.char-tier-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,0.04);
  color: var(--fcb-text-muted);
}

.tier-s .char-tier-badge { color: var(--fcb-accent); background: var(--orange-light); }
.tier-a .char-tier-badge { color: #d69e00; background: rgba(247,201,72,0.15); }
.tier-b .char-tier-badge { color: var(--fcb-blue); background: var(--primary-light); }

.char-icon {
  font-size: 28px;
  margin-bottom: 6px;
  display: block;
}

.char-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--fcb-text);
  line-height: 1.2;
  margin-bottom: 4px;
  word-break: break-word;
}

.char-skill-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 100px;
  display: inline-block;
}

.char-skill-type.active {
  background: var(--orange-light);
  color: var(--fcb-accent);
}

.char-skill-type.passive {
  background: var(--primary-light);
  color: var(--fcb-blue);
}

.char-slot-num {
  font-size: 9px;
  color: var(--fcb-accent);
  margin-top: 4px;
  font-weight: 700;
}

.fcb-no-results {
  color: var(--fcb-text-muted);
  font-size: 13px;
  padding: 20px;
  text-align: center;
  grid-column: 1/-1;
}

/* ============================================================
   COMBO SLOTS
   ============================================================ */
.fcb-result-col {}

.fcb-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.fcb-slots.shake {
  animation: fcb-shake 0.4s ease;
}

@keyframes fcb-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-6px); }
  40%, 80%  { transform: translateX(6px); }
}

.fcb-slot {
  background: var(--fcb-surface);
  border: 2px dashed #d1d5db;
  border-radius: var(--fcb-radius);
  padding: 14px 10px;
  text-align: center;
  min-height: 110px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fcb-slot.empty:hover,
.fcb-slot.active-slot {
  border-color: var(--fcb-accent);
  background: var(--orange-light);
}

.fcb-slot.active-slot {
  border-color: var(--fcb-accent);
  box-shadow: 0 0 0 3px rgba(231, 108, 30, 0.15);
}

.fcb-slot.filled {
  border-style: solid;
  border-width: 1px;
  border-color: var(--fcb-border);
  background: var(--fcb-surface2);
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.slot-empty-icon {
  font-size: 24px;
  color: #a0aabf;
  font-weight: 300;
  margin-bottom: 4px;
}

.slot-empty-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--fcb-text-muted);
}

.slot-empty-hint {
  font-size: 10px;
  color: #a0aabf;
  margin-top: 2px;
}

.slot-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.06);
  border: none;
  color: var(--fcb-text-muted);
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: all 0.15s;
}

.slot-remove:hover {
  background: #ffeded;
  color: #e63946;
}

.slot-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.slot-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--fcb-text);
  margin-bottom: 2px;
}

.slot-skill {
  font-size: 9px;
  color: var(--fcb-text-muted);
  margin-bottom: 3px;
}

.slot-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 100px;
}

.slot-type.active {
  background: var(--orange-light);
  color: var(--fcb-accent);
}

.slot-type.passive {
  background: var(--primary-light);
  color: var(--fcb-blue);
}

/* ============================================================
   SYNERGY PANEL
   ============================================================ */
.fcb-synergy-panel {
  background: var(--fcb-surface);
  border: 1px solid var(--fcb-border);
  border-radius: var(--fcb-radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.synergy-empty {
  color: var(--fcb-text-muted);
  font-size: 13px;
  text-align: center;
  padding: 10px 0;
}

.synergy-score-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.synergy-ring {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.synergy-emoji {
  font-size: 20px;
  margin-bottom: 2px;
}

.synergy-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.synergy-chars-count {
  font-size: 11px;
  color: var(--fcb-text-muted);
  margin-top: 4px;
}

.synergy-pairs {
  margin-bottom: 12px;
}

.pairs-label,
.tags-label,
.ps-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fcb-text-muted);
  margin-bottom: 7px;
}

.synergy-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--fcb-surface2);
  border-radius: var(--fcb-radius-sm);
  margin-bottom: 4px;
  font-size: 11px;
  border: 1px solid var(--fcb-border);
}

.synergy-pair.direct {
  background: var(--orange-light);
  border-left: 3px solid var(--fcb-accent);
  border-color: rgba(231, 108, 30, 0.2);
}

.pair-names {
  flex: 1;
  color: var(--fcb-text);
  font-weight: 600;
}

.pair-score {
  color: var(--fcb-green);
  font-weight: 700;
  font-size: 12px;
}

.pair-direct-badge {
  background: rgba(231, 108, 30, 0.15);
  color: var(--fcb-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
}

.synergy-tags {
  margin-bottom: 12px;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.synergy-tag {
  background: var(--primary-light);
  color: var(--fcb-blue);
  border: 1px solid rgba(36, 17, 100, 0.15);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: capitalize;
}

.ps-match-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ps-match {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ps-match em {
  font-style: normal;
  font-size: 9px;
  opacity: 0.8;
  font-weight: 400;
}

.ps-match-perfect {
  background: var(--orange-light);
  color: var(--fcb-accent);
  border: 1px solid rgba(231, 108, 30, 0.3);
}

.ps-match-strong {
  background: rgba(247,201,72,0.15);
  color: #b38300;
  border: 1px solid rgba(247,201,72,0.4);
}

.ps-match-partial {
  background: var(--fcb-surface2);
  color: var(--fcb-text-muted);
  border: 1px solid var(--fcb-border);
}

/* ============================================================
   CLEAR BUTTON
   ============================================================ */
.fcb-clear-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--fcb-border);
  color: var(--fcb-text-muted);
  font-family: var(--fcb-font);
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--fcb-radius);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.fcb-clear-btn:hover {
  border-color: #e63946;
  color: #e63946;
  background: #ffeded;
}

/* ============================================================
   RECOMMENDATIONS
   ============================================================ */
.fcb-reco-section {
  margin-top: 8px;
}

.fcb-reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.fcb-reco-card {
  background: var(--fcb-surface);
  border: 1px solid var(--fcb-border);
  border-radius: var(--fcb-radius);
  padding: 20px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.fcb-reco-card:hover {
  border-color: var(--fcb-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.reco-rank {
  font-size: 22px;
  margin-bottom: 4px;
}

.reco-score {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
  color: var(--fcb-text);
}

.reco-score small {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.6;
}

.reco-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--fcb-text-muted);
}

.reco-chars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.reco-char {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fcb-surface2);
  padding: 6px 10px;
  border-radius: var(--fcb-radius-sm);
  font-size: 12px;
  border: 1px solid var(--fcb-border);
}

.reco-char-icon {
  font-size: 16px;
}

.reco-char-name {
  font-weight: 600;
  color: var(--fcb-text);
}

.reco-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}

.reco-tag {
  background: rgba(0,0,0,0.04);
  color: var(--fcb-text-muted);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Styled exactly like the Ban Checker "Check Ban Status" button */
.reco-use-btn {
  width: 100%;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: var(--white-color);
  font-family: var(--fcb-font);
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  border-radius: 4px; /* Matching the 4px standard radius in user CSS */
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

.reco-use-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.reco-empty {
  color: var(--fcb-text-muted);
  font-size: 13px;
  padding: 24px;
  text-align: center;
  grid-column: 1/-1;
  background: var(--fcb-surface);
  border: 1px dashed var(--fcb-border);
  border-radius: var(--fcb-radius);
}

/* ============================================================
   PAGE-LEVEL OVERRIDES
   ============================================================ */
body.page-template-page-skill-combo .page-content {
  padding: 0 !important;
  max-width: 100% !important;
}

body.page-template-page-skill-combo .page-header {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .fcb-header { padding: 40px 16px; }
  .fcb-char-grid { grid-template-columns: repeat(3, 1fr); }
  .fcb-slots { grid-template-columns: 1fr 1fr; }
  .fcb-reco-grid { grid-template-columns: 1fr; }
  .fcb-playstyle-tabs { gap: 6px; }
  .fcb-ps-tab { font-size: 11px; padding: 6px 10px; }
}