/* ============================================
   XINGKE · ABC-RC · BLOG styles
   Spójne ze stroną główną (industrialny akcent pomarańczowy)
   ============================================ */

/* ========== BLOG INDEX HERO ========== */
.blog-hero {
  background: #0b0b0d;
  color: #ededea;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #262628;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,106,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  color: #ff6a00;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-hero-label::before {
  content: '';
  width: 40px; height: 1px;
  background: #ff6a00;
}
.blog-hero h1 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.blog-hero h1 strong { color: #ff6a00; font-weight: 800; }
.blog-hero p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: #b0b0ad;
  max-width: 700px;
  line-height: 1.55;
}

/* ========== POST GRID (na index bloga) ========== */
.blog-grid-section {
  background: #f4f3ee;
  padding: 70px 0 100px;
  min-height: 60vh;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.blog-card {
  background: #fff;
  border: 1px solid #d4d2ca;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  overflow: hidden;
  position: relative;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: #ff6a00;
}
.blog-card-media {
  height: 200px;
  background: linear-gradient(135deg, #0b0b0d 0%, #18181c 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #ff6a00;
}
.blog-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(255,106,0,0.18) 49%, rgba(255,106,0,0.18) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.03) 49%, rgba(255,255,255,0.03) 51%, transparent 52%);
  background-size: 30px 30px;
}
.blog-card-media-label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 60px;
  font-weight: 800;
  color: rgba(255,106,0,0.35);
  line-height: 1;
  letter-spacing: -0.04em;
}
.blog-card-category {
  position: absolute;
  bottom: 16px; left: 16px;
  background: #ff6a00;
  color: #0b0b0d;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.blog-card-body {
  padding: 26px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #5a5a5c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-card-meta .dot { color: #c4c2ba; }
.blog-card-title {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #18181a;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.blog-card-title a { color: #18181a; text-decoration: none; transition: color 0.2s; }
.blog-card-title a:hover { color: #ff6a00; }
.blog-card-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: #3a3a3c;
  margin-bottom: 18px;
  flex: 1;
}
.blog-card-link {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 12px;
  color: #ff6a00;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding-top: 14px;
  border-top: 1px solid #e8e6df;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.blog-card:hover .blog-card-link { gap: 14px; }

/* ========== POST PAGE ========== */
.post-header {
  background: #0b0b0d;
  color: #ededea;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.post-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,106,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,106,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%);
  pointer-events: none;
}
.post-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--pad, 32px);
  position: relative;
  z-index: 2;
}
.post-breadcrumb {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #8a8a88;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.post-breadcrumb a { color: #b0b0ad; text-decoration: none; transition: color 0.2s; }
.post-breadcrumb a:hover { color: #ff6a00; }
.post-breadcrumb .sep { color: #5a5a5c; margin: 0 10px; }
.post-category-tag {
  display: inline-block;
  background: rgba(255,106,0,0.15);
  color: #ff6a00;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,106,0,0.3);
  margin-bottom: 22px;
}
.post-title {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 22px;
}
.post-excerpt {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: #b0b0ad;
  max-width: 720px;
  margin-bottom: 30px;
}
.post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #8a8a88;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 24px;
  border-top: 1px solid #262628;
}
.post-meta .dot { color: #5a5a5c; }
.post-meta strong { color: #ededea; font-weight: 500; }

/* ========== POST CONTENT ========== */
.post-body {
  background: #f4f3ee;
  padding: 70px 0 90px;
}
.post-body-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad, 32px);
}
.post-content {
  font-family: var(--font-body, 'Manrope'), system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a2c;
}
.post-content > p {
  margin: 0 0 24px;
}
.post-content > p:first-of-type::first-letter {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 64px;
  font-weight: 800;
  float: left;
  line-height: 0.9;
  margin: 6px 14px 0 0;
  color: #ff6a00;
}
.post-content h2 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #18181a;
  margin: 52px 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid #d4d2ca;
  position: relative;
}
.post-content h2::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: #ff6a00;
}
.post-content h3 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #18181a;
  margin: 40px 0 16px;
}
.post-content ul,
.post-content ol {
  margin: 0 0 24px;
  padding-left: 22px;
}
.post-content li {
  margin-bottom: 10px;
  padding-left: 6px;
}
.post-content li > p {
  margin: 0 0 8px;
}
.post-content li > p:first-child { margin-top: 0; }
.post-content li > p:last-child { margin-bottom: 0; }
.post-content ul li::marker {
  color: #ff6a00;
  font-weight: 700;
}
.post-content strong {
  color: #18181a;
  font-weight: 700;
}
.post-content em {
  color: #3a3a3c;
  font-style: italic;
}
.post-content a {
  color: #c94a00;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201,74,0,0.3);
  transition: all 0.2s;
  font-weight: 500;
}
.post-content a:hover {
  color: #ff6a00;
  text-decoration-color: #ff6a00;
}
.post-content blockquote {
  margin: 28px 0;
  padding: 22px 28px;
  background: #fff;
  border-left: 4px solid #ff6a00;
  color: #3a3a3c;
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.6;
}
.post-content code {
  background: #e8e6df;
  padding: 2px 7px;
  font-family: var(--font-mono, monospace);
  font-size: 0.92em;
  border-radius: 2px;
  color: #c94a00;
}
.post-content pre {
  background: #0b0b0d;
  color: #ededea;
  padding: 24px 28px;
  margin: 28px 0;
  overflow-x: auto;
  border-left: 4px solid #ff6a00;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  line-height: 1.6;
}
.post-content pre code { background: transparent; color: inherit; padding: 0; }
.post-content hr {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6a00 0%, transparent 100%);
  margin: 46px 0;
}
.post-content img {
  max-width: 100%;
  margin: 28px 0;
  border: 1px solid #d4d2ca;
}

