body {
  background: url("/assets/img/background.jpg") repeat;
  background-size: 400px auto;
  min-height: 100vh;
}

/* "okno" */
#main-container {
  width: 960px;
  margin: 25px auto;
  min-height: 90vh;

  /* Głęboki, zgaszony niebiesko-szary (Slate Blue) pasujący do cegły */
  background-color: #3b5266;
  border: 3px outset #5c738a;
  box-shadow: inset 1px 1px 0 #758c9f, inset -1px -1px 0 #1e2f42;

  padding: 10px 15px;
  /* Zmiana domyślnego koloru tekstu na jaśniejszy, by był czytelny na ciemniejszym tle */
  color: #e1e8ed;

  /* FIX: równe wcięcia po bokach w całym layoucie (wlicza border/padding w szerokość) */
  box-sizing: border-box;
}

/* FIX: konsekwentne liczenie szerokości dla elementów wewnątrz kontenera */
#main-container *,
#main-container *::before,
#main-container *::after {
  box-sizing: border-box;
}

/* title bar */
.title-bar {
  height: 28px;
  /* Ciemny granat wpadający w czerń, nawiązujący do cieni na cegłach */
  background: #152233;
  color: #e1e8ed;
  border: 2px inset #2a3f54;
  padding: 4px 8px;
  margin-bottom: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Tahoma", Arial, sans-serif;
  font-size: 13px;
}

.title-bar-controls span {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  /* Lekko przygaszone szarości przycisków */
  background: #a9a9a9;
  color: #111;
  border: 2px outset #d3d3d3;
  margin-left: 4px;
  font-weight: bold;
}

/* hero */
.hero-section {
  text-align: center;
  padding: 10px 0 8px 0;
  margin-bottom: 10px;
  border: 2px inset #2a3f54;
  /* Przyciemniona warstwa zamiast rozjaśniającej */
  background: rgba(0, 0, 0, 0.2);
}

.site-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 36px;
  letter-spacing: 5px;
  text-transform: uppercase;
  /* Jasny kremowo-niebieski, czarny byłby niewidoczny */
  color: #f0f4f8;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8); /* Dodany cień dla lepszej czytelności */
}

.site-title .title-line {
  display: block;
}

.subtitle {
  margin-top: 5px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}

/* counter */
.counter-box {
  margin: 10px auto 14px auto;
  width: fit-content;
  padding: 8px 12px;
  font-family: "Courier New", Courier, monospace;
  background: #0d1621;
  border: 2px inset #1e2f42;
  /* Zmieniony z zielonego na "lodowy" jasnoniebieski, lepiej pasuje do palety */
  color: #66ccff;
}

.counter-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  text-align: center;
  color: #aaddff;
}

.counter-value {
  display: block;
  font-size: 22px;
  letter-spacing: 3px;
  text-align: center;
}

/* posts */
.feed {
  margin-top: 10px;
}

.post-entry {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #2a3f54;
  /* Przyciemnione tło posta dla lepszego kontrastu czytania */
  background: rgba(0, 0, 0, 0.25);
}

.post-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.post-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  margin-bottom: 8px;
  color: #aaddff; /* Jaśniejszy meta-tekst */
}

.post-thumb {
  float: left;
  width: 110px;
  height: 110px;
  object-fit: cover;
  margin: 0 10px 8px 0;
  background: #000;
  border: 3px inset #2a3f54;
}

.post-desc {
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.embed-frame {
  width: 100%;
  background: #000;
  border: 3px inset #2a3f54;
}

.separator {
  border: 0;
  margin: 10px 0;
  border-top: 1px dashed #2a3f54;
}

/* construction */
.construction-notice {
  margin: 10px 0 15px 0;
  padding: 10px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  border: 2px inset #2a3f54;
  /* Lekko przygaszony żółty/pomarańczowy, żeby nie "krzyczał" */
  background: rgba(200, 150, 0, 0.15);
  color: #f0f4f8;
}

.construction-sub {
  font-size: 12px;
  color: #cbd5e1;
}

/* footer */
.site-footer {
  margin-top: 20px;
  padding: 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-align: center;
  border: 2px inset #2a3f54;
  background: rgba(0, 0, 0, 0.2);
}

.site-footer .small {
  font-size: 11px;
  color: #cbd5e1;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* ─────────────────────────────────────────
   RESPONSIVE (FAZA 7)
   ───────────────────────────────────────── */

img, iframe {
  max-width: 100%;
}

iframe {
  display: block;
}

/* 1024–1200 */
@media (max-width: 1200px) {
  #main-container {
    margin: 15px auto;
  }
}

/* 768–1024 */
@media (max-width: 1024px) {
  #main-container {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 10px;
  }

  /* vlepki off na tabletach */
  #graffiti-layer {
    display: none;
  }

  body {
    background-size: 600px auto;
  }

  .post-thumb {
    width: 90px;
    height: 90px;
  }
}

/* <768 (mobile) */
@media (max-width: 768px) {
  #main-container {
    width: calc(100% - 10px);
    margin: 8px auto;
    padding: 6px;
  }

  .title-bar {
    font-size: 12px;
    padding: 4px 6px;
  }

  .title-bar-controls span {
    width: 16px;
    height: 16px;
    line-height: 16px;
  }

  .site-title {
    font-size: 28px;
    letter-spacing: 3px;
  }

  .counter-box {
    width: 100%;
  }

  /* thumb przestaje floatować */
  .post-thumb {
    float: none;
    display: block;
    margin: 0 auto 8px auto;
    width: 140px;
    height: 140px;
  }

  .post-desc {
    font-size: 13px;
    line-height: 1.4;
  }

  .embed-frame {
    width: 100%;
  }

  /* glitch-nav ciaśniej */
  .glitch-nav .nav-slice {
    height: 30px;
  }
  .glitch-nav .nav-text {
    font-size: 12px;
    letter-spacing: 1px;
  }
}