* {
  box-sizing: border-box;
}

body {
  margin:0;
  font-family:'Segoe UI', sans-serif;
  background:#f4f4f4;
  font-size:16px;
}

header {
  background: #000;
  color: white;
  padding: 15px;
  text-align: center;
}

.container {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

button {
  background: #ffcc00;
  color: black;
  font-weight:bold;
  padding: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-size: 20px;
}

.gallery {
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:15px;
  width:100%;
  align-items:start;
}

.gallery {
  overflow: hidden;
}

.gallery img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor: pointer;
  transform: none;
  transition: box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery-title {
  text-align:center;
  font-size:42px;
  margin:80px 0 40px;
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  background: #111;
  color: white;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.admin-bar a {
  color: #00c3ff;
  text-decoration: none;
  margin-left: 10px;
}

.admin-bar a:hover {
  text-decoration: underline;
}

.export-btn {
  background: #28a745;
  color: white !important;
  padding: 8px 12px;
  border-radius: 6px;
}

.hidden-field {
  display:none;
}

/* FORMULARZ */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.signup-form {
  width:100%;
  }

form input[type="text"],
form input[type="email"] {
  width: 100%;
  max-width: 100%;
  padding: 18px;            /* 🔥 większe */
  font-size: 20px;          /* 🔥 większe */
  border-radius: 10px;      /* 🔥 ładniejsze */
  border: 1px solid #ccc;
  box-sizing: border-box;
  transition: 0.2s;
}

form input:focus {
  border: 1px solid #1faa00;
  outline: none;
}

/* checkbox + tekst */
form label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;          /* 🔥 większe */
}

/* przycisk */
form button {
  width: 100%;              /* 🔥 pełna szerokość */
  padding: 18px;
  font-size: 20px;
  margin-top: 10px;
  border-radius: 10px;
}

/* WIĘKSZE TEKSTY */

h1 {
  font-size: 32px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 22px;
}

.title {
  text-align: center;
  font-size: 42px;
  font-weight: bold;
}

.cinematic-hero {
	position: relative;
	min-height: 720px;
	background:
    linear-gradient(
      to right,
      rgba(0,0,0,0.92) 15%,
      rgba(0,0,0,0.72) 50%,
      rgba(0,0,0,0.92) 100%
    ),
    url('images/cinematic-bg.jpg');

  background-size: cover;
  background-position: center;
  padding: 80px 40px;
  display:flex;
  align-items:center;	
}

.cinematic-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 70px;
  align-items: center;
}

.cinematic-info {
  color: white;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.cinematic-info h2 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 30px;
  font-weight: 800;
}

.cinematic-info p {
  font-size: 22px;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 35px;
}

.cinematic-buttons {
  display: flex;
  gap: 20px;
}

.cinematic-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow:
    0 15px 50px rgba(0,0,0,0.7);
  display:block;
}

.cinematic-poster {
  width:100%;
  max-width:420px;
}

.btn-primary {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  padding: 18px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #e6b800;
  transform: none;
}

.signup-section {
  background:#0d0d0d;
  padding:80px 20px;
}

.signup-grid {
  max-width:1400px;
  margin:auto;

  display:grid;
  grid-template-columns: 420px 1fr;
  gap:60px;
  align-items:start;
}

.signup-info {
  color:white;
}

.signup-info h2 {
  font-size:48px;
  margin-bottom:20px;
}

.signup-info p {
  color:#ccc;
  font-size:20px;
  line-height:1.7;
}

.small-title {
  color:#d4af37;
  letter-spacing:2px;
  margin-bottom:15px;
  font-size:14px;
}

.signup-form form {
  background:white;
  padding:28px;
  border-radius:20px;
  box-shadow:0 10px 40px rgba(0,0,0,0.4);
}

#countdown {
  font-size: inherit;
  font-weight: inherit;
  color: #ffcc00;
  margin-left: 10px;
  opacity: 0.9;
}

