/* Styles for NEXTGEN Athletes Management (CLEAN FIX) */

:root{
  --red:#e10600;
  --red-light:#ff3b30;
  --black:#0b0b0d;
  --bg-dark:#121214;
  --white:#ffffff;
  --gray:#b3b3b3;
  --radius:6px;
  --container:1200px;
}

/* Reset */
*,
*::before,
*::after{ box-sizing:border-box; }

body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--black);
  color:var(--white);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

/* Typography */
h1,h2,h3{
  font-family:"Bebas Neue",sans-serif;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin:0 0 .5rem 0;
}
h1{ font-size:3.2rem; line-height:1.05; margin-bottom:1rem; }
h2{ font-size:2.4rem; margin-bottom:.75rem; }
h3{ font-size:1.4rem; margin-bottom:.5rem; }

p{ line-height:1.6; font-size:.98rem; margin:0 0 1rem 0; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  border-radius:var(--radius);
  border:1px solid transparent;
  font-weight:600;
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  cursor:pointer;
  transition:all .18s ease;
  white-space:nowrap;
}

.btn--primary{
  background:var(--red);
  color:var(--white);
  box-shadow:0 8px 24px rgba(225,6,0,.35);
}
.btn--primary:hover{
  background:var(--red-light);
  transform:translateY(-1px);
}

.btn--ghost{
  background:transparent;
  color:var(--white);
  border-color:#2a2a2e;
}
.btn--ghost:hover{
  border-color:var(--red);
  color:var(--red-light);
}

.link{
  font-weight:600;
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--red-light);
}

/* Header */
.header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  /* blur + průhledné pozadí */
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:74px;
}

/* Logo in header */
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:120px;
}
.logo img{
  height:64px;
  width:auto;
  margin:0;
}

/* Navigation (desktop) */
.nav{
  display:flex;
  align-items:center;
  gap:20px;
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.nav a{ position:relative; }
.nav a:not(.btn)::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  background:var(--red);
  transition:width .18s ease;
}
.nav a:hover::after{ width:100%; }

.nav__cta{ margin-left:8px; }

/* Language switch */
.lang{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.8rem;
}
.lang__link{ opacity:.75; transition:opacity .18s ease,color .18s ease; }
.lang__link:hover{ opacity:1; color:var(--red-light); }
.lang__link--active{ opacity:1; color:var(--red-light); }
.lang__sep{ opacity:.5; }

/* Nav toggle (mobile button) */
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:4px;
  background:none;
  border:0;
  padding:6px;
  cursor:pointer;
  z-index:1100;
}
.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:var(--white);
}

/* Hero */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding-top:74px;
  overflow:hidden;
}

.hero__bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.9) 100%),
    url("../img/hero-nextgen.jpg");
  background-size:cover;
  background-position:center right;
  filter:saturate(1.1);
  z-index:-1;
}

.hero__content{
  max-width:640px;
  padding:72px 0 64px;
}

.eyebrow{
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--red-light);
  margin:0 0 .75rem 0;
}

.hero__text{
  margin:1rem 0 1.75rem 0;
  color:#e0e0e0;
}

.hero__cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:2rem;
}

.hero__logos{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--gray);
}

/* Big logo in hero */
.hero-logo{
  position:absolute;
  bottom:30px;
  right:60px;
  z-index:5;
}
.hero-logo img{
  height:280px;
  opacity:.9;
}

/* Sections */
.section{
  padding:72px 0;
  background:var(--black);
}
.section--dark{ background:var(--bg-dark); }
.section--red{ background:var(--red); color:var(--white); }
.section--red p{ color:#ffe5e5; }

.section__narrow{
  max-width:720px;
  margin:0 auto;
}

.section__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:32px;
}

/* Grid */
.grid{ display:grid; gap:24px; }
.grid--3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }

/* Cards */
.card{
  background:#18181b;
  border-radius:var(--radius);
  padding:20px 20px 22px;
  border:1px solid #27272f;
}
.card--news{ position:relative; }

.card__tag{
  display:inline-block;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--red-light);
  margin-bottom:.5rem;
}

/* Athlete cards */
.athlete-card{
  background:#18181b;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid #27272f;
  display:flex;
  flex-direction:column;
}
.athlete-card img{
  width:100%;
  height:260px;
  object-fit:cover;
}
.athlete-card__body{ padding:16px 18px 18px; }
.athlete-card__body p{ margin:0 0 4px 0; }
.athlete-card__meta{ font-size:.8rem; color:var(--gray); }

