/* Reset i podstawowe ustawienia (naprawiony selektor *) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
    font-family: 'pricedown';
    src: url('fonts/Pricedown Bl.otf') format('opentype'); /* Dodane .otf i poprawiony format */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Tło całej strony poza głównym prostokątem jest białe */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #c5d1e0;              /* Jasny tekst wewnątrz ciemnego prostokąta */
	min-height: 100vh;
    background: linear-gradient(180deg, #35507d 0px, #5e8edc 800px);
    background-repeat: no-repeat;
    background-attachment: fixed; /* opcjonalnie: sprawia, że gradient nie przewija się wraz z tekstem */
    margin: 0;
  padding: 2rem 0;
}

a {
  color: #4da6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #80c0ff;
}

/* Główny prostokąt (kontener strony) – ciemny kolor na białym tle */

.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  background-color: #002237;
  border: 1px solid #1a2f4c;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background-image: url(./img/map_sa.png);
  background-repeat: no-repeat;
  position: relative;
}


.container {
  width: 100%;
}

/* --- NAGŁÓWEK W WEWNĘTRZNYM PROSTOKĄCIE --- */
.site-header {
  position: relative; /* Wymagane, żeby linia trzymała się nagłówka */
  overflow: hidden;   /* Ukrywa to, co mogłoby wystawać poza krawędzie */
  background-color: transparent;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  /* Usuwamy stary border-bottom: 1px solid #182d47; bo zastąpimy go gradientem */
}

/* Animowany gradient jako dolna linia nagłówka */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px; /* Grubość linii (możesz zmienić np. na 2px, jeśli wolisz cieńszą) */
  border-radius: 2px;
  background: linear-gradient(90deg, #182d47, #1e3a60, #8da4c4, #182d47);
  background-size: 200% 100%;
  animation: shineGradient 3s linear infinite;
}


.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Ramka z logo i kontener tytułu */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.logo-box {
  border: 2px solid #ffffff;
  background: #08121e;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 90px;
  height: auto;
  display: block;
}

/* Nazwa strony dawski.pl */
.site-title {
  position: relative;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  font-family: 'pricedown', sans-serif; 

  letter-spacing: -0.5px;
  display: inline-block;
}

.site-title:hover {
  text-decoration: none;
  color: #ffffff;
}

@keyframes shineGradient {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

/* Przyciski nawigacyjne (PROJECTS, DOWNLOADS, ABOUT) */
.site-nav {
  display: flex;
  gap: 0.6rem;
}

.nav-btn {
  color: #ffffff !important;
  text-decoration: none;
  background-color: #0A354F;
  padding: 4px;
  border: #00101A solid 1px;
  text-transform: uppercase;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background-color: #203f6b;
  color: #ffffff !important;
  text-decoration: none;
}

.site-btn {
  background: #102035;
  border: 1px solid #1e3a60;
  color: #8da4c4;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.75rem;
}

.site-btn:hover {
  background-color: #203f6b;
  color: #ffffff !important;
  text-decoration: none;
}

/* --- UKŁAD DWUKOLUMNOWY --- */
.main-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.content-area {
  flex: 1;
  min-width: 0;
  color: #ffffff;
  line-height: 1.5em;
  overflow-x: auto;  

  background-color: rgba(20, 26, 35, 0.61);
  padding: 25px;
  line-height: 1.5em;
}

/* DOMYŚLNIE (Telefony): Pasek boczny jest w 100% ukryty */
.sidebar {
  display: none !important;
}

/* KOMPUTERY I TABLETY (od szerokości 768px): Pokazujemy panel boczny */
@media (min-width: 768px) {
  .main-layout {
    flex-direction: row;
  }

  .sidebar {
    display: block !important; /* Przywrócenie widoczności tylko na dużych ekranach */
    width: 280px;
    flex-shrink: 0;
  }
}

/* ARTYKUŁY I NEWSY */
.post-card {
background: rgba(11, 14, 17, 0.21);
  border: 1px solid #1a2f4c61;
  padding: 1.5rem;
  margin-bottom: 3.0rem;
}

.post-card:last-child {
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.post-title a {
  color: #a0b8d8;
}

.post-title a:hover {
  color: #fff;
}

.post-excerpt {
  color: #afafaf;
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.8rem;
  color: #616870;
  text-align: right;
}

.post-meta a {
  color: #8da4c4;
}

/* SIDEBAR (PASEK BOCZNY) */
.widget {
  margin-bottom: 2rem;
}

.widget h3 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
  text-align: right;
  font-weight: 700;
  border-bottom: 1px solid #182d47;
  padding-bottom: 0.3rem;
}

.widget p {
  font-size: 0.85rem;
  color: #8da4c4;
  text-align: right;
  margin-bottom: 0.8rem;
}

.widget-list {
  list-style: none;
  text-align: right;
}

.widget-list li {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

.widget-list a {
  color: #a0b8d8;
}

.widget-list a:hover {
  color: #ffffff;
}

.contact2 {
  list-style: none;
}

.contact2 a {
  color: #a0b8d8;
}

.contact2 a:hover {
  color: #ffffff;
}

.contact2 li {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

/* STOPKA */
.site-footer {
  border-top: 1px solid #182d47;
  padding: 2rem 0;
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Wyrównuje elementy do dolnej krawędzi */
  gap: 1rem;
}

.site-footer a {
  color: #7f909a;
}

.site-footer a:hover {
  color: #7f909a;
}

/* Obrazek po lewej stronie w stopce */
.footer-left img {
  height: 100px;
  object-fit: cover; /* Dba o to, by obrazek się nie zniekształcił */
  display: block;
}

/* Prawa strona stopki (Copyright + opcjonalnie odznaki) */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #607896;
}

/* Kontener na odznaki po prawej – ułożenie jeden pod drugim (pionowo) */
.badges {
  display: flex;
  flex-direction: column; /* Ustawia odznaki pionowo */
  align-items: flex-end;   /* Wyrównuje je do prawej krawędzi */
  gap: 0.4rem;             /* Odstęp pomiędzy odznakami */
  margin-bottom: 0;
}

.badge {
  color: #607896;
  font-family: monospace;
  font-size: 0.7rem;
  display: inline-block;
  white-space: nowrap;
}