/* WIĘKSZE POLA NA KOMPUTERZE */
@media (min-width: 768px) {
	.signup-form form {
    max-width: 100%;
    margin: 0;
  }

  form input[type="text"],
  form input[type="email"] {
    padding: 16px;
    font-size: 18px;
  }

  form label {
    font-size: 18px;
  }

  form button {
    padding: 16px;
    font-size: 18px;
  }

}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:10px;
  }
  
  .container {
    padding: 15px;
  }
  h1 {
    font-size: 24px;
  }
  
	  .signup-form form {
	  padding: 20px;
	}

	form input[type="text"],
	form input[type="email"] {
	  padding: 14px;
	  font-size: 16px;
	}

	form button {
	  padding: 14px;
	  font-size: 16px;
	}

	.signup-info h2 {
	  font-size: 32px;
	}

	.signup-info p {
	  font-size: 16px;
	}
  .signup-section {
  padding: 50px 15px;
}
	.scanner-box,
 	 #reader,
  	.scan-result {
    width: 100%;
    max-width: 360px;
  }
	  #reader video {
    height: 360px !important;
  }
  
}

.success {
  background: green;
  color: white;
  padding: 10px;
}

.error {
  background: red;
  color: white;
  padding: 10px;
}

/* ===== INFO O WYDARZENIU ===== */

.event-details {
  background: #111;
  padding: 35px 20px;
}

.details-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  color: white;
}

.detail-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
}

.icon {
  font-size: 28px;
}

.detail-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-card p {
  margin: 0;
  font-size: 17px;
  color: white;
  font-weight: 600;
}

.places-counter {
  margin-top: 20px;
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.places-counter strong {
  color: #ffcc00;
}

.tickets-box {
  margin-top: 10px;
}

.tickets-label {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.tickets-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tickets-selector button {
  width: 60px;
  height: 60px;
  background: #2a2a2a;
  color: white;
  border: 1px solid #444;
  border-radius: 12px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.tickets-selector button:hover {
  background: #3a3a3a;
}

.tickets-selector input {
  width: 80px;
  height: 60px;
  border: 1px solid #444;
  border-radius: 12px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  background: white;
}

/* Chrome, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}


/* TELEFON */

@media (max-width: 900px) {

  .cinematic-hero {
    overflow-x: hidden;
  }

  .cinematic-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;

    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .cinematic-poster {
    margin: 0 auto;
    max-width: 300px;
  }

  .cinematic-info {
    margin: 0 auto;
    text-align: center;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .cinematic-info h2 {
    font-size: 34px;
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  .cinematic-info p {
    font-size: 18px;
    overflow-wrap: break-word;
  }

  .alert-info {
    width: 100%;
    max-width: 100%;
  }

  .signup-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .signup-info {
    text-align: center;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .detail-card {
    justify-content: flex-start;
  }

  .detail-card p {
    font-size: 16px;
  }
}

/* ===== SKANER QR ===== */

.scanner-box {
  width: 420px;
  margin: 30px auto;
  text-align: center;
}

#reader {
  width: 420px !important;
}

#reader video {
  width: 100% !important;
  height: 420px !important;
  object-fit: cover !important;
}

.scan-result {
  width: 420px;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
  background: #111;
  color: white;
  border-radius: 15px;
  white-space: pre-line;
  text-align: center;
}

#reader {
  background: transparent !important;
  border: none !important;
}

#reader > div {
  background: transparent !important;
  border: none !important;
}

#reader__dashboard {
  background: transparent !important;
}

#reader__scan_region {
  background: transparent !important;
  padding: 0 !important;
}

#reader__scan_region video {
  display: block !important;
  margin: 0 auto !important;
  border-radius: 12px;
}

#reader button,
#reader select {
  margin-top: 10px;
}

/* ===== EDYCJA UCZESTNIKA ===== */
/* ===== EDYCJA UCZESTNIKA ===== */

