/* ============================================================
   SFF CARDS — PNG Frame verzija v5.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── KARTICA ──────────────────────────────────────────────── */
.fc {
  position: relative;
  width: 262px;
  height: 358px;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}

.fc:hover { transform: translateY(-10px) scale(1.03); }
.fc:hover .fc__photo { transform: translateX(-50%) scale(1.04) translateY(-3px); }

/* Frame PNG */
.fc__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

/* ── Foto igrača ── */
.fc__photo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 175px;
  z-index: 5;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

/* Pozicija fotke po tieru */
.fc--legendary .fc__photo { top: 55px; height: 180px; }
.fc--legacy    .fc__photo { top: 60px; height: 175px; }
.fc--zlato     .fc__photo { top: 65px; height: 170px; }
.fc--srebro    .fc__photo { top: 68px; height: 167px; }
.fc--bronca    .fc__photo { top: 70px; height: 165px; }
.fc--drveni    .fc__photo { top: 72px; height: 163px; }

.fc__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Fade dno fotke — isključen */
.fc__photo::after { display: none; }

/* Boje i fade po tieru */
.fc--legendary { color: #ffe8a0; --fade: rgba(6,4,0,0.9); }
.fc--legacy    { color: #e8d8b0; --fade: rgba(4,3,0,0.92); }
.fc--zlato     { color: #fff0a0; --fade: rgba(6,4,0,0.9); }
.fc--srebro    { color: #ffffff; --fade: rgba(20,20,30,0.9); }
.fc--bronca    { color: #f8d898; --fade: rgba(8,4,0,0.9); }
.fc--drveni    { color: #c8a870; --fade: rgba(4,2,0,0.92); }

/* Placeholder silhueta */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px;
}
.ph svg { width: 100px; height: 130px; opacity: 0.18; fill: currentColor; }

/* ── Lijeva kolona (rating / pos / drzava / klub) ── */
.fc__left {
  position: absolute;
  top: 56px; left: 16px;
  width: 50px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fc__rating {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -1px;
  display: block;
  text-shadow: 0 2px 12px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.8);
}

.fc__pos {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 1px; margin-bottom: 8px; display: block;
  text-shadow: 0 1px 6px rgba(0,0,0,0.95);
}

.fc__flag {
  font-size: 16px; line-height: 1; display: block; margin-bottom: 5px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.9));
}

.fc__club {
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.8; text-align: center;
  max-width: 48px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; display: block;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
}

.fc__club-logo {
  width: 36px;
  height: auto;
  display: block;
  opacity: 0.85;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.9));
}

/* ── Titula igrača — badge iznad glave ── */
.fc__titula {
  position: absolute;
  top: 26px; left: 50%; transform: translateX(-50%);
  z-index: 20;
  font-family: 'Oswald', sans-serif;
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  white-space: nowrap;
  color: currentColor;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 3px 10px;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.fc--srebro        .fc__titula,
.fc--special-marble    .fc__titula,
.fc--special-parchment .fc__titula {
  color: #1a1a2a;
  background: rgba(255,255,255,0.55);
  border-color: rgba(0,0,0,0.15);
}

/* ── Ime igrača ── */
.fc__name {
  position: absolute;
  bottom: 88px; left: 0; right: 0;
  z-index: 20; text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 12px; line-height: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.7);
}

/* ── Separator ── */
.fc__sep {
  position: absolute;
  bottom: 82px; left: 14px; right: 14px;
  height: 1px; z-index: 20;
  background: currentColor; opacity: 0.22;
}

/* ── Statsovi ── */
.fc__stats {
  position: absolute;
  bottom: 54px; left: 8px; right: 8px;
  z-index: 20;
  display: flex; justify-content: space-between;
}

.fc-stat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 1px; position: relative;
}

.fc-stat + .fc-stat::before {
  content: ''; position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 1px; background: currentColor; opacity: 0.2;
}

