/* Reset i ogólne */
body {
  margin: 0;
  /* font-family: 'Baloo 2', cursive; */
  font-family: Poppins,sans-serif;;
  background-color: #e2e2e2;
  color: #0a0a0a;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #efbc1d;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 1em;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #0a0a0a;
  padding: 3em 1em;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  max-width: 800px;
}

.hero-text h1 {
  font-family: 'Baloo 2', cursive;
  color: #efbc1d;
  margin: 0;
}

.hero-text p {
  font-size: 1.2em;
  color: #ccc;
  max-width: 600px;
}

.btn-primary {
  background-color: #efbc1d;
  color: #111;
  padding: 0.7em 1.5em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

/* .btn-primary:hover {
  background-color: #ffdb4d;
} */

.neon-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem;
  gap: 1rem;
  animation: neonBlink 10s infinite;
  filter: drop-shadow(0 0 4px #efbc1d) drop-shadow(0 0 40px #efbc1d);
}

/* Styl tekstu */
.neon-logo h1 {
  font-size: clamp(2rem, 8vw, 7rem); /* elastyczny rozmiar między 2rem a 7rem */
  margin: 0;
  text-align: center;
  color: #efbc1d;
}

/* Styl obrazka */
.neon-logo img {
  max-width: 100px;
  height: auto;
}


/* Neonowe mignięcie – nieregularne */
@keyframes neonBlink {
  0%, 19%, 21%, 23%, 80%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 4px #efbc1d) drop-shadow(0 0 40px #efbc1d);
  }
  20%, 22%, 81% {
    opacity: 0.2;
    filter: none;
  }
}

/* Nawigacja */
/* NAVBAR CAŁOŚĆ */
.main-nav {
  width: 100%;
  background: #e2e2e2;
  padding: 1em 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.4s ease;
}

/* NAVBAR CHOWANY */
.main-nav.hide {
  transform: translateY(-100%);
}

/* OGRANICZENIE SZEROKOŚCI DO 1100px */
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2em;
}

/* LEWA I PRAWA STRONA */
.nav-left,
.nav-right {
  display: flex;
  gap: 1.5em;
  align-items: center;
}

/* STYL LINKÓW TEKSTOWYCH */
.nav-left a {
  position: relative;
  display: inline-block;
  color: #0f0f0f;
  font-weight: 700;
  padding: 0.2em 0.4em;
  text-decoration: none;
  background-color: transparent;
  overflow: hidden;
  transition: color 0.3s ease;
}

.nav-left a::before,
.nav-right a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #efbc1d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.nav-left a:hover::before,
.nav-right a:hover::before {
  transform: scaleX(1);
}

.nav-left a:hover,
.nav-right a:hover {
  color: #0f0f0f;
}

/* STYL IKON (z efektem zakreślenia) */
.nav-right a {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  overflow: hidden;
  padding: 0.5em;
}

.social-icon {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.2s ease;
}

.disclaimer {
  color: #777;
  font-style: italic;
}

/* Tło tylko pod kalendarzem (tabelą dni) */
.fc .fc-scrollgrid {
  background: #111;
}

/* Zewnętrzna sekcja bez tła */
.calendar-section {
  background: #e2e2e2;
  max-width: 1100px;
  margin: auto;
}

/* Naprawa wyrównania tytułu do środka */
.fc-toolbar-title {
  font-size: 1.6em;
  font-weight: bold;
  background: #efbc1d;
  color: #000;
  padding: 0.2em 0.6em;
  text-align: center;
  display: inline-block;
  margin: auto;
}

.fc-toolbar.fc-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.fc-toolbar.fc-header-toolbar .fc-left,
.fc-toolbar.fc-header-toolbar .fc-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Styl przycisków (strzałek) */
.fc-button {
  background-color: transparent;
  color: #efbc1d;
  border: 2px solid #efbc1d;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.3em 0.6em;
  transition: background 0.2s ease;
  border-radius: 0;
}

.fc-button:hover {
  background-color: #efbc1d;
  color: #000;
  cursor: pointer;
}

/* Usuń zaokrąglenia wszędzie */
.fc-button,
.fc-scrollgrid,
.fc-toolbar,
.fc {
  border-radius: 0 !important;
}

/* Styl wydarzeń jako "zakreślenie" */
.fc-event {
  background-color: #efbc1d !important;
  color: #000 !important;
  border: none;
  font-weight: 700;
  padding: 0.1em 0.3em;
  font-size: 0.85em;
  border-radius: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* Zakreślenie jako tło z animacją */
.fc-event::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #efbc1d;
  z-index: -1;
}

/* Minimalna wysokość dnia — usuwamy */
.fc-daygrid-day {
  min-height: auto !important;
  height: auto !important;
}

/* Frame (zawartość dnia) — zbicie paddingu */
.fc-daygrid-day-frame {
  padding: 0.4em 0.3em !important;
}

/* Usunięcie marginesów/odstępów w evencie */
.fc-event {
  margin: 0 !important;
  padding: 0.1em 0.3em !important;
  line-height: 1.2em;
}

