/*
Theme Name: WłasnaHala
Theme URI: https://wlasnahala.pl
Author: WłasnaHala.pl
Description: Motyw bloga dopasowany do platformy WłasnaHala.pl
Version: 1.0
*/

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

:root {
  --ink:    #1a1f24;
  --warm:   #f7f3ee;
  --cream:  #ede8e0;
  --orange: #d4541a;
  --orange-l:#e8661f;
  --mist:   #7a8898;
  --border: #d8d0c4;
  --white:  #fdfaf6;
  --steel:  #2c4a6e;
}

body {
  background: var(--warm);
  color: var(--ink);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

/* ── NAV ── */
.site-nav {
  position: sticky; top:0; z-index:100;
  background: rgba(247,243,238,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex; align-items:center;
  padding: 0 48px;
  gap: 0;
}
.nav-logo {
  margin-right: auto;
  text-decoration: none;
}
.nav-logo img { height: 36px; width:auto; display:block; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight:700;
  color: var(--ink);
}
.nav-logo-text span { color: var(--orange); }

.nav-links {
  list-style:none;
  display:flex; align-items:center; gap:8px;
}
.nav-links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 14px; font-weight:500;
  padding: 8px 14px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.current { color: var(--ink); font-weight:600; }
.nav-links .nav-cta {
  background: var(--orange);
  color: white !important;
  font-weight:700 !important;
  padding: 9px 22px !important;
  margin-left: 8px;
  transition: background 0.2s !important;
}
.nav-links .nav-cta:hover { background: var(--orange-l) !important; }

/* ── BLOG HEADER ── */
.blog-hero {
  background: var(--ink);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size:60px 60px;
}
.blog-hero::after {
  content:'PORADNIKI';
  position:absolute; right:-20px; top:-20px;
  font-family:'Playfair Display',serif;
  font-size:160px; font-weight:900;
  color:rgba(255,255,255,0.03);
  line-height:1; pointer-events:none;
}
.blog-hero-inner { position:relative; z-index:1; max-width:680px; }
.blog-eyebrow {
  font-size:11px; font-weight:700;
  letter-spacing:3px; text-transform:uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px,5vw,56px);
  font-weight:900; line-height:1.1;
  letter-spacing:-1px;
  color: white;
  margin-bottom: 16px;
}
.blog-hero p {
  font-size:17px; color:rgba(255,255,255,0.5);
  font-weight:300; line-height:1.7;
}

/* ── BLOG GRID (archiwum) ── */
.blog-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 48px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* featured — pierwszy post większy */
.posts-grid .post-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.posts-grid .post-card:first-child .post-img {
  height: auto;
  min-height: 280px;
}
.posts-grid .post-card:first-child .post-body {
  padding: 36px;
  display:flex; flex-direction:column; justify-content:center;
}
.posts-grid .post-card:first-child h2 { font-size:26px; }

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,0.08); }

.post-img {
  height: 200px;
  background: var(--steel);
  background-size: cover;
  background-position: center;
  position:relative;
}
.post-img::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.25));
}

.post-body { padding: 24px; }
.post-cat {
  font-size:10px; font-weight:700;
  letter-spacing:2px; text-transform:uppercase;
  color: var(--orange); margin-bottom:10px;
  display:block;
}
.post-card h2 {
  font-family: 'Playfair Display', serif;
  font-size:18px; font-weight:700;
  color: var(--ink); line-height:1.3;
  margin-bottom:10px;
}
.post-excerpt {
  font-size:14px; color:var(--mist);
  line-height:1.6; margin-bottom:16px;
}
.post-excerpt a,
.post-excerpt p,
.post-excerpt span,
.post-excerpt * {
  color: var(--mist) !important;
  text-decoration: none !important;
  font-size: 14px !important;
}
.posts-grid a { color: inherit; text-decoration: none; }
.post-meta {
  display:flex; align-items:center; gap:16px;
  font-size:12px; color:var(--mist);
  border-top:1px solid var(--border);
  padding-top:14px; margin-top:auto;
}
.post-meta .read-more {
  margin-left:auto;
  font-size:12px; font-weight:700;
  color:var(--orange); text-decoration:none;
}
.post-meta .read-more::after { content:' →'; }

/* ── PAGINATION ── */
.pagination {
  display:flex; justify-content:center; gap:8px;
  margin-top:40px;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  font-size:14px; font-weight:600;
  color: var(--mist); text-decoration:none;
  transition: all 0.2s;
  background: var(--white);
}
.pagination a:hover { border-color:var(--ink); color:var(--ink); }
.pagination .current {
  background:var(--orange); border-color:var(--orange);
  color:white;
}