.fc-stat__v {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px; font-weight: 700; line-height: 1; display: block;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.fc-stat__l {
  font-size: 6.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.55; display: block;
}

/* Cijena — samo na large / single stranici */
.fc__price {
  position: absolute;
  bottom: 30px; left: 0; right: 0;
  z-index: 20; text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}

/* Specijalne edicije — foto pozicija (ista kao bronca) */
.fc--special-neon     .fc__photo,
.fc--special-teal     .fc__photo,
.fc--special-retro    .fc__photo,
.fc--special-stadium  .fc__photo,
.fc--special-kafana   .fc__photo,
.fc--special-grunge   .fc__photo,
.fc--special-tactics  .fc__photo { top: 70px; height: 165px; }

.fc--special-marble    .fc__photo { top: 68px; height: 167px; }
.fc--special-parchment .fc__photo { top: 68px; height: 167px; }

/* Boje teksta za specijalne */
.fc--special-neon     { color: #00ffe0; --fade: rgba(0,8,6,0.92); }
.fc--special-teal     { color: #a0fff0; --fade: rgba(0,6,6,0.92); }
.fc--special-retro    { color: #ffe0a0; --fade: rgba(6,4,0,0.92); }
.fc--special-stadium  { color: #e0f0ff; --fade: rgba(0,4,8,0.92); }
.fc--special-kafana   { color: #f8d898; --fade: rgba(8,4,0,0.92); }
.fc--special-grunge   { color: #c8b898; --fade: rgba(4,3,0,0.92); }
.fc--special-tactics  { color: #b0d8b0; --fade: rgba(0,4,0,0.92); }

/* Marble i Parchment — tamni tekst */
.fc--special-marble,
.fc--special-parchment { color: #1a1a2a; --fade: rgba(220,215,200,0.92); }

.fc--special-marble .fc__name,    .fc--special-parchment .fc__name,
.fc--special-marble .fc__rating,  .fc--special-parchment .fc__rating,
.fc--special-marble .fc__pos,     .fc--special-parchment .fc__pos,
.fc--special-marble .fc__flag,    .fc--special-parchment .fc__flag,
.fc--special-marble .fc__tier,    .fc--special-parchment .fc__tier,
.fc--special-marble .fc__club,    .fc--special-parchment .fc__club,
.fc--special-marble .fc-stat__v,  .fc--special-parchment .fc-stat__v,
.fc--special-marble .fc-stat__l,  .fc--special-parchment .fc-stat__l {
  text-shadow: 0 1px 4px rgba(255,255,255,0.5);
  color: #1a1a2a;
}
.fc--special-marble .fc__sep,
.fc--special-parchment .fc__sep { background: #1a1a2a; }

/* Srebro — tamni tekst jer je frejm svijetle boje */
.fc--srebro {
  color: #1a1a2a;
  --fade: rgba(220,220,240,0.9);
}
.fc--srebro .fc__name,
.fc--srebro .fc__rating,
.fc--srebro .fc__pos,
.fc--srebro .fc__flag,
.fc--srebro .fc__tier,
.fc--srebro .fc__club,
.fc--srebro .fc-stat__v,
.fc--srebro .fc-stat__l {
  text-shadow: 0 1px 4px rgba(255,255,255,0.5);
  color: #1a1a2a;
}
.fc--srebro .fc__sep { background: #1a1a2a; }

/* Large — single stranica */
.fc--large {
  zoom: 1.25;
}

/* ── ARCHIVE GRID ──────────────────────────────────────────── */
.archive-header {
  text-align: center;
  padding: 56px 20px 36px;
}

.archive-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f7d76a;
  margin: 0 0 24px;
  text-shadow: 0 0 40px rgba(247,215,106,0.3);
}

.tier-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tier-filter-btn {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(240,240,248,0.5);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.tier-filter-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}

.tier-filter-btn.is-active                       { color: #fff; }
.tier-filter-btn[data-tier="all"].is-active      { border-color: rgba(255,255,255,0.5);  background: rgba(255,255,255,0.1); }
.tier-filter-btn[data-tier="drveni"].is-active   { border-color: #8B7355; background: rgba(139,115,85,0.15);  color: #C8A878; }
.tier-filter-btn[data-tier="bronca"].is-active   { border-color: #CD7F32; background: rgba(205,127,50,0.15);  color: #E8A040; }
.tier-filter-btn[data-tier="srebro"].is-active   { border-color: #8888C0; background: rgba(136,136,192,0.15); color: #D0D0FF; }
.tier-filter-btn[data-tier="zlato"].is-active    { border-color: #FFD700; background: rgba(255,215,0,0.12);   color: #FFD700; }
.tier-filter-btn[data-tier="legacy"].is-active   { border-color: #A855F7; background: rgba(168,85,247,0.15);  color: #E040F0; }
.tier-filter-btn[data-tier="legendary"].is-active     { border-color: #FFD700; background: rgba(255,215,0,0.15);   color: #FFF8DC; }
.tier-filter-btn[data-tier="special-neon"].is-active  { border-color: #00ffe0; background: rgba(0,255,224,0.12);  color: #00ffe0; }
.tier-filter-btn[data-tier="special-teal"].is-active  { border-color: #00c8a0; background: rgba(0,200,160,0.12);  color: #a0fff0; }
.tier-filter-btn[data-tier="special-retro"].is-active { border-color: #c89040; background: rgba(200,144,64,0.15); color: #ffe0a0; }
.tier-filter-btn[data-tier="special-stadium"].is-active{ border-color: #6090c0; background: rgba(96,144,192,0.15); color: #e0f0ff; }
.tier-filter-btn[data-tier="special-kafana"].is-active { border-color: #c08040; background: rgba(192,128,64,0.15); color: #f8d898; }
.tier-filter-btn[data-tier="special-marble"].is-active { border-color: #b0b0c8; background: rgba(176,176,200,0.15); color: #e0e0f0; }
.tier-filter-btn[data-tier="special-grunge"].is-active { border-color: #807060; background: rgba(128,112,96,0.15); color: #c8b898; }
.tier-filter-btn[data-tier="special-parchment"].is-active{ border-color: #c0a870; background: rgba(192,168,112,0.15); color: #e8d8a0; }
.tier-filter-btn[data-tier="special-tactics"].is-active{ border-color: #60a060; background: rgba(96,160,96,0.15);  color: #b0d8b0; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 56px 36px;
  justify-items: center;
  padding: 48px 24px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.load-more-wrap {
  text-align: center;
  padding: 8px 0 60px;
}

.load-more-btn {
  padding: 12px 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: rgba(240,240,248,0.55);
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s;
}

.load-more-btn:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
}

.load-more-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.empty-state {
  color: rgba(240,240,248,0.3);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ── SINGLE IGRAČ ──────────────────────────────────────────── */
.single-igrac-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 24px 88px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.single-igrac-detail__name {
  font-family: 'Oswald', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0f0f8;
  margin: 0 0 10px;
  line-height: 1.1;
}

.single-igrac-detail__tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid;
  margin-bottom: 28px;
}

.single-igrac-detail__tier--drveni    { color: #C8A878; border-color: rgba(139,115,85,0.6); background: rgba(139,115,85,0.08); }
.single-igrac-detail__tier--bronca    { color: #E8A040; border-color: rgba(205,127,50,0.6); background: rgba(205,127,50,0.08); }
.single-igrac-detail__tier--srebro    { color: #D0D0FF; border-color: rgba(136,136,192,0.6); background: rgba(136,136,192,0.08); }
.single-igrac-detail__tier--zlato     { color: #FFE040; border-color: rgba(255,215,0,0.6); background: rgba(255,215,0,0.08); }
.single-igrac-detail__tier--legacy    { color: #E040F0; border-color: rgba(168,85,247,0.6); background: rgba(168,85,247,0.08); }
.single-igrac-detail__tier--legendary { color: #FFE840; border-color: rgba(255,215,0,0.7); background: rgba(255,215,0,0.1); }

.igrac-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.igrac-info-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 14px;
}

.igrac-info-item__label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,240,248,0.3);
  margin-bottom: 4px;
}

.igrac-info-item__value {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #f0f0f8;
}

.igrac-price-box {
  background: rgba(247,215,106,0.05);
  border: 1px solid rgba(247,215,106,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.igrac-price-box__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,215,106,0.55);
}

.igrac-price-box__value {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #f7d76a;
}

.igrac-radar-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,240,248,0.3);
  margin-bottom: 12px;
}

/* ── GLOBALNA POZADINA ─────────────────────────────────────── */
html, body {
  background: #07070f !important;
  color: #f0f0f8;
}

/* ── POZADINA STRANICA ─────────────────────────────────────── */
html body.post-type-archive-igrac,
html body.single-igrac,
html body.post-type-archive-igrac.elementor-page,
html body.single-igrac.elementor-page,
body.post-type-archive-igrac,
body.single-igrac {
  background-color: #07070f !important;
  background-image: none !important;
  background: #07070f !important;
}

body.post-type-archive-igrac > *,
body.single-igrac > * {
  background-color: transparent;
}

body.post-type-archive-igrac .elementor-section,
body.post-type-archive-igrac .elementor-container,
body.post-type-archive-igrac .e-con,
body.single-igrac .elementor-section,
body.single-igrac .elementor-container,
body.single-igrac .e-con {
  background-color: transparent !important;
  background-image: none !important;
}

body.post-type-archive-igrac .site-header,
body.single-igrac .site-header {
  background-color: rgba(0,0,0,0.6) !important;
  backdrop-filter: blur(10px);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .single-igrac-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 36px 16px 64px;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .archive-grid { gap: 36px 20px; padding: 32px 16px 48px; }
  .fc { zoom: 0.62; }
}

@media (max-width: 400px) {
  .fc { zoom: 0.52; }
}
