/* ============================================================
   Blog section — Maora.sk
   Inherits theme tokens (--brand, fonts) from styles.css.
   ============================================================ */

.blog-page,
.blog-post-page {
  background-color: #0a0a0a;
  color: var(--neutral-200, #d4d4d4);
}

/* Hero -------------------------------------------------------- */
.blog-hero {
  padding: 140px 0 64px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 119, 46, 0.12), transparent 60%),
    #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-hero .container { max-width: 1200px; }
.blog-hero__inner { max-width: 820px; }
.blog-hero h1 {
  font-family: "Urbanist", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 16px 0 18px;
  letter-spacing: -0.02em;
}
.blog-hero p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--neutral-300, #a8a8a8);
  line-height: 1.6;
  max-width: 640px;
}

/* Breadcrumb -------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--neutral-400, #808080);
  margin: 0 0 8px;
  padding: 0;
}
.breadcrumb a {
  color: var(--neutral-300, #a8a8a8);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--brand, #f5772e); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: #fff; }

/* Filters ----------------------------------------------------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 8px;
}
.blog-filter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--neutral-200, #d4d4d4);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.blog-filter:hover {
  border-color: rgba(245, 119, 46, 0.5);
  color: #fff;
}
.blog-filter.is-active {
  background: var(--brand, #f5772e);
  border-color: var(--brand, #f5772e);
  color: #fff;
}

/* Grid + cards ----------------------------------------------- */
.blog-grid-section { padding: 56px 0 96px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.blog-card {
  position: relative;
  background: linear-gradient(180deg, #131313 0%, #0d0d0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 119, 46, 0.35);
  box-shadow:
    0 18px 40px -10px rgba(245, 119, 46, 0.18),
    0 4px 14px -4px rgba(0, 0, 0, 0.6);
}
.blog-card__cover {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(245, 119, 46, 0.35), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(245, 119, 46, 0.18), transparent 65%),
    #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 64px;
  color: rgba(245, 119, 46, 0.5);
  letter-spacing: -0.04em;
}
.blog-card__body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand, #f5772e);
  margin-bottom: 12px;
}
.blog-card h2 {
  font-family: "Urbanist", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 12px;
}
.blog-card h2 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--brand, #f5772e), var(--brand, #f5772e));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s;
}
.blog-card:hover h2 a { background-size: 100% 1px; }
.blog-card__excerpt {
  font-size: 15px;
  color: var(--neutral-300, #a8a8a8);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--neutral-400, #808080);
  margin-bottom: 14px;
}
.blog-card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand, #f5772e);
  text-decoration: none;
  transition: gap 0.2s;
}
.blog-card__cta:hover { gap: 12px; color: var(--brand, #f5772e); }
.blog-card__cta::after { content: "→"; transition: transform 0.2s; }

.blog-grid .is-hidden { display: none; }

/* Empty state */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--neutral-400, #808080);
}

/* ============================================================
   Article (blog-post) — long-form layout
   ============================================================ */
.blog-post-page main { padding-top: 0; }

.post-hero {
  padding: 120px 0 56px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 119, 46, 0.10), transparent 65%),
    #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.post-hero .container { max-width: 980px; }