/* Stats */
.stats{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:30px;
}
.stat{ flex:1 1 160px; }
.stat__number{
  display:block;
  font-family:"Bebas Neue",sans-serif;
  font-size:2.6rem;
  color:var(--red-light);
}
.stat__label{ font-size:.85rem; color:#d0d0d0; }

/* Fix spacing between athletes and stats for EN/RU (dlouhé texty) */
body.lang-en #athletes,
body.lang-ru #athletes{
  padding-bottom:96px;
}

/* Gallery */
#galerie{ background:var(--black); }

.gallery__viewport{ overflow:hidden; }

.gallery__track{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:8px;
  scroll-behavior:smooth;
  -ms-overflow-style:none;
  scrollbar-width:none;
}
.gallery__track::-webkit-scrollbar{ display:none; }

.gallery__img{
  flex:0 0 260px;
  height:180px;
  border-radius:var(--radius);
  object-fit:cover;
  scroll-snap-align:center;
  border:1px solid #27272f;
  cursor:pointer;
}

.gallery__controls{
  display:flex;
  align-items:center;
  gap:8px;
}

.gallery__btn{
  border:1px solid #27272f;
  background:#18181b;
  color:var(--white);
  border-radius:999px;
  padding:6px 14px;
  font-size:.8rem;
  cursor:pointer;
  transition:background .18s ease, transform .18s ease;
}
.gallery__btn:hover{
  background:var(--red);
  transform:translateY(-1px);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:9999;
}
.lightbox--open{ display:flex; }

.lightbox__img{
  max-width:92vw;
  max-height:88vh;
  width:auto;
  height:auto;
  border-radius:10px;
  box-shadow:0 18px 60px rgba(0,0,0,.6);
}
.lightbox__close{
  position:absolute;
  top:14px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

/* Partners background separation */
#partners{ background:var(--bg-dark); }
#news{ background:var(--black); }

/* Partner logos */
.logo-row{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:24px;
}
.logo-row__item{
  flex:0 0 120px;
  height:48px;
  border-radius:var(--radius);
  border:1px solid #27272f;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.75rem;
  color:var(--gray);
}

/* Join */
.join{
  display:grid;
  grid-template-columns:1.2fr 1.6fr;
  gap:32px;
  align-items:flex-start;
}

/* Form */
.form{
  background:rgba(0,0,0,.12);
  border-radius:var(--radius);
  padding:18px 18px 20px;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.form__row{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.form__field{
  flex:1 1 160px;
  display:flex;
  flex-direction:column;
  margin-bottom:12px;
}

.form label{ font-size:.8rem; margin-bottom:4px; }

.form input,
.form textarea{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:var(--white);
  padding:8px 10px;
  font-family:inherit;
  font-size:.9rem;
}
.form input:focus,
.form textarea:focus{ outline:1px solid var(--white); }

/* Contact */
.contact{
  display:flex;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.contact__info a{ color:var(--red-light); }

/* Footer */
.footer{
  padding:18px 0;
  background:#050507;
  font-size:.8rem;
  color:var(--gray);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
}

/* Responsive */
@media (max-width:960px){
  .grid--3{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .join{ grid-template-columns:1fr; }
  .hero__content{ max-width:100%; }
}

@media (max-width:768px){
  /* Hero mobile */
  .hero{
    min-height:80vh;
    padding-top:90px;
    align-items:flex-end;
    text-align:left;
  }

  .grid--3{ grid-template-columns:1fr; }
  .stats{ flex-direction:column; }

  .hero__bg{ background-position:center; }
  .hero__content{
    transform:none;
    padding:40px 0 32px;
    max-width:100%;
  }
  .hero__content h1{ font-size:2.6rem; }
  .hero__text{ font-size:1rem; max-width:100%; }
  .hero__cta{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  /* hero-logo under text on mobile */
  .hero{
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-logo{
    position:static;
    order:2;
    margin:10px 0 10px 15px;
  }
  .hero-logo img{
    height:150px;
    opacity:1;
  }
}

@media (max-width:480px){
  h1{ font-size:2.4rem; }

  .hero__content{
    padding-top:48px;
    padding-left:20px;
    padding-right:20px;
  }

  .hero__content h1{
    font-size:2.2rem;
    line-height:1.1;
  }

  .hero__text{ font-size:1rem; }
}

/* Desktop hero sizing */
@media (min-width:769px){
  .hero__content h1{
    font-size:6rem;
    line-height:1.05;
  }
  .hero__text{
    font-size:1.2rem;
    max-width:620px;
  }
  .hero__content{
    transform:translateX(-120px);
  }
}

/* iOS viewport fix (optional) */
@supports (-webkit-touch-callout: none){
  .hero{ min-height:calc(100vh - 74px); }
}

@media (max-width:768px){
  .nav,
  .nav-toggle{
    display:none !important;
  }
}