.event-details {
  background-color: #efbc1d;
  color: #000;
  padding: 2em;
  margin-top: 2em;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  animation: slideDown 0.3s ease;
  margin-bottom: 0; /* <-- kluczowe */
}

.event-meta {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  margin-bottom: 0.5em;
}
.event-meta span {
  white-space: nowrap;
}

.event-details {
  position: relative;
}

.event-details .close-popup {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  font-size: 1.5em;
  line-height: 1;
  cursor: pointer;
  color: #000;
}

.signup-info {
  background-color: #0f0f0f;
  color: #efbc1d;
  padding: 1.5em;
  text-align: center;
  font-weight: 600;
  font-size: 1em;
  line-height: 1.5;
  margin-top: 0;
}

.signup-info a {
  color: #efbc1d;
  text-decoration: underline;
  transition: text-decoration 0.2s ease;
}

.signup-info a:hover {
  text-decoration: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-details.hidden {
  display: none;
}

.event-details h3 {
  background: #000;
  color: #efbc1d;
  display: inline-block;
  padding: 0.2em 0.6em;
  margin-top: 0;
}

.event-details .close-popup {
  float: right;
  background: none;
  border: none;
  font-size: 1.5em;
  line-height: 1;
  cursor: pointer;
  color: #000;
}

@keyframes zakreslenie {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.event-popup h3 {
  margin-top: 0;
  background: #000;
  color: #efbc1d;
  display: inline-block;
  padding: 0.2em 0.5em;
}

.close-popup {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  font-size: 1.2em;
  color: #000;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Sekcja split */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: center;
}

.split > div {
  flex: 1 1 300px;
}

.img-block img {
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.15);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin-top: 2em;
}

.card {
  background-color: #1a1a1a;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
}

/* Obrazek w proporcjach 3:2 */
.card-image {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* 3:2 proporcje */
  overflow: hidden;
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Treść z paddingiem */
.card-content {
  padding: 1.5em;
}

.card h3 {
  margin-top: 0;
  font-size: 1.2em;
}

/* Zakreślenie */
.highlighted-title {
  display: inline-block;
  padding: 0.1em 0.2em;
  background: #efbc1d;
  color: #0f0f0f;
  font-weight: 700;
}

.card p {
  color: #ddd;
  margin-bottom: 0;
}

/* Kontakt */
.contact-box {
  background: #1a1a1a;
  padding: 1.5em;
  max-width: 500px;
  margin: auto;
  text-align: center;

  /* Wycentrowanie w pionie i poziomie */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Minimalna wysokość, żeby coś było do centrowania */
  min-height: 300px;
}

/* Stopka */
footer {
  background-color: #111;
  color: #777;
  text-align: center;
  padding: 2em 1em;
  font-size: 0.9em;
}

/* Dodatkowe */
h2 {
  display: inline-block;
  background: #efbc1d;
  color: #0f0f0f;
  padding: 0.1em 0.4em;
  line-height: 1.3;
  font-weight: 800;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  /* font-family: 'Baloo 2', cursive; */
  font-size: 2.5em;
  margin: 0;
}

.info {
  font-style: italic;
  color: #bbb;
  text-align: center;
  margin-top: 1.5em;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    flex-direction: column;
    align-items: center;
  }
  .split {
    flex-direction: column;
  }
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 0;
}

.contact-box,
.map-box {
  background-color: #1a1a1a;
  color: #efbc1d;
  flex: 1 1 300px;
  min-height: 350px;
}

.contact-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #efbc1d;
}

.contact-box p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #ffffff;
}

.contact-box p strong {
  color: #efbc1d;
}

.map-box {
  padding: 0;
  overflow: hidden;
}

#map {
  height: 100%;
  width: 100%;
}

section {
  margin: 2em 0;
}

@media (max-width: 768px) {
  .calendar-section {
    display: none;
  }
  .hidden-on-mobile {
    display: none
  }
}

/* Ukryta domyślnie */
#calendar-events-list.hidden {
  display: none;
}

#toggle-mobile-events {
  background: #efbc1d;
  color: #000;
  font-weight: bold;
  padding: 1em;
  border: none;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s;
}

#toggle-mobile-events:hover {
  background: #ffd900;
}

/* Kontener listy */
#calendar-events-list {
  background: #111;
  padding: 1em;
  max-width: 1100px;
  margin: auto;
  color: #ddd;
}

/* Pojedynczy klocek wydarzenia */
.event-item {
  background: #1a1a1a;
  padding: 1.5em;
  margin-bottom: 1.5em;
  border: 2px solid #efbc1d;
  transition: transform 0.3s;
}

.event-item h4 {
  color: #efbc1d;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.event-item p {
  margin: 0.3em 0;
  color: #ccc;
}

/* DOMYŚLNIE ukrywamy */
#calendar-events-list,
#toggle-mobile-events {
  display: none;
}

/* Pokaż tylko na ekranach do 768px */
@media (max-width: 768px) {
  #calendar-events-list,
  #toggle-mobile-events {
    display: block;
    margin-top: 1em;
    max-width: 1100px;
    margin-inline: auto;
  }

  #calendar-events-list.hidden {
    display: none;
  }
}