/* ── SINGLE POST ── */
.post-hero {
  background: var(--ink);
  padding: 60px 48px 80px;
  position:relative; overflow:hidden;
}
.post-hero::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size:60px 60px;
}
.post-hero-inner { position:relative; z-index:1; max-width:760px; margin:0 auto; }
.post-hero .post-cat {
  color:var(--orange); font-size:11px; font-weight:700;
  letter-spacing:2px; text-transform:uppercase;
  margin-bottom:16px; display:block;
}
.post-hero h1 {
  font-family:'Playfair Display',serif;
  font-size:clamp(30px,4vw,48px); font-weight:900;
  line-height:1.1; letter-spacing:-1px;
  color:white; margin-bottom:20px;
}
.post-hero-meta {
  display:flex; gap:20px; align-items:center;
  font-size:13px; color:rgba(255,255,255,0.45);
}
.post-hero-meta .dot { color:rgba(255,255,255,0.2); }

/* featured image */
.post-featured-img {
  max-width:900px; margin:-40px auto 0;
  position:relative; z-index:2;
  padding:0 48px;
}
.post-featured-img img {
  width:100%; display:block;
  box-shadow:0 24px 48px rgba(0,0,0,0.2);
}

/* article content */
.post-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 48px;
}

.post-content h2 {
  font-family:'Playfair Display',serif;
  font-size:28px; font-weight:700;
  color:var(--ink); line-height:1.2;
  margin: 40px 0 16px;
  letter-spacing:-0.5px;
}
.post-content h3 {
  font-size:20px; font-weight:700;
  color:var(--ink); margin:32px 0 12px;
}
.post-content p {
  font-size:17px; line-height:1.8;
  color:#2a3040; margin-bottom:20px;
}
.post-content ul, .post-content ol {
  margin: 0 0 20px 24px;
}
.post-content li {
  font-size:16px; line-height:1.7;
  color:#2a3040; margin-bottom:8px;
}
.post-content strong { font-weight:700; color:var(--ink); }
.post-content a {
  color:var(--orange); text-decoration:none;
  border-bottom:1px solid rgba(212,84,26,0.3);
  transition:border-color 0.2s;
}
.post-content a:hover { border-color:var(--orange); }

/* blockquote */
.post-content blockquote {
  border-left:3px solid var(--orange);
  padding:16px 24px;
  background:rgba(212,84,26,0.05);
  margin:24px 0;
  font-size:18px; font-style:italic;
  color:var(--steel);
}

/* table */
.post-content table {
  width:100%; border-collapse:collapse; margin:24px 0;
  font-size:15px;
}
.post-content th {
  background:var(--ink); color:white;
  padding:10px 14px; text-align:left;
  font-size:12px; font-weight:700;
  letter-spacing:1px; text-transform:uppercase;
}
.post-content td {
  padding:10px 14px;
  border-bottom:1px solid var(--border);
}
.post-content tr:nth-child(even) td { background:var(--warm); }

/* info box */
.post-content .info-box {
  background:rgba(44,74,110,0.06);
  border-left:3px solid var(--steel);
  padding:16px 20px; margin:24px 0;
  font-size:15px; line-height:1.7;
}

/* ── CTA BANNER w artykule ── */
.post-cta {
  background:var(--ink);
  padding:32px 36px;
  margin:40px 0;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.post-cta-text h3 {
  font-family:'Playfair Display',serif;
  font-size:22px; font-weight:900;
  color:white; margin-bottom:6px;
}
.post-cta-text p { font-size:14px; color:rgba(255,255,255,0.5); }
.post-cta a {
  background:var(--orange); color:white;
  padding:12px 24px;
  font-size:14px; font-weight:700;
  text-decoration:none; white-space:nowrap;
  transition:background 0.2s; flex-shrink:0;
  border-bottom:none !important;
}
.post-cta a:hover { background:var(--orange-l); }

/* ── RELATED POSTS ── */
.related-posts {
  border-top:1px solid var(--border);
  padding-top:40px; margin-top:40px;
}
.related-posts h3 {
  font-family:'Playfair Display',serif;
  font-size:22px; font-weight:900;
  color:var(--ink); margin-bottom:24px;
}
.related-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
}

/* ── FOOTER ── */
.site-footer {
  background:var(--ink);
  padding:48px;
  margin-top:80px;
}
.footer-inner {
  max-width:1140px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:20px;
}
.footer-logo {
  font-family:'Playfair Display',serif;
  font-size:18px; font-weight:700;
  color:white; text-decoration:none;
}
.footer-logo span { color:var(--orange); }
.footer-links {
  list-style:none; display:flex; gap:20px;
}
.footer-links a {
  font-size:13px; color:rgba(255,255,255,0.4);
  text-decoration:none; transition:color 0.2s;
}
.footer-links a:hover { color:white; }
.footer-copy { font-size:12px; color:rgba(255,255,255,0.25); }

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .site-nav { padding:0 20px; }
  .nav-links { display:none; }
  .blog-hero, .post-hero, .blog-container, .post-content-wrap { padding-left:20px; padding-right:20px; }
  .posts-grid { grid-template-columns:1fr; }
  .posts-grid .post-card:first-child { grid-template-columns:1fr; }
  .posts-grid .post-card:first-child .post-img { min-height:200px; }
  .related-grid { grid-template-columns:1fr; }
  .post-cta { flex-direction:column; text-align:center; }
  .post-featured-img { padding:0 20px; }
  .site-footer { padding:32px 20px; }
}
