/* =====================================================================
   Profile base — shared styles for Trener and Igrač single templates
   ===================================================================== */

:root {
  --black: #0f1919;
  --black2: #080f0f;
  --acid: #e3e52b;
  --acid-dark: #b5b720;
  --acid-dim: rgba(227, 229, 43, 0.12);
  --white: #f0f0e8;
  --gray1: #182424;
  --gray2: #1f2e2e;
  --gray3: #263838;
  --muted: #6a8a8a;
  --muted2: #4a6666;
}

body.single-trener,
body.single-igrac,
body.post-type-archive-trener,
body.post-type-archive-igrac {
  background: var(--black);
  color: var(--white);
  font-family: 'Neo Sans Std', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.single-trener *,
body.single-igrac *,
body.post-type-archive-trener *,
body.post-type-archive-igrac * {
  box-sizing: border-box;
}

.profile-page {
  display: block;
}

/* Hide parent theme header/footer chrome on profile pages.
   Adjust selectors if your theme uses different wrappers. */
body.single-trener .top_panel,
body.single-igrac .top_panel,
body.post-type-archive-trener .top_panel,
body.post-type-archive-igrac .top_panel,
body.single-trener .footer_wrap,
body.single-igrac .footer_wrap,
body.post-type-archive-trener .footer_wrap,
body.post-type-archive-igrac .footer_wrap,
body.single-trener .sc_layouts_row,
body.single-igrac .sc_layouts_row {
  /* Intentionally not hidden by default — uncomment if you want a fully
     custom standalone profile layout without the parent theme chrome.
     display: none !important; */
}

/* NAV */
.profile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 229, 43, 0.08);
}
.profile-nav .nav-logo {
  font-family: 'Anton', sans-serif;
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--acid);
  text-decoration: none;
}
.profile-nav .nav-logo span { color: var(--white); }
.profile-nav .nav-back {
  font-family: 'Anton', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.profile-nav .nav-back:hover { color: var(--acid); }
.profile-nav .nav-back svg { transition: transform .2s; }
.profile-nav .nav-back:hover svg { transform: translateX(-4px); }

.lang-switcher {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang-switcher li { margin: 0; padding: 0; }
.lang-switcher a {
  font-family: 'Anton', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.lang-switcher .current-lang a,
.lang-switcher a:hover { color: var(--acid); }

/* SECTIONS */
.profile-page section { padding: 20px 0; }
.profile-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sec-line { width: 36px; height: 2px; background: var(--acid); }
.label {
  font-family: 'Anton', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--acid);
}
.sec-title {
  font-family: 'Anton', sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  text-transform: uppercase;
  line-height: .92;
  color: var(--white);
  margin-bottom: 40px;
}

/* HERO shared layout */
.profile-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 0;
  margin-top: 0;
}
.hero-visual {
  position: relative;
  overflow: hidden;
}
.hero-visual-inner {
  position: absolute;
  inset: 0;
}
.hero-grid-pat {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(227, 229, 43, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 229, 43, 0.025) 1px, transparent 1px);
  background-size: 70px 70px;
}
.hero-photo,
.hero-photo-placeholder {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted2);
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-photo svg,
.hero-photo-placeholder svg { opacity: .2; }
.hero-photo.has-image { padding: 0; }
.hero-photo.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-hero .hero-content {
  background: var(--black2);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.profile-hero .hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--acid), transparent);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow-line { width: 36px; height: 2px; background: var(--acid); }
.hero-name {
  font-family: 'Anton', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 5.5vw, 88px);
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 14px;
}
.hero-bio {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* CTA */
.cta-section {
  padding: 80px 0;
  text-align: center;
}
.cta-section.acid { background: var(--acid); }
.cta-section.dark { background: var(--gray1); }
.cta-title {
  font-family: 'Anton', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 80px);
  text-transform: uppercase;
  line-height: .92;
  margin-bottom: 16px;
}
.cta-section.acid .cta-title { color: var(--black); }
.cta-section.dark .cta-title { color: var(--white); }
.cta-sub {
  font-size: 17px;
  margin-bottom: 36px;
}
.cta-section.acid .cta-sub { color: rgba(15, 25, 25, 0.6); }
.cta-section.dark .cta-sub { color: var(--muted); }
.btn-dark,
.btn-acid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 36px;
  text-decoration: none;
  border-width: 2px;
  border-style: solid;
  transition: all .2s;
}
.btn-dark {
  background: var(--black);
  color: var(--acid);
  border-color: var(--black);
}
.btn-dark:hover { background: transparent; color: var(--black); }
.btn-acid {
  background: var(--acid);
  color: var(--black);
  border-color: var(--acid);
}
.btn-acid:hover { background: transparent; color: var(--acid); }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* ARCHIVE grid (Team / Players overview) */
.profile-archive {
  padding: 48px 0 100px;
}

.profile-archive--team .team-listing-block {
  margin-bottom: 72px;
}