/* ========== POST TAGS ========== */
.post-tags {
  margin-top: 50px;
  padding: 26px 0;
  border-top: 2px solid #d4d2ca;
  border-bottom: 1px solid #e8e6df;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.post-tags-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #5a5a5c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 6px;
}
.post-tag {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #d4d2ca;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #3a3a3c;
  text-decoration: none;
  transition: all 0.2s;
}
.post-tag:hover {
  background: #ff6a00;
  color: #0b0b0d;
  border-color: #ff6a00;
}

/* ========== POST CTA (końcówka artykułu) ========== */
.post-cta {
  margin: 60px 0 0;
  padding: 40px;
  background: linear-gradient(135deg, #0b0b0d 0%, #18181c 100%);
  color: #fff;
  border-left: 6px solid #ff6a00;
}
.post-cta-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #ff6a00;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-cta h3 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.post-cta p {
  color: #b0b0ad;
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.post-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========== RELATED POSTS ========== */
.related-posts {
  background: #e8e6df;
  padding: 70px 0 90px;
  border-top: 1px solid #d4d2ca;
}
.related-posts h2 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: #18181a;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.related-posts h2 strong { color: #ff6a00; }

/* ========== PAGINATION na indexie ========== */
.blog-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.blog-filter {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid #d4d2ca;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #3a3a3c;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}
.blog-filter:hover,
.blog-filter.active {
  background: #ff6a00;
  color: #0b0b0d;
  border-color: #ff6a00;
}

/* ========== POST NAV (prev/next) ========== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav-link {
  display: block;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #d4d2ca;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
}
.post-nav-link:hover {
  border-color: #ff6a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,106,0,0.12);
}
.post-nav-link.next { text-align: right; }
.post-nav-dir {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: #ff6a00;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}
.post-nav-title {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #18181a;
  line-height: 1.2;
}

/* ========== EMPTY STATE ========== */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: #5a5a5c;
}
.blog-empty-icon {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 80px;
  font-weight: 800;
  color: #d4d2ca;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.blog-empty h3 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 24px;
  color: #3a3a3c;
  margin-bottom: 10px;
}

/* ========== READING PROGRESS BAR ========== */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: #ff6a00;
  width: 0%;
  z-index: 200;
  transition: width 0.1s;
  pointer-events: none;
}

/* ============ ARTICLE COVER IMAGE ============ */
.post-cover {
  background: #f4f3ee;
  padding: 0;
}
.post-cover-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--pad, 32px);
  transform: translateY(-40px);
}
.post-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid #d4d2ca;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: block;
}

/* Blog card image (zamiast literowego placeholdera) */
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
