/* ============================================================
   NOVAQORE BLOG — blog.css
   Blog-specific additions only. All design tokens, nav, footer,
   buttons, and card styles come from the shared /assets/css/style.css.
   ============================================================ */

/* ── Blog archive hero ────────────────────────────────────── */
.blog-archive-hero {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.blog-archive-hero .section-heading {
  margin-bottom: var(--sp-4);
}

/* ── Post grid ────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}

/* ── Post card ────────────────────────────────────────────── */
.post-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.post-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--clr-slate-100);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.04);
}

.post-card__body {
  padding: var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.post-card__cat {
  align-self: flex-start;
  font-size: var(--text-xs);
  background: rgba(37, 99, 235, .1);
  color: var(--clr-blue);
  border-radius: var(--radius-full);
  padding: .2em .75em;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: background var(--t-fast);
}

.post-card__cat:hover {
  background: rgba(37, 99, 235, .18);
}

.post-card__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  line-height: var(--lh-snug);
  margin: 0;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

.post-card__title a:hover {
  color: var(--clr-blue);
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--clr-muted);
  line-height: var(--lh-body);
  flex: 1;
  max-width: none;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--clr-muted);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border);
}

.post-card__sep {
  color: var(--clr-slate-300);
}

/* ── Blog empty state ─────────────────────────────────────── */
.blog-empty {
  padding-block: var(--sp-16);
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-12);
}

.pagination .page-numbers {
  display: inline-flex;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination .page-numbers li a,
.pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding-inline: var(--sp-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-slate-700);
  border: 1px solid var(--clr-border);
  background: var(--clr-white);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.pagination .page-numbers li a:hover {
  background: var(--clr-slate-100);
  color: var(--clr-navy);
  border-color: var(--clr-slate-300);
}

.pagination .page-numbers li span.current {
  background: var(--clr-blue);
  color: var(--clr-white);
  border-color: var(--clr-blue);
}

.pagination .page-numbers li .dots {
  border: none;
  background: none;
  color: var(--clr-muted);
}

/* ── Post hero ────────────────────────────────────────────── */
.post-hero {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.post-hero__inner {
  max-width: 800px;
}

.post-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.post-hero__cat {
  display: inline-flex;
  align-items: center;
  padding: .25em .85em;
  background: rgba(139, 92, 246, .18);
  border: 1px solid rgba(139, 92, 246, .35);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: #c4b5fd;
  text-decoration: none;
  letter-spacing: .03em;
  transition: background var(--t-fast);
}

.post-hero__cat:hover {
  background: rgba(139, 92, 246, .28);
}

.post-hero__sep {
  color: rgba(255, 255, 255, .25);
  font-size: var(--text-xs);
}

.post-hero__date,
.post-hero__read-time {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .55);
}

.post-hero__title {
  font-size: clamp(1.875rem, 4vw + .5rem, 3.25rem);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  line-height: var(--lh-tight);
  margin: 0;
  max-width: 22ch;
}

/* ── Post body section ────────────────────────────────────── */
.post-body-section {
  padding-top: var(--sp-10);
}

/* ── Featured image ───────────────────────────────────────── */
.post-featured-img {
  margin-bottom: var(--sp-8);
}

.post-featured-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

/* ── Single post layout ───────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: start;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--sp-16);
  }
}

/* ── Post content typography ──────────────────────────────── */
.post-content {
  max-width: 72ch;
}

@media (min-width: 1024px) {
  .post-content {
    max-width: none;
  }
}

.post-content h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
  line-height: var(--lh-snug);
}

.post-content h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.post-content h4 {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.post-content p {
  margin-bottom: var(--sp-5);
  color: var(--clr-text);
  line-height: var(--lh-body);
  max-width: none;
}

.post-content a {
  color: var(--clr-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

.post-content a:hover {
  color: var(--clr-cta-hover);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-6);
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: var(--sp-2);
  color: var(--clr-text);
  line-height: var(--lh-body);
}

.post-content blockquote {
  border-left: 4px solid var(--clr-blue);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0;
  background: rgba(37, 99, 235, .05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.post-content blockquote p {
  font-size: var(--text-lg);
  color: var(--clr-navy);
  font-style: italic;
  margin-bottom: 0;
}

.post-content figure {
  margin: var(--sp-8) 0;
}

.post-content img {
  border-radius: var(--radius-xl);
  max-width: 100%;
  height: auto;
}

.post-content figcaption {
  font-size: var(--text-sm);
  color: var(--clr-muted);
  text-align: center;
  margin-top: var(--sp-2);
}

.post-content pre {
  background: var(--clr-slate-900);
  color: var(--clr-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  overflow-x: auto;
  margin: var(--sp-6) 0;
  font-size: var(--text-sm);
  line-height: 1.65;
}

.post-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: .9em;
  background: var(--clr-slate-100);
  color: var(--clr-violet);
  padding: .15em .4em;
  border-radius: var(--radius-sm);
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--sp-10) 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-6) 0;
  font-size: var(--text-sm);
}

.post-content th,
.post-content td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}

.post-content th {
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  background: var(--clr-slate-100);
}

/* ── Post tags ────────────────────────────────────────────── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-border);
}

/* ── Brand stamp (replaces author bio) ───────────────────── */
.brand-stamp {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-10);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.brand-stamp__logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--clr-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-stamp__logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-stamp__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-stamp__name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  line-height: 1;
}

.brand-stamp__date {
  font-size: var(--text-xs);
  color: var(--clr-muted);
}

/* ── Post CTA ─────────────────────────────────────────────── */
.post-cta {
  margin-top: 3rem;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  text-align: center;
}

