body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0 1rem;
  padding-top: 80px; /* wysokość fixed headera (64px) + odstęp 16px */
  background-color: #f9f9f9;
  color: #333;
}

@media (max-width: 600px) {
  body {
    padding-top: 96px;
  }
}

/* GRID */
.meetups {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.meetup {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e0e0e0;
}

.meetup:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.meetup h3 {
  margin-top: 0;
  font-size: 20px;
  color: #111;
}

.meetup p {
  margin: 8px 0;
  color: #555;
  font-size: 14px;
}

.meetup strong {
  color: #000;
}

/* LINKI */
.social-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  background: #444;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.social-link:hover {
  background: #222 !important;
}

.meetup p a {
  display: inline;
  background: none !important;
  padding: 0;
  color: #666;
  text-decoration: underline;
  font-size: inherit;
}

.meetup p a:hover {
  background: #e0e0e0 !important;
  color: #222;
  padding: 1px 4px;
  border-radius: 3px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 30px 10px;
  color: #666;
  font-size: 13px;
}

.icon {
  filter: brightness(0) invert(1);
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #AAA;
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-link {
  display: flex;
  align-items: center;
  margin-right: auto;
  background: none !important;
  padding: 0 !important;
}

.logo-link:hover {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

/* MENU */
.nav-dropdown {
  position: relative;
}

.nav-select {
  cursor: pointer;
  font-size: 20px;
  color: #fff;
  padding: 6px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #333;
  user-select: none;
}

.nav-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 300px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.nav-dropdown:hover .nav-menu {
  display: block;
}

.nav-menu li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease;
}

.nav-menu li a:hover {
  background: #f0f0f0;
  color: #111;
}

/* PAST EVENTS */
.meetup.past-event {
  opacity: 0.55;
  border-style: dashed;
}

.past-events-section {
  display: none;
}

.toggle-past-btn {
  display: block;
  margin: 0 auto 10px auto;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #888;
  color: #fff;
  font-size: 14px;
  transition: background-color 0.2s;
}

.toggle-past-btn:hover {
  background-color: #555;
}

.past-events-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* PAGE TITLES */
.page-title {
  max-width: 1100px;
  margin: 20px auto 8px;
  padding: 0 20px;
  font-size: 28px;
  color: #111;
}

.lead {
  max-width: 1100px;
  margin: 0 auto 6px;
  padding: 0 20px;
  font-size: 15px;
  color: #555;
}

.created {
  max-width: 1100px;
  margin: 0 auto 0;
  padding: 0 20px 10px;
  font-size: 13px;
  color: #888;
}

.disclaimer {
  max-width: 1100px;
  margin: 0 auto 0;
  padding: 0 20px 30px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* ACTIONS */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-copy,
.btn-link {
  flex: 1;
  min-width: 120px;
  display: inline-block;
  text-align: center;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.2s ease;
}

.btn-copy {
  background: #444;
  color: #fff;
}

.btn-copy:hover {
  background: #222;
}

.btn-link {
  background: #e8e8e8;
  color: #333;
}

.btn-link:hover {
  background: #ccc;
}

/* CODE BLOCK */
.code-block {
  display: inline-block;
  font-family: monospace;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: all;
  transition: background 0.15s ease;
}

.code-block:hover {
  background: #e0e0e0;
}

/* NOTE */
.note {
  margin-top: 12px;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

/* QR */
.qr-center {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* TOAST */
#toast {
  display: none;
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  pointer-events: none;
}


/* ══════════════════════════════════════ CARDS (sekcje kart) ══ */

.section-heading {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 20px;
  font-size: 20px;
  color: #333;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 1rem auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.cards--wide {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-left: 4px solid #aaa;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.card-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.links a {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.3rem;
  text-decoration: none;
  color: #0077cc;
  transition: color 0.2s;
}

.links a:hover {
  color: #005fa3;
}

.day-badge {
  font-weight: bold;
  color: #555;
  margin-bottom: 0.3rem;
}

.tag {
  display: inline-block;
  background-color: #eee;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.meetup-title {
  margin-top: 0;
  font-size: 20px;
  font-weight: bold;
  color: #111;
}