/* ===================================================
   CIEMNA PALETA AUSSIE (Dark Aussie Palette)
   - Tło: głęboki, stalowy grafit (black-tri / charcoal)
   - Akcent: ciepła miedź / mahoń (copper / tan points)
   - Fonty systemowe (0 zapytań / 100% prywatności)
   =================================================== */

:root {
  --bg-main: #0e1318;
  --bg-tinted: #131920;
  --border-color: #202b38;

  /* Bardzo jasny, wyrazisty tekst */
  --text-main: #ffffff;
  --text-body: #f1f5f9;
  --text-muted: #a6b5c5;
  --text-subtle: #6d8094;

  --color-copper: #d6793a;
  --color-merle-blue: #627d98;

  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 860px;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Układ */
.page-container {
  width: 100%;
}

.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sekcje */
.section {
  padding: 34px 0;
}

.section-tinted {
  background-color: var(--bg-tinted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Hero / Nagłówek */
.hero-section {
  background-color: #121921;
  border-bottom: 3px solid var(--color-copper);
  text-align: center;
  padding: 42px 0 38px;
}

.paw-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(214, 121, 58, 0.12);
  border: 1px solid rgba(214, 121, 58, 0.35);
  border-radius: 50%;
  color: var(--color-copper);
  margin-bottom: 10px;
}

.paw-icon svg {
  width: 24px;
  height: 24px;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-section .subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto;
}

/* Nagłówki sekcji h2 */
h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  display: inline-block;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background-color: var(--color-copper);
  border-radius: 2px;
  margin-top: 6px;
}

/* Treść bez ciężkich bloków */
.placeholder-box {
  background: transparent;
  border: none;
  padding: 4px 0 0;
  text-align: left;
}

.placeholder-text {
  color: var(--text-body);
  font-size: 1.18rem;
  line-height: 1.8;
  font-style: normal;
  max-width: 800px;
}

/* ===================================================
   SEKCJA ZDJĘĆ - KADROWANIE I SKALOWANIE
   =================================================== */
.gallery-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Karta zdjęcia */
.gallery-card {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font: inherit;
  background-color: #141c24;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1 / 1; /* Kwadratowy format - idealny do mieszanki pion/poziom */
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: scale(1.03);
  border-color: var(--color-copper);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.gallery-card:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 2px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dopasowanie kadru dla zdjęć pionowych, żeby nie obcinało głowy psa */
.img-pos-top {
  object-position: center 10%;
}

.img-pos-center {
  object-position: center center;
}

/* ===================================================
   LIGHTBOX (PEŁNY EKRAN)
   =================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(6, 9, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Tło zamykające modal */
.lightbox-overlay {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

/* Kontener ze zdjęciem */
.lightbox-body {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Całe, nieobcięte zdjęcie w oryginalnych proporcjach */
.lightbox-body img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  display: block;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox.active .lightbox-body img {
  transform: scale(1);
}

/* Przycisk zamknięcia [X] */
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background-color: var(--color-copper);
  border-color: var(--color-copper);
  transform: scale(1.05);
}

/* ===================================================
   CIEKAWOSTKI - UKŁAD BLOCZKOWY (SIATKA)
   =================================================== */
.trivia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.trivia-card {
  background-color: #17202a;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--color-copper);
  border-radius: 8px;
  padding: 18px 20px;
}

.trivia-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.trivia-card p {
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Stopka */
.footer {
  background-color: #090c10;
  border-top: 1px solid var(--border-color);
  color: var(--text-subtle);
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

/* RWD */
@media (max-width: 600px) {
  .section {
    padding: 24px 0;
  }

  .hero-section {
    padding: 30px 0;
  }

  .placeholder-text {
    font-size: 1.08rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