.post-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand, #f5772e);
  background: rgba(245, 119, 46, 0.10);
  border: 1px solid rgba(245, 119, 46, 0.30);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 14px 0 22px;
}
.post-hero h1 {
  font-family: "Urbanist", sans-serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--neutral-400, #909090);
}
.post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-meta__item strong {
  color: var(--neutral-200, #d4d4d4);
  font-weight: 600;
}

/* Two-column layout ------------------------------------------ */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.post-content {
  font-family: "Urbanist", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--neutral-200, #d4d4d4);
}
.post-content > p:first-of-type {
  font-size: 19px;
  color: var(--neutral-100, #ebebeb);
  margin-bottom: 28px;
}
.post-content h2 {
  font-family: "Urbanist", sans-serif;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  color: #fff;
  margin: 56px 0 18px;
  line-height: 1.25;
  scroll-margin-top: 110px;
}
.post-content h3 {
  font-family: "Urbanist", sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  margin: 36px 0 14px;
  line-height: 1.35;
  scroll-margin-top: 110px;
}
.post-content p { margin: 0 0 18px; }
.post-content ul,
.post-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.post-content li { margin-bottom: 8px; }
.post-content strong { color: #fff; font-weight: 600; }
.post-content a {
  color: var(--brand, #f5772e);
  text-decoration: underline;
  text-decoration-color: rgba(245, 119, 46, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.post-content a:hover { text-decoration-color: var(--brand, #f5772e); }
.post-content blockquote {
  border-left: 3px solid var(--brand, #f5772e);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  font-style: italic;
  color: var(--neutral-100, #ebebeb);
  background: rgba(245, 119, 46, 0.04);
  border-radius: 0 8px 8px 0;
}

/* Sidebar ---------------------------------------------------- */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.sidebar-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 22px 22px;
}
.sidebar-box h3 {
  font-family: "Urbanist", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-300, #a8a8a8);
  margin: 0 0 14px;
}
.toc {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.toc li { margin-bottom: 10px; line-height: 1.4; }
.toc a {
  color: var(--neutral-200, #d4d4d4);
  text-decoration: none;
  transition: color 0.2s;
}
.toc a:hover,
.toc a.is-active { color: var(--brand, #f5772e); }

.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { margin-bottom: 12px; }
.related-list a {
  display: block;
  color: var(--neutral-100, #ebebeb);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.related-list a:hover {
  background: rgba(245, 119, 46, 0.08);
  color: var(--brand, #f5772e);
}

.sidebar-cta {
  background: linear-gradient(160deg, rgba(245, 119, 46, 0.12), rgba(245, 119, 46, 0.02));
  border-color: rgba(245, 119, 46, 0.25);
}
.sidebar-cta h3 {
  color: #fff;
  text-transform: none;
  font-size: 18px;
  letter-spacing: 0;
}
.sidebar-cta p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-200, #d4d4d4);
  margin: 0 0 16px;
}
.sidebar-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand, #f5772e);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
}
.sidebar-cta .btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Share + author --------------------------------------------- */
.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 48px 0 36px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.post-share__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-300, #a8a8a8);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--neutral-200, #d4d4d4);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.share-btn:hover {
  border-color: var(--brand, #f5772e);
  color: #fff;
  background: rgba(245, 119, 46, 0.08);
}
.share-btn.is-copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin: 28px 0 0;
}
.author-box__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand, #f5772e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.author-box__avatar img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
}
.author-box__name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.author-box__bio {
  font-size: 14px;
  color: var(--neutral-300, #a8a8a8);
  line-height: 1.55;
  margin: 0;
}

/* Final CTA at end of article -------------------------------- */
.post-final-cta {
  margin-top: 40px;
  padding: 32px 32px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(245, 119, 46, 0.18), transparent 60%),
    #131313;
  border: 1px solid rgba(245, 119, 46, 0.25);
  border-radius: 20px;
  text-align: center;
}
.post-final-cta h3 {
  font-family: "Urbanist", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.post-final-cta p {
  font-size: 15px;
  color: var(--neutral-200, #d4d4d4);
  margin: 0 0 18px;
}
.post-final-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--brand, #f5772e);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
}
.post-final-cta .btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Responsive ------------------------------------------------- */
@media (max-width: 992px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px 64px;
  }
  .post-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .post-sidebar .sidebar-box.toc-box { display: none; }
}
@media (max-width: 575px) {
  .blog-hero { padding: 110px 0 40px; }
  .post-hero { padding: 100px 0 36px; }
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-card__cover { font-size: 48px; }
  .post-content { font-size: 16px; line-height: 1.7; }
}
