/* =============================================================
   KOZBI VISION SHOTS - BLOG & PORADNIKI
   ============================================================= */
:root {
  --black: #0c0c0c;
  --dark: #141414;
  --card: #181818;
  --paper: #ededE7;
  --yellow: #ffd600;
  --muted: #a2a29d;
  --border: #ffffff18;
  --pad: clamp(20px, 5vw, 60px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: 'Barlow', Arial, sans-serif;
  line-height: 1.7;
  font-size: 17px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 100vh;
  height: auto !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--yellow);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 16px;
  line-height: 1.1;
}

h1 {
  font-size: clamp(42px, 7vw, 84px);
}

h2 {
  font-size: clamp(32px, 5vw, 52px);
  margin-top: 48px;
  color: #fff;
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
}

h3 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-top: 32px;
  color: var(--yellow);
}

p {
  margin: 0 0 22px;
}

/* Ensure vertical scrolling & override desktop horizontal canvas from style.css */
main {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: calc(100vh - 180px);
  display: block !important;
  flex-direction: column !important;
  transform: none !important;
  will-change: auto !important;
  padding-top: 80px;
}

main > section {
  position: static !important;
  height: auto !important;
  overflow: visible !important;
  flex-shrink: 1 !important;
}

/* Breadcrumbs / Back bar matching realizacje.html */
.blog-back-bar {
  padding: 24px clamp(20px, 4vw, 60px) 0;
  max-width: min(94vw, 1750px);
  margin: 0 auto;
}

.blog-back-content {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.blog-back-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s, transform .2s;
}

.blog-back-link:hover {
  color: #fff;
  transform: translateX(-4px);
}

.blog-back-sep {
  color: rgba(255, 255, 255, .25);
}

.blog-back-current {
  color: var(--muted);
}

/* Blog Hub Hero */
.blog-hub-hero {
  padding: 35px clamp(20px, 4vw, 60px) 45px;
  max-width: min(94vw, 1750px);
  margin: 0 auto;
}

.blog-hub-hero .eyebrow {
  color: var(--yellow);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .25em;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
}

.blog-hub-hero h1 {
  font-size: clamp(34px, 6vw, 88px);
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 12px 0 18px;
}

.mobile-only {
  display: none;
}

@media (max-width: 640px) {
  .mobile-only {
    display: inline;
  }
}

.blog-hub-hero p {
  font-size: 18px;
  color: #b0b0a8;
  max-width: 860px;
  line-height: 1.7;
}

/* Article Cards Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  padding: 0 clamp(20px, 4vw, 60px) 80px;
  max-width: min(94vw, 1750px);
  margin: 0 auto;
}

/* =============================================================
   COMING SOON / JUŻ NIEDŁUGO BLOCK
   ============================================================= */
.coming-soon-section {
  max-width: min(94vw, 1750px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px) 100px;
}

.coming-soon-card {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(255, 214, 0, 0.08) 0%, rgba(20, 20, 20, 0.98) 65%), #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: clamp(32px, 5vw, 60px);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease;
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--yellow);
}

.coming-soon-card:hover {
  border-color: rgba(255, 214, 0, 0.35);
}

.coming-soon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.coming-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255, 214, 0, 0.12);
  border: 1px solid rgba(255, 214, 0, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--yellow); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.coming-serial {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  color: #666;
  letter-spacing: 0.1em;
}

.coming-soon-content h2 {
  font-size: clamp(38px, 5.5vw, 68px);
  color: #fff;
  line-height: 0.95;
  margin: 0 0 20px;
  border-left: none;
  padding-left: 0;
}

.coming-soon-content h2 span {
  color: var(--yellow);
}

.coming-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: #c0c0b8;
  line-height: 1.6;
  max-width: 1000px;
  margin-bottom: 30px;
}

.coming-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.topic-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbb;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 16px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.topic-tag:hover {
  background: rgba(255, 214, 0, 0.1);
  border-color: rgba(255, 214, 0, 0.3);
  color: var(--yellow);
}

.coming-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
}

.coming-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.coming-btn.primary {
  background: var(--yellow);
  color: #101010;
  border: 1px solid var(--yellow);
}

.coming-btn.primary:hover {
  background: #fff;
  border-color: #fff;
  color: #101010;
  transform: translateY(-2px);
}

.coming-btn.secondary {
  background: transparent;
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.coming-btn.secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

.coming-btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 12px 16px;
}

.coming-btn.ghost:hover {
  color: #fff;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  transition: border-color .25s, transform .25s;
}

.article-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
}

.article-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #202020;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
}

.article-card h2 {
  font-size: 28px;
  margin: 0 0 14px;
  border: 0;
  padding: 0;
  letter-spacing: .02em;
}

.article-card h2 a:hover {
  color: var(--yellow);
}

.article-card p {
  font-size: 15px;
  color: #b5b5ad;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.read-more {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: transform .2s;
}

.read-more:hover {
  transform: translateX(4px);
}

/* Align back bar with the single article column when present */
main > .blog-back-bar:has(~ .article-container),
main > .blog-back-bar:has(~ .single-article),
.blog-back-bar.article-back-bar {
  max-width: 880px;
  padding: 24px var(--pad) 0;
}

/* =============================================================
   POJEDYNCZY ARTYKUŁ (Obsługuje .article-container i .single-article)
   ============================================================= */
