/* =============================
   Global
============================= */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #f8f8f8;
  color: #333;
}

main {
  padding: 2em 0;
  background: #fff;
  margin-top: 0;
  width: 100%;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1em;
  margin-top: 0;
}

/* =============================
   Header
============================= */
header { 
  position: relative; 
}

/* biały pasek */
.header-top {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;             
  padding: 0 40px;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 2;
}

.site-title {
  font-size: 0.75em;       
  line-height: 1.2;
  color: #666;             
  margin-left: 150px;
  font-weight: normal;
}

.site-title strong {
  font-size: 1em;          
  color: #666;             
  font-weight: normal;
}

/* Kontener dla przycisku i ikon społecznościowych */
.header-top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ikony social */
.social a {
  display: flex;
  align-items: center;
  height: 36px;
}

.social a svg {
  width: 48px;
  height: 48px;
  fill: #0071BC;
  transition: fill 0.3s ease;
}

.social a:hover svg {
  fill: #1d305f;
}

/* Przycisk Wesprzyj nas */
.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0071BC;
  color: white;
  text-decoration: none;
  padding: 0 20px;
  height: 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  border: 2px solid #0071BC;
}

.support-button:hover {
  background: white;
  color: #0071BC;
}

/* =============================
   Pasek nawigacyjny - Desktop
============================= */
.main-nav {
  background: #F26B20;
  position: relative;
  z-index: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 20px 25px; 
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

/* Animacja od środka */
.main-nav li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 3px;
  width: 0;
  background: #0071BC;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.main-nav li:hover::after {
  width: 100%;
}

/* Stały pasek dla aktywnej strony */
.main-nav li.active::after {
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
}

/* =============================
   Logo overlap
============================= */
.logo-overlap {
  position: absolute;
  top: 10px;
  left: 40px;
  z-index: 3;
}

.header-logo {
  max-height: 110px;
  background: #fff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* =============================
   Hamburger Menu - Mobile
============================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================
   Slider - Full Width
============================= */
.slider-container {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 500px;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Przyciski nawigacyjne */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 24px;
  transition: background 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Kropki nawigacyjne */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: white;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* =============================
   Sekcja meczów
============================= */
.matches-section {
  margin: 0 auto;
  padding: 2em;
  max-width: 1200px;
}

.matches-container {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}

.match-box {
  flex: 1;
  min-width: 300px;
  background: #f9f9f9;
  border: 3px solid #F26B20;
  padding: 2em;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 0;
}

.match-box h2 {
  color: #F26B20;
  margin-bottom: 1.5em;
  font-size: 1.5em;
}

.teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  flex: 1;
}

.team-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: white;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 0;
}

.team-name {
  font-weight: 600;
  color: #333;
  font-size: 0.9em;
  text-align: center;
}