.edit-user {
  max-width: 700px;
  margin: 40px auto;
  padding: 40px;

  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.edit-user h2 {
  text-align: center;
  margin-bottom: 35px;
}

.edit-user form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edit-user label {
  font-weight: bold;
  font-size: 16px;
}

.edit-user input {
  width: 100%;
  padding: 14px;
  font-size: 17px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.edit-user button {
  margin-top: 10px;
}

.edit-user a {
  display: inline-block;
  margin-top: 25px;
}

@media (max-width: 768px) {
  .edit-user {
    margin: 20px;
    padding: 25px;
  }
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.alert-info {
  width: 100%;
  max-width: 100%;

  margin: 0 0 30px 0;
  padding: 10px 14px;

  box-sizing: border-box;

  background: darkgoldenrod;
  color: white;

  font-size: 22px;
  font-weight: bold;
  line-height: 1.25;

  text-align: center;
  border-radius: 6px;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.alert-info del {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .alert-info {
    font-size: 18px;
    padding: 8px 10px;
  }
}



.cinematic-hero,
.cinematic-content,
.cinematic-info {
  max-width: 100%;
  overflow-x: hidden;
}

.cinematic-info h2,
.cinematic-info p,
.alert-info {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===== STRONA POTWIERDZENIA REZERWACJI ===== */

.ticket-page {
  min-height: 100vh;
  background: #0d0d0d;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 15px;
  box-sizing: border-box;
}

.ticket-card {
  max-width: 520px;
  width: 100%;
  background: white;
  padding: 35px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0,0,0,0.35);
}

.ticket-card h1 {
  font-size: 30px;
  margin: 0 0 20px;
}

.ticket-name {
  font-size: 24px;
  font-weight: bold;
  margin: 15px 0;
}

.ticket-qr {
  width: 260px;
  max-width: 100%;
  margin: 20px auto;
  display: block;
}

.ticket-info {
  color: #555;
  font-size: 16px;
  margin-bottom: 25px;
}

.ticket-button {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.ticket-info-main {
  font-size: 18px;
  line-height: 1.5;
  color: #222;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .ticket-card {
    padding: 25px;
  }

  .ticket-card h1 {
    font-size: 24px;
  }

  .ticket-name {
    font-size: 20px;
  }
}

.ticket-info-main {
  font-size: 18px;
  line-height: 1.5;
  color: #222;
  margin: 20px 0;
}

.places-counter.green{
    background:#2e7d32;
    color:#fff;
}

.places-counter.orange{
    background:#ef6c00;
    color:#fff;
}

.places-counter.red{
    background:#c62828;
    color:#fff;
}

.places-counter.black{
    background:#444;
    color:#fff;
}

/* ===== FIX GALERII: bez powiększania i bez poziomego przesunięcia ===== */
.gallery,
.gallery > * {
  min-width: 0;
  max-width: 100%;
}

.gallery {
  overflow: hidden;
}

.gallery img,
.gallery img:hover {
  transform: none !important;
  scale: 1 !important;
  max-width: 100% !important;
}

/* ===== TRYB PO WYDARZENIU ===== */
.after-event-section{background:#0d0d0d;padding:80px 20px;color:white}
.after-event-content{max-width:900px;margin:0 auto;text-align:center}
.after-event-content .small-title{color:#d4af37;letter-spacing:2px;margin-bottom:15px;font-size:14px}
.after-event-content h2{margin:0 0 22px;font-size:48px;line-height:1.15}
.after-event-content p{max-width:760px;margin:0 auto 18px;color:#ccc;font-size:19px;line-height:1.7}
.after-event-content .after-event-lead{color:white;font-size:22px;font-weight:600}
.join-box{max-width:720px;margin:40px auto 0;padding:30px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.05)}
.join-box h3{margin:0 0 12px;font-size:25px}.join-box p{font-size:17px}
.archive-button{display:inline-block;margin-top:12px;padding:15px 24px;background:#ffcc00;color:#000;border-radius:10px;text-decoration:none;font-weight:700;transition:.2s}
.archive-button:hover{transform:translateY(-2px)}

/* ===== GALERIA PO WYDARZENIU ===== */
.after-gallery{padding:70px 20px 80px;background:#faf7f0}
.after-gallery-container{max-width:1200px;margin:0 auto}
.after-gallery-heading{display:flex;align-items:center;justify-content:center;gap:18px}
.after-gallery-heading h2{margin:0;color:#0b2237;font-family:Georgia,"Times New Roman",serif;font-size:30px}
.gallery-line{width:55px;height:1px;background:#c9932f}
.gallery-intro{text-align:center;color:#777;margin:10px 0 30px}
.event-photo-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.event-photo{display:block;overflow:hidden;border-radius:10px;background:#ddd;box-shadow:0 8px 25px rgba(0,0,0,.12)}
.event-photo img{display:block;width:100%;height:230px;object-fit:cover;transition:transform .3s ease}
.event-photo:hover img{transform:scale(1.04)}
.gallery-empty{grid-column:1/-1;margin:0;padding:30px;text-align:center;color:#777;background:#fff;border:1px solid #e6ded2;border-radius:10px}

/* ===== STOPKA WARTOŚCIOWE POPOŁUDNIE ===== */
.archive-footer{background:#fffaf2;color:#4f5963;border-top:1px solid #ddcdb7}
.archive-footer-main{max-width:1200px;margin:0 auto;padding:34px 20px 28px;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:45px}
.footer-about p{max-width:280px;font-size:13px;line-height:1.5}
.footer-brand{display:inline-flex;flex-direction:column;text-decoration:none;align-items:flex-start}
.footer-brand strong{color:#0b2237;font-family:Georgia,serif;font-size:18px;letter-spacing:.08em}
.footer-brand em{color:#c9932f;font-family:Georgia,serif;font-size:22px}
.footer-brand span{display:inline-block;width:fit-content;background:#0b2237;color:white;padding:4px 8px;font-size:11px;font-weight:700}
.footer-column{display:flex;flex-direction:column;align-items:flex-start}
.footer-column strong{margin-bottom:12px;color:#0b2237;font-size:11px}
.footer-column a,.footer-column span{margin-bottom:7px;color:#4f5963;font-size:12px;text-decoration:none}
.footer-column a:hover{color:#c9932f}
.archive-footer-bottom{max-width:1200px;margin:0 auto;padding:17px 20px;display:flex;justify-content:space-between;border-top:1px solid #e5d9c8;font-size:10px;color:#89847c}
.archive-footer-bottom a{margin-left:15px;color:inherit;text-decoration:none}
#countdown.finished{color:#999}

@media(max-width:800px){.after-event-section{padding:55px 18px}.after-event-content h2{font-size:34px}.after-event-content p{font-size:16px}.after-event-content .after-event-lead{font-size:18px}.join-box{margin-top:30px;padding:22px 18px}.event-photo-gallery{grid-template-columns:repeat(2,1fr);gap:10px}.event-photo img{height:150px}.archive-footer-main{grid-template-columns:1fr 1fr;gap:28px}.archive-footer-bottom{flex-direction:column;gap:8px}.archive-footer-bottom a{margin-left:0;margin-right:14px}}
@media(max-width:480px){.event-photo-gallery{grid-template-columns:1fr 1fr}.event-photo img{height:115px}.archive-footer-main{grid-template-columns:1fr}}


/* ========================================
   LIGHTBOX GALERII
======================================== */

body.lightbox-open {
  overflow: hidden;
}

.event-photo {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #ddd;
  cursor: zoom-in;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.event-photo img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .3s ease;
}

.event-photo:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 90px;
  background: rgba(0,0,0,.92);
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1200px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 15px 50px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255,255,255,.25);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 70px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255,255,255,.10);
  color: white;
  font-size: 54px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,.22);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  margin-top: 12px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
}

@media (max-width: 700px) {

  .lightbox {
    padding: 55px 10px 25px;
  }

  .lightbox-content img {
    max-height: 78vh;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .lightbox-arrow {
    width: 44px;
    height: 58px;
    font-size: 42px;
    background: rgba(0,0,0,.42);
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }

  .event-photo img {
    height: 150px;
  }
}


/* ===== STATUS DOSTĘPNOŚCI MIEJSC ===== */
.places-counter.green {
  border-color: rgba(92, 184, 92, .55);
  color: #c8f5c8;
}

.places-counter.orange {
  border-color: rgba(255, 193, 7, .60);
  color: #ffe28a;
}

.places-counter.red {
  border-color: rgba(220, 53, 69, .60);
  color: #ff9aa5;
}

.places-counter.black {
  border-color: rgba(255,255,255,.20);
  color: #ddd;
}

/* Dopasowanie archiwum „Miało nie żyć”: bez powiększania przy najechaniu. */
.btn-primary:hover, .archive-button:hover, .event-photo:hover img { transform: none; }
.event-photo-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
.event-photo { min-width:0; }
@media (max-width:800px) {
  .event-photo-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cinematic-hero { padding: 34px 15px; min-height:auto; }
  .cinematic-content { gap: 25px; padding:0; }
  .cinematic-info { width:100%; min-width:0; }
  .cinematic-poster { max-width:300px; }
  .after-gallery-heading h2 { font-size:clamp(20px,5vw,30px); text-align:center; }
  .gallery-line { flex-shrink:1; min-width:12px; }
}

/* Mniejsze miniatury na wąskich ekranach – ostatnia reguła wygrywa. */
@media (max-width:480px){.event-photo img{height:115px}}
