/* ============================================================
   ZMIENNE – dopasowane do motywu czarno-złotego
============================================================ */
:root {
  --bg:        #ffffff;
  --surface:   #1a1a1a;
  --border:    #2a2a2a;
  --gold:      #f0a500;
  --gold-dark: #c98a00;
  --red:       #e63329;
  --text:      #f0ede8;
  --muted:     #888888;
  --radius:    8px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ============================================================
   RESET SEKCJI BLOGA
============================================================ */
.blog-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.blog-wrapper {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  padding: 0 0 80px;
}

/* ============================================================
   HERO – nagłówek sekcji bloga
============================================================ */
.blog-hero {
  background: var(--surface);
  border-bottom: 2px solid var(--gold);
  padding: 60px 20px 50px;
  text-align: center;
}

.blog-hero__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.blog-hero__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 16px;
}

.blog-hero__title span {
  color: var(--gold);
}

.blog-hero__desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   KONTENER GŁÓWNY
============================================================ */
.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LISTA ARTYKUŁÓW
============================================================ */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Wyróżniony pierwszy artykuł */
.blog-post--featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.blog-post--featured:hover {
  border-top-color: var(--red);
  transform: translateY(-3px);
}

.blog-post--featured .post-thumb {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.blog-post--featured .post-thumb-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-post--featured .post-thumb-placeholder svg {
  opacity: 0.2;
  width: 64px;
  height: 64px;
}

.blog-post--featured .post-body {
  padding: 28px 32px 32px;
}

/* Zwykłe artykuły */
.blog-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.blog-post:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.blog-post .post-thumb {
  width: 200px;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

.blog-post .post-thumb-placeholder {
  width: 200px;
  min-height: 160px;
  background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-post .post-thumb-placeholder svg {
  opacity: 0.2;
  width: 40px;
  height: 40px;
}

.blog-post .post-body {
  padding: 24px 28px;
}

@media (max-width: 600px) {
  .blog-post {
    grid-template-columns: 1fr;
  }
  .blog-post .post-thumb,
  .blog-post .post-thumb-placeholder {
    width: 100%;
    height: 180px;
  }
}

/* ============================================================
   ELEMENTY KARTY ARTYKUŁU
============================================================ */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-cat {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  text-decoration: none;
}

.post-cat:hover {
  background: var(--gold-dark);
}

.post-date {
  font-size: 12px;
  color: var(--muted);
}

.post-title {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-post--featured .post-title {
  font-size: clamp(20px, 3vw, 26px);
}

.blog-post .post-title {
  font-size: 17px;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.post-title a:hover {
  color: var(--gold);
}

.post-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 8px 18px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.post-readmore:hover {
  background: var(--gold);
  color: #000;
}

/* ============================================================
   PAGINACJA
============================================================ */
.blog-pagination {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  justify-content: center;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  background: var(--surface);
}

.blog-pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.blog-pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

/* ============================================================
   SIDEBAR
============================================================ */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-widget__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Widget CTA */
.widget-cta {
  border-top-color: var(--red);
  text-align: center;
}

.widget-cta__icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.widget-cta__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.widget-cta__btn {
  display: block;
  background: var(--gold);
  color: #000;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.widget-cta__btn:hover {
  background: var(--gold-dark);
}

/* Widget kategorie */
.widget-cats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-cats li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.widget-cats li:last-child a {
  border-bottom: none;
}

.widget-cats li a:hover {
  color: var(--gold);
}

.widget-cats li a span {
  background: var(--border);
  color: var(--muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Widget ostatnie posty */
.widget-recent {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.widget-recent li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.widget-recent li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.widget-recent a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.widget-recent a:hover {
  color: var(--gold);
}

.widget-recent .date {
  font-size: 11px;
  color: var(--muted);
}