/* ===========================================================
   Uzes Blog — blog.css
   Editorial layout for /blog/*
   Inherits brand tokens from styles.css (--cream, --dark, --violet, etc.)
   =========================================================== */

/* ── Blog header ── */
.blog-nav {
  background: var(--cream);
  border-bottom: 1px solid rgba(6, 13, 27, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.blog-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.blog-nav-inner .logo-img {
  height: 36px;
  width: auto;
}
.blog-nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.blog-nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}
.blog-nav-links a:hover { opacity: 1; color: var(--violet); }
.blog-nav-cta {
  background: var(--violet);
  color: white !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700 !important;
  opacity: 1 !important;
  font-size: 13px !important;
}
.blog-nav-cta:hover { background: #7B6FF0; }

/* ── Blog hero / breadcrumb ── */
.blog-breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 5vw 0;
  font-size: 13px;
  color: var(--mid);
}
.blog-breadcrumb a {
  color: var(--violet);
  text-decoration: none;
  font-weight: 600;
}
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ── Article container ── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 5vw 80px;
}

.article-header {
  margin-bottom: 32px;
  text-align: left;
}

.article-category {
  display: inline-block;
  background: rgba(162, 155, 254, 0.15);
  color: #5E54D8;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 16px;
}
.article-category:hover { background: rgba(162, 155, 254, 0.25); }

.article-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.article-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-meta-author strong {
  color: var(--dark);
  font-weight: 700;
}
.article-meta-dot { color: rgba(74, 85, 104, 0.4); }
.article-meta-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-excerpt {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mid);
  margin: 20px 0 4px;
  font-weight: 500;
  padding-left: 18px;
  border-left: 3px solid var(--violet);
}

/* ── Article body ── */
.article-body {
  font-size: 17px;
  line-height: 1.78;
  color: var(--dark);
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-bottom: 22px;
}

.article-body h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 48px 0 18px;
  color: var(--dark);
  position: relative;
  padding-bottom: 12px;
}
.article-body h2::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--violet);
  border-radius: 4px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--dark);
}

.article-body strong { color: var(--dark); font-weight: 700; }
.article-body em { font-style: italic; }

.article-body ul,
.article-body ol {
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 10px;
}
.article-body li::marker {
  color: var(--violet);
  font-weight: 700;
}

.article-body a {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-color: rgba(162, 155, 254, 0.4);
  text-underline-offset: 3px;
  font-weight: 600;
}
.article-body a:hover { text-decoration-color: var(--violet); }

.article-body blockquote {
  border-left: 4px solid var(--violet);
  background: rgba(162, 155, 254, 0.07);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 4px;
  font-style: italic;
  color: var(--mid);
}

/* Highlight callout boxes */
.callout {
  background: rgba(162, 155, 254, 0.08);
  border: 1px solid rgba(162, 155, 254, 0.25);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.65;
}
.callout strong { color: #5E54D8; }
.callout.warn { background: rgba(255, 183, 77, 0.1); border-color: rgba(255, 183, 77, 0.35); }
.callout.warn strong { color: #B36A00; }

/* ── AdSense slot styling (placeholder until ads load) ── */
.ad-slot {
  display: block;
  margin: 40px auto;
  text-align: center;
  min-height: 100px;
  border-radius: 10px;
}
.ad-slot-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(74, 85, 104, 0.5);
  margin-bottom: 6px;
}

/* ── Article footer: CTA + Related ── */
.article-cta {
  margin: 60px 0 40px;
  background: linear-gradient(135deg, var(--violet) 0%, #7B6FF0 100%);
  color: white;
  padding: 36px 30px;
  border-radius: 20px;
  text-align: center;
}
.article-cta h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.article-cta p {
  font-size: 15px;
  opacity: 0.95;
  margin-bottom: 22px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.article-cta a {
  display: inline-block;
  background: white;
  color: var(--violet);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* ── Related articles ── */
.related-section {
  margin: 60px 0 0;
  border-top: 1px solid rgba(6, 13, 27, 0.08);
  padding-top: 40px;
}
.related-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
  letter-spacing: -0.4px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.related-card {
  background: white;
  border: 1px solid rgba(6, 13, 27, 0.08);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(6, 13, 27, 0.08);
  border-color: rgba(162, 155, 254, 0.4);
}
.related-card .category {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--violet);
  margin-bottom: 8px;
}
.related-card h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
}

/* ══════════════════════════════════════════════════════════
   Blog INDEX page
   ══════════════════════════════════════════════════════════ */
.blog-hero {
  background: linear-gradient(180deg, var(--cream) 0%, #F6E4BD 100%);
  padding: 80px 5vw 60px;
  text-align: center;
}
.blog-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.blog-hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 18px;
}
.blog-hero h1 em {
  font-style: normal;
  color: var(--violet);
  background: linear-gradient(120deg, var(--violet), #7B6FF0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-hero p {
  font-size: 18px;
  color: var(--mid);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* Category chips */
.category-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.category-chip {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: white;
  border: 1.5px solid rgba(162, 155, 254, 0.35);
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.category-chip:hover,
.category-chip.active {
  background: var(--violet);
  color: white;
  border-color: var(--violet);
  transform: translateY(-1px);
}

.posts-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 5vw 100px;
}
.posts-section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 30px;
  color: var(--dark);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.post-card {
  background: white;
  border: 1px solid rgba(6, 13, 27, 0.08);
  border-radius: 18px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(6, 13, 27, 0.1);
  border-color: rgba(162, 155, 254, 0.5);
}
.post-card .category {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--violet);
  align-self: flex-start;
}
.post-card h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark);
  letter-spacing: -0.3px;
}
.post-card .excerpt {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.55;
  flex: 1;
}
.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════════
   Footer (reused on all blog pages)
   ══════════════════════════════════════════════════════════ */
.blog-footer {
  background: var(--dark);
  color: rgba(253, 240, 213, 0.85);
  padding: 56px 5vw 32px;
  margin-top: 80px;
}
.blog-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.blog-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.blog-footer-brand img { height: 36px; margin-bottom: 12px; }
.blog-footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.7;
  max-width: 340px;
}
.blog-footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--violet-light);
  margin-bottom: 14px;
  font-weight: 700;
}
.blog-footer-col ul { list-style: none; }
.blog-footer-col li { margin-bottom: 8px; }
.blog-footer-col a {
  color: rgba(253, 240, 213, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.blog-footer-col a:hover { color: var(--violet-light); }
.blog-footer-bottom {
  border-top: 1px solid rgba(253, 240, 213, 0.1);
  padding-top: 22px;
  font-size: 12px;
  opacity: 0.6;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .blog-nav-links { gap: 14px; }
  .blog-nav-links a:not(.blog-nav-cta) { display: none; }
  .article-body { font-size: 16px; line-height: 1.7; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-footer-top { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 500px) {
  .article-cta { padding: 28px 22px; }
  .article-cta h3 { font-size: 19px; }
}