.score {
  font-size: 1.8em;
  font-weight: bold;
  color: #0071BC;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.vs {
  font-size: 1.2em;
  font-weight: bold;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.match-date {
  margin-top: 1em;
  color: #666;
  font-style: italic;
}

.match-info {
  margin-top: 1em;
  color: #333;
  font-size: 0.9em;
}

/* =============================
   Responsive
============================= */
@media (max-width: 768px) {
  .header-top { 
    flex-direction: column; 
    text-align: center; 
    gap: 15px;
    height: auto; 
    padding: 100px 20px 0 20px;
    min-height: 200px;
  }
  
  .site-title { 
    display: none;
  }
  
  /* Logo na środku dla mobile - pozostaje na białym tle */
  .logo-overlap { 
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
  
  .header-logo {
    max-height: 90px;
  }
  
  /* Hamburger menu widoczne na mobile */
  .hamburger {
    display: flex;
    top: 25px;
    right: 15px;
  }
  
  /* Menu nawigacyjne na mobile - POPRAWIONE: brak odstępu od góry */
  .main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #F26B20;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .main-nav.active {
    transform: translateY(0);
  }
  
  .main-nav ul { 
    flex-direction: column;
    padding: 0 0 20px 0;
  }
  
  .main-nav li {
    width: 100%;
  }
  
  .main-nav a {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  /* KONTENER PRZYCISKU I IKONKI - POMARAŃCZOWE TŁO */
  .header-top-right {
    margin-top: 30px;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    background: #F26B20;
    padding: 20px 0;
    justify-content: center;
    display: flex;
    gap: 20px;
    box-sizing: border-box;
  }
  
  /* Styl przycisku "Wesprzyj nas" na mobile */
  .support-button {
    background: white;
    color: #F26B20;
    border-color: white;
    height: 40px;
    font-size: 1em;
    margin: 0;
    flex-shrink: 0;
  }
  
  .support-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #F26B20;
  }
  
  /* Styl ikonki Facebooka na mobile - POPRAWIONE: taka sama wysokość jak przycisk */
  .social a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 40px;
  }
  
  .social a svg {
    fill: white;
    width: 40px;
    height: 40px;
  }
  
  .social a:hover svg {
    fill: rgba(255, 255, 255, 0.8);
  }
  
  .header-top {
    display: flex;
    flex-direction: column;
  }
  
  main {
    margin-top: 0;
    padding-top: 1em;
  }
  
  /* Animacja paska pod przyciskiem aktywnym - mobile */
  .main-nav li::after {
    display: none;
  }
  
  .main-nav li.active a {
    background: rgba(255,255,255,0.1);
  }
  
  /* Responsywność slidera */
  .slider {
    height: 350px;
  }
  
  .slider-btn {
    padding: 15px 20px;
    font-size: 20px;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
  
  .slider-dots {
    bottom: 20px;
  }

  /* Responsywność sekcji meczów */
  .matches-container {
    flex-direction: column;
    gap: 1.5em;
  }
  
  .match-box {
    min-width: 100%;
    padding: 1.5em;
  }
  
  .teams {
    gap: 0.5em;
  }
  
  .team-logo {
    width: 60px;
    height: 60px;
  }
  
  .score {
    font-size: 1.5em;
    min-width: 50px;
  }
  
  .vs {
    font-size: 1.1em;
    min-width: 50px;
  }
}

@media (max-width: 480px) {
  .header-logo { 
    max-height: 80px; 
    padding: 8px; 
  }
  
  .main-nav a { 
    font-size: 0.95em; 
    padding: 15px 20px; 
  }
  
  /* POPRAWKI DLA NAJMNIEJSZYCH EKRANÓW */
  .header-top-right {
    margin-top: 25px;
    padding: 15px 0;
    gap: 15px;
    flex-wrap: nowrap;
  }
  
  .support-button {
    height: 36px;
    font-size: 0.9em;
    padding: 0 15px;
    white-space: nowrap;
  }
  
  /* POPRAWIONE: ikonka Facebooka dostosowana do wysokości przycisku */
  .social a {
    height: 36px;
  }
  
  .social a svg {
    width: 36px;
    height: 36px;
  }
  
  .hamburger {
    top: 20px;
    right: 15px;
  }
  
  .header-top {
    padding-top: 95px;
    min-height: 190px;
  }
  
  .logo-overlap {
    top: 15px;
  }
  
  /* Responsywność slidera dla telefonów */
  .slider {
    height: 250px;
  }
  
  .slider-btn {
    padding: 12px 16px;
    font-size: 18px;
  }
  
  .dot {
    width: 12px;
    height: 12px;
  }
  
  .slider-dots {
    bottom: 15px;
    gap: 10px;
  }
  
  /* Dodatkowe zabezpieczenie dla bardzo małych ekranów */
  @media (max-width: 360px) {
    .header-top-right {
      gap: 10px;
    }
    
    .support-button {
      font-size: 0.8em;
      padding: 0 10px;
    }
    
    .social a svg {
      width: 32px;
      height: 32px;
    }
    
    .social a {
      height: 32px;
    }
  }
}

/* =============================
   Sekcja sponsorów
============================= */
.sponsors-section {
  padding: 3em 0;
  background: #fff;
  border-top: 1px solid #eee;
}

.sponsors-section h2 {
  text-align: center;
  color: #F26B20;
  margin-bottom: 2em;
  font-size: 2em;
}

.sponsors-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1em 0;
}

.sponsors-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.sponsor-logo {
  flex-shrink: 0;
  margin: 0 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo img {
  height: 60px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.sponsor-logo img:hover {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pauzuj animację po najechaniu */
.sponsors-container:hover .sponsors-track {
  animation-play-state: paused;
}

/* Responsywność sekcji sponsorów */
@media (max-width: 768px) {
  .sponsors-section {
    padding: 2em 0;
  }
  
  .sponsors-section h2 {
    font-size: 1.5em;
    margin-bottom: 1.5em;
  }
  
  .sponsor-logo {
    margin: 0 2em;
  }
  
  .sponsor-logo img {
    height: 50px;
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .sponsors-section h2 {
    font-size: 1.3em;
  }
  
  .sponsor-logo {
    margin: 0 1.5em;
  }
  
  .sponsor-logo img {
    height: 40px;
    max-width: 100px;
  }
}