.profile-archive--team .team-listing-block:last-child {
  margin-bottom: 0;
}

.team-listing-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.team-listing-title {
  font-family: 'Anton', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.team-listing-link {
  font-family: 'Anton', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acid);
  text-decoration: none;
}

.team-listing-link:hover {
  text-decoration: underline;
}
.profile-archive h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 96px);
  text-transform: uppercase;
  color: var(--white);
  line-height: .92;
  margin-bottom: 48px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Team Listing widget — column count is driven by inline CSS variables */
.archive-grid.team-listing-grid {
  grid-template-columns: repeat(var(--team-cols-d, 3), 1fr);
  gap: var(--team-gap, 24px);
}
@media (max-width: 1024px) {
  .archive-grid.team-listing-grid {
    grid-template-columns: repeat(var(--team-cols-t, 2), 1fr);
  }
}
@media (max-width: 600px) {
  .archive-grid.team-listing-grid {
    grid-template-columns: repeat(var(--team-cols-m, 1), 1fr);
  }
}

/* Team listing — carousel for overflow items */
.team-listing-carousel {
  position: relative;
}
.team-listing-carousel--overflow {
  margin-top: var(--team-gap, 24px);
}
.team-listing-carousel--slider-mode {
  margin-top: 0;
  position: static;
}
.team-listing-block:has(.team-listing-carousel--slider-mode:not(.team-listing-carousel--no-nav)) {
  position: relative;
}
.team-listing-carousel--slider-mode:not(.team-listing-carousel--no-nav) .team-listing-carousel-nav {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  z-index: 2;
}
.team-listing-block:has(.team-listing-carousel--slider-mode:not(.team-listing-carousel--no-nav)) .team-listing-header {
  padding-right: 96px;
}
@media (max-width: 600px) {
  .team-listing-block:has(.team-listing-carousel--slider-mode:not(.team-listing-carousel--no-nav)) .team-listing-header {
    padding-right: 0;
    margin-bottom: 52px;
  }
  .team-listing-carousel--slider-mode:not(.team-listing-carousel--no-nav) .team-listing-carousel-nav {
    top: auto;
    bottom: calc(100% + 12px);
  }
}
.team-listing-carousel--no-nav .team-listing-carousel-nav {
  display: none;
}
.team-listing-carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}
.team-listing-carousel-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  padding: 0;
}
.team-listing-carousel-btn:hover:not(:disabled) {
  border-color: var(--acid);
  color: var(--acid);
}
.team-listing-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.team-listing-carousel-track {
  overflow: hidden;
}
.team-listing-carousel-inner {
  display: flex;
  gap: var(--team-gap, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.team-listing-carousel-inner::-webkit-scrollbar {
  display: none;
}
.team-listing-carousel-inner .archive-card {
  flex: 0 0 calc((100% - (var(--team-cols-d, 3) - 1) * var(--team-gap, 24px)) / var(--team-cols-d, 3));
  scroll-snap-align: start;
  min-width: 0;
}
@media (max-width: 1024px) {
  .team-listing-carousel-inner .archive-card {
    flex-basis: calc((100% - (var(--team-cols-t, 2) - 1) * var(--team-gap, 24px)) / var(--team-cols-t, 2));
  }
}
@media (max-width: 600px) {
  .team-listing-carousel-inner .archive-card {
    flex-basis: calc((100% - (var(--team-cols-m, 1) - 1) * var(--team-gap, 24px)) / var(--team-cols-m, 1));
  }
}

.archive-card {
  display: block;
  position: relative;
  background: var(--gray1);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.archive-card:hover {
  border-color: rgba(227, 229, 43, 0.3);
  transform: translateY(-4px);
}
.archive-card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--gray2);
  position: relative;
  overflow: hidden;
}
.archive-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Team listing — acid-yellow tint, original photo on hover */
.team-listing-widget .archive-card-photo img {
  filter: grayscale(100%) contrast(1.08);
  transition: filter .4s ease;
}
.team-listing-widget .archive-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--acid);
  mix-blend-mode: color;
  opacity: 1;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 1;
}
.team-listing-widget .archive-card:hover .archive-card-photo img,
.team-listing-widget .archive-card-photo:hover img {
  filter: none;
}
.team-listing-widget .archive-card:hover .archive-card-photo::after,
.team-listing-widget .archive-card-photo:hover::after {
  opacity: 0;
}
.archive-card-body {
  padding: 22px 24px 26px;
}
.archive-card-eyebrow {
  font-family: 'Anton', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 8px;
}
.archive-card-name {
  font-family: 'Anton', sans-serif;
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  margin-bottom: 6px;
}
.archive-card-role {
  font-size: 13px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .profile-hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 50vh; }
  .hero-photo,
  .hero-photo-placeholder { min-height: 50vh; }
  .profile-hero .hero-content { padding: 48px 32px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .profile-nav { padding: 0 20px; }
  .profile-page .container { padding: 0 20px; }
  .archive-grid { grid-template-columns: 1fr; }
}
