/* ——— TŁO Z FALOWANIEM ——— */
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at center,
      #000000 0%,
      #0a0a0c 40%,
      #000000 100%
  );
  animation: bgPulse 6s ease-in-out infinite;
  font-family: system-ui, sans-serif;
  color: #f5f5f5;
  font-size: 18px;
}

@keyframes bgPulse {
  0%   { background-size: 100% 100%; filter: brightness(1); }
  50%  { background-size: 130% 130%; filter: brightness(1.25); }
  100% { background-size: 100% 100%; filter: brightness(1); }
}

/* ——— KARTA ——— */
.card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ——— LOGO ——— */
.logo-wrap img {
  width: 200px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  animation: logoPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(212,175,55,0.55));
}

@keyframes logoPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.10); }
  100% { transform: scale(1); }
}

/* ——— TYTUŁ ——— */
.title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 20px;
}

/* ——— KAFELKI KATEGORII ——— */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.tile {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 15px 10px;
  text-align: center;
  color: #e0e0e0;
  font-size: 18px;
  text-decoration: none;
  transform: translateY(15px);
  opacity: 0;
  animation: tileIn 0.5s ease forwards;
}

.tile img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.tile:hover {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212,175,55,0.5);
  transform: scale(1.03);
}

@keyframes tileIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ——— GALERIA ——— */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* ——— LIGHTBOX ——— */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(212,175,55,0.6);
}

.lightbox.active {
  display: flex;
}

/* ——— TŁO LOGO ——— */
.bg-logo {
  position: fixed;
  right: -30px;
  bottom: -30px;
  width: 220px;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.bg-logo img {
  width: 100%;
  height: auto;
  animation: bgLogoPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(212,175,55,0.6));
}

@keyframes bgLogoPulse {
  0%   { transform: scale(1);     filter: drop-shadow(0 0 10px rgba(212,175,55,0.4)); }
  50%  { transform: scale(1.25);  filter: drop-shadow(0 0 40px rgba(212,175,55,1)); }
  100% { transform: scale(1);     filter: drop-shadow(0 0 10px rgba(212,175,55,0.4)); }
}

/* ——— MOBILE ——— */
@media (max-width: 600px) {
  .card {
    padding: 15px;
    max-width: 100%;
  }

  .title {
    font-size: 24px;
  }

  .tile {
    font-size: 16px;
    padding: 15px 8px;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
/* ——— TRYB PEŁNEJ STRONY (GALERIE + UPLOAD) ——— */
body.fullpage .card {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px !important;
    margin: 0 !important;
}

body.fullpage .title {
    font-size: 28px !important;
    text-align: center;
    margin-bottom: 20px;
}

body.fullpage .tiles {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
}

body.fullpage .tile {
    font-size: 18px !important;
    padding: 20px 10px !important;
}

body.fullpage .gallery {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    max-height: none !important;
    overflow-y: visible !important;
}

body.fullpage .gallery img {
    border-radius: 12px !important;
}

body.fullpage select,
body.fullpage input,
body.fullpage button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 18px !important;
    padding: 16px !important;
    border-radius: 12px !important;
    margin: 12px 0 !important;
}