.article-container,
.single-article {
  max-width: 880px;
  margin: 0 auto;
  padding: 30px var(--pad) 90px;
  width: 100%;
}

.article-header,
.article-hero {
  margin-bottom: 35px;
}

.article-header .eyebrow,
.article-hero .article-eyebrow,
.article-hero .eyebrow {
  color: var(--yellow);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .25em;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.article-header h1,
.article-hero h1 {
  margin-top: 12px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
  word-break: normal;
  overflow-wrap: normal;
  letter-spacing: 0.01em;
  color: #fff;
}

.article-lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.6;
  color: #dcdcd4;
  font-family: 'Barlow', Arial, sans-serif;
  margin: 22px 0 26px;
  font-weight: 400;
}

.article-author-bar,
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.05em;
}

.article-author-bar span,
.article-meta-bar span {
  display: inline-block;
}

.article-main-image,
.article-main-thumb {
  margin: 35px 0;
  border: 1px solid var(--border);
  background: #181818;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.article-main-image img,
.article-main-thumb img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-main-image figcaption,
.article-main-thumb figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--muted);
  background: #141414;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

.toc-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  padding: 24px 28px;
  margin: 35px 0;
  border-radius: 4px;
}

.toc-box h3,
.toc-box .toc-title {
  font-size: 22px;
  margin: 0 0 14px;
  color: #fff;
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  letter-spacing: 0.05em;
}

.toc-box ol {
  margin: 0;
  padding-left: 20px;
}

.toc-box li {
  margin-bottom: 8px;
  font-size: 15px;
}

.toc-box a {
  color: #bbb;
}

.toc-box a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.article-content,
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: #d6d6ce;
}

.article-content p,
.article-body p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.8;
  color: #d6d6ce;
}

.article-content h2,
.article-body h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 50px;
  margin-bottom: 20px;
  color: #fff;
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
  line-height: 1.15;
}

.article-content h3,
.article-body h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--yellow);
  line-height: 1.2;
}

.article-content figure,
.article-body figure {
  margin: 35px 0 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #181818;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.article-content figure img,
.article-body figure img,
.article-content > img,
.article-body > img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
}

.article-content figcaption,
.article-body figcaption {
  font-size: 13.5px;
  color: var(--muted);
  padding: 12px 18px;
  background: #141414;
  text-align: left;
  border-top: 1px solid var(--border);
  line-height: 1.5;
  margin-bottom: 0;
}

.article-content ul,
.article-body ul,
.article-content ol,
.article-body ol {
  margin: 0 0 26px;
  padding-left: 24px;
  color: #d6d6ce;
  line-height: 1.8;
}

.article-content li,
.article-body li {
  margin-bottom: 10px;
}

.article-content strong,
.article-body strong {
  color: #fff;
  font-weight: 600;
}

.article-content blockquote,
.article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: #151515;
  border-left: 4px solid var(--yellow);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #e0e0d8;
}

.tip-box {
  background: rgba(255, 214, 0, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.3);
  padding: 20px 24px;
  margin: 30px 0;
  border-radius: 4px;
}

.tip-box h4 {
  color: var(--yellow);
  font-size: 22px;
  margin: 0 0 8px;
}

.tip-box p:last-child {
  margin-bottom: 0;
}

.article-cta {
  background: linear-gradient(145deg, #1a1a15, #101010);
  border: 1px solid rgba(255, 214, 0, 0.4);
  padding: 45px 36px;
  margin: 60px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.article-cta h2 {
  border: 0;
  padding: 0;
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 14px;
}

.article-cta h2 span {
  color: var(--yellow);
}

.article-cta p {
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 18px;
  color: #ccc;
}

.article-cta .cta-btn {
  display: inline-block;
  background: var(--yellow);
  color: #101010;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 15px 36px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background .2s, color .2s, transform .2s;
}

.article-cta .cta-btn:hover {
  background: #fff;
  color: #101010;
  transform: translateY(-2px);
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 30px;
  margin-top: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  gap: 16px;
  flex-wrap: wrap;
}

.article-footer-nav a {
  color: var(--yellow);
  transition: color .2s, transform .2s;
}

.article-footer-nav a:hover {
  color: #fff;
  transform: translateX(-3px);
}

@media (max-width: 960px) {
  main {
    padding-top: 64px !important;
  }
  .blog-back-bar {
    padding: 18px var(--pad) 0;
  }
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-container {
    padding-top: 20px;
  }
  .article-cta {
    padding: 30px 20px;
  }
}


.blog-page footer, footer.blog-footer {
  max-width: min(94vw, 1750px) !important;
  margin: 0 auto !important;
}

/* Floating WhatsApp Button */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(18, 22, 18, 0.92);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 211, 102, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: #25d366;
  color: #0b0b0b;
  border-color: #25d366;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
}
.floating-wa-btn:hover .floating-wa-status {
  background: #0b0b0b;
}
.floating-wa-icon {
  color: #25d366;
  flex-shrink: 0;
  transition: color 0.2s;
}
.floating-wa-btn:hover .floating-wa-icon {
  color: #0b0b0b;
}
.floating-wa-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
  animation: pulseWaStatus 2s infinite;
}
@keyframes pulseWaStatus {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@media (max-width: 640px) {
  .floating-wa-btn {
    bottom: 18px;
    right: 18px;
    padding: 9px 14px;
    font-size: 12px;
  }
}