/* decorative glow layers — sit on top of section--dark background */
.post-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 40%, rgba(109,40,217,.45) 0%, transparent 65%),
    radial-gradient(ellipse 60% 65% at 92% 15%, rgba(37,99,235,.45) 0%, transparent 65%);
  pointer-events: none;
}

/* dot grid overlay */
.post-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 1px at 1px 1px, rgba(255,255,255,.07) 0%, transparent 0%) 0 0 / 28px 28px;
  pointer-events: none;
}

.post-cta__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-inline: auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .post-cta__content { padding: 4rem 3rem; }
}

.post-cta__heading {
  font-size: clamp(1.375rem, 3vw + .25rem, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}

.post-cta__text {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 48ch;
  margin: 0;
}

.post-cta__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.post-cta__contact {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55em 1.3em;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9999px;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  transition: background .15s, border-color .15s;
}

.post-cta__contact:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.post-cta__contact-type {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.post-cta__btn {
  margin-top: .5rem;
}

.post-cta__note {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin: 0;
  max-width: none;
}

/* ── Ad banners ───────────────────────────────────────────── */
.ad-banner {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.ad-banner--leaderboard {
  margin-block: var(--sp-8);
  text-align: center;
}

.ad-banner--leaderboard img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

.ad-banner--sidebar {
  width: 100%;
}

.ad-banner--sidebar img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

/* ── Post navigation ──────────────────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
}

.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.post-nav__link:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.post-nav__link--next {
  text-align: right;
  margin-left: auto;
}

.post-nav__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-blue);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.post-nav__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-heading);
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.widget {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-2xl);
  padding: var(--sp-6);
}

.widget__title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
}

.widget__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.widget__list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--clr-slate-700);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}

.widget__list li a:hover {
  background: var(--clr-slate-100);
  color: var(--clr-navy);
}

.widget__count {
  font-size: var(--text-xs);
  color: var(--clr-muted);
  background: var(--clr-slate-100);
  padding: .15em .5em;
  border-radius: var(--radius-full);
}

/* Recent posts list */
.widget__list--posts li a {
  flex-direction: row;
  gap: var(--sp-3);
  align-items: center;
  height: auto;
}

.widget__thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.widget__post-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-slate-700);
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget__post-date {
  font-size: var(--text-xs);
  color: var(--clr-muted);
  display: block;
  margin-top: var(--sp-1);
}

/* Tags widget */
.widget__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.widget__tags a {
  text-decoration: none;
}

/* Search widget */
.widget--search {
  background: none;
  border: none;
  padding: 0;
}

/* CTA widget */
.widget--cta {
  background: linear-gradient(135deg, var(--clr-navy) 0%, #0d1547 100%);
  border-color: transparent;
}

.widget__cta-heading {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  margin-bottom: var(--sp-2);
  max-width: none;
}

.widget__cta-body {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .65);
  margin-bottom: var(--sp-4);
  max-width: none;
}

/* ── Search form ──────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: var(--sp-2);
  max-width: 560px;
  margin-inline: auto;
  margin-top: var(--sp-6);
}

.search-form__input {
  flex: 1;
  padding: .65em 1em;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--clr-text);
  background: var(--clr-white);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.search-form__input:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.search-form__btn {
  flex-shrink: 0;
}

/* ── Comments area ────────────────────────────────────────── */
.comments-area {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
}

.comments-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  margin-bottom: var(--sp-8);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.comment-item {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.comment-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-author-name {
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  font-size: var(--text-sm);
}

.comment-date {
  font-size: var(--text-xs);
  color: var(--clr-muted);
  display: block;
}

.comment-content p {
  font-size: var(--text-sm);
  color: var(--clr-text);
  line-height: var(--lh-body);
  max-width: none;
  margin-bottom: var(--sp-2);
}

.comment-reply a {
  font-size: var(--text-sm);
  color: var(--clr-blue);
  text-decoration: none;
  font-weight: var(--fw-medium);
}

.comment-awaiting {
  font-size: var(--text-sm);
  color: var(--clr-muted);
  font-style: italic;
  margin-bottom: var(--sp-3);
}

.comment-reply-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  margin-bottom: var(--sp-6);
}

/* WordPress comment form fields */
.comment-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-heading);
  margin-bottom: var(--sp-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .65em 1em;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--clr-text);
  background: var(--clr-white);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  margin-bottom: var(--sp-5);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Page header (standard pages) ────────────────────────── */
.page-header {
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
}

/* ── Elementor full-width template ───────────────────────── */
.elementor-page--full-width {
  padding-top: 0;
}

/* ── Hide mobile CTA in header ────────────────────────────── */
@media (max-width: 1023px) {
  .hide-mobile {
    display: none;
  }
}

/* ── WordPress alignment classes ─────────────────────────── */
.alignleft  { float: left; margin-right: var(--sp-6); margin-bottom: var(--sp-4); }
.alignright { float: right; margin-left: var(--sp-6); margin-bottom: var(--sp-4); }
.aligncenter { display: block; margin-inline: auto; margin-bottom: var(--sp-4); }
.alignwide  { margin-inline: calc(-1 * var(--sp-8)); max-width: none; }
.alignfull  { margin-inline: calc(-1 * var(--container-px)); max-width: none; }

/* ── WordPress block styles ──────────────────────────────── */
.wp-block-image img { border-radius: var(--radius-lg); }
.wp-block-quote { border-left: 4px solid var(--clr-blue); padding-left: var(--sp-5); color: var(--clr-navy); font-style: italic; }
.wp-block-code  { background: var(--clr-slate-900); color: var(--clr-slate-200); border-radius: var(--radius-lg); padding: var(--sp-6); font-size: var(--text-sm); overflow-x: auto; }
.wp-block-separator { border-color: var(--clr-border); }
