/* ============================================================
   SINGLE POST — HIGH END PRODUCTION
   ============================================================ */

/* ============================================================
   1. HERO
   ============================================================ */
.post-hero {
  position: relative;
  padding: 120px 0 60px;
  background: #fafaf9;
  overflow: hidden;
  isolation: isolate;
}

.post-hero-noise {
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/acc-main/assets/img/noise.png');
  opacity: 0.006;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.post-hero .container { position: relative; z-index: 1; }

.post-hero-content { max-width: 700px; margin: 0 auto; text-align: center; }

.post-hero-category {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(6,82,255,0.06);
  border: 1px solid rgba(6,82,255,0.1);
  border-radius: 100px;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent);
  text-decoration: none; margin-bottom: 20px;
  transition: background 0.3s ease;
}

.post-hero-category:hover { background: rgba(6,82,255,0.12); }

.post-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600; line-height: 1.2;
  color: var(--color-text); margin: 0 0 20px;
}

.post-hero-meta { display: flex; align-items: center; justify-content: center; gap: 12px; }

.post-hero-date { font-size: 0.8rem; color: var(--color-text-muted); }

.post-hero-dot {
  width: 3px; height: 3px;
  background: rgba(0,0,0,0.2); border-radius: 50%;
}

.post-hero-reading {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--color-text-muted);
}

/* ============================================================
   2. LAYOUT
   ============================================================ */
.post-layout { padding: 40px 0 80px; background: #fff; }

/* Обложка */
.post-cover {
  border-radius: 20px; overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.post-cover__img { width: 100%; display: block; }

/* Контент */
.post-content {
  font-size: 1rem; line-height: 1.8; color: var(--color-text);
}

.post-content h2 {
  font-size: 1.6rem; font-weight: 600; margin: 40px 0 16px;
}

.post-content h3 {
  font-size: 1.3rem; font-weight: 600; margin: 32px 0 12px;
}

.post-content p { margin-bottom: 20px; }

.post-content ul, .post-content ol {
  margin-bottom: 20px; padding-left: 20px;
}

.post-content li { margin-bottom: 8px; }

.post-content blockquote {
  margin: 32px 0; padding: 24px 28px;
  background: rgba(6,82,255,0.03);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--color-text-muted);
}

.post-content img {
  border-radius: 12px; margin: 24px 0;
}

.post-content a {
  color: var(--color-accent); text-decoration: none;
  border-bottom: 1px solid rgba(6,82,255,0.3);
  transition: border-color 0.3s ease;
}

.post-content a:hover { border-color: var(--color-accent); }

/* Теги */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); }

.post-tag {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(6,82,255,0.04);
  border: 1px solid rgba(6,82,255,0.08);
  border-radius: 100px;
  font-size: 0.75rem; color: var(--color-accent);
  text-decoration: none; transition: all 0.3s ease;
}

.post-tag:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Автор */
.post-author { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); }

.post-author__card { display: flex; align-items: center; gap: 14px; }

.post-author__avatar img { border-radius: 50%; }

.post-author__label { display: block; font-size: 0.65rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.post-author__name { font-weight: 600; color: var(--color-text); }

/* Навигация */
.post-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); }

.post-nav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.post-nav__link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; background: #fafaf9; border-radius: 14px;
  text-decoration: none; transition: background 0.3s ease;
}

.post-nav__link:hover { background: rgba(6,82,255,0.04); }

.post-nav__link--next { text-align: right; align-items: flex-end; }

.post-nav__direction {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent); opacity: 0.6;
}

.post-nav__title {
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 600; color: var(--color-text);
}

/* ============================================================
   3. SIDEBAR
   ============================================================ */
.post-sidebar { position: sticky; top: 100px; }

.post-sidebar__widget { margin-bottom: 40px; }

.post-sidebar__title {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 600; margin-bottom: 16px;
}

.post-sidebar__categories { display: flex; flex-direction: column; gap: 6px; }

.post-sidebar__cat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 10px;
  text-decoration: none; color: var(--color-text);
  font-size: 0.85rem; transition: all 0.3s ease;
}

.post-sidebar__cat:hover { border-color: var(--color-accent); color: var(--color-accent); }

.post-sidebar__cat-count { font-size: 0.7rem; color: var(--color-text-muted); }

.post-recent-card { display: flex; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 14px; }

.post-recent-card__image {
  width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
}

.post-recent-card__image img { width: 100%; height: 100%; object-fit: cover; }

.post-recent-card__title {
  display: block; font-size: 0.8rem; font-weight: 600; line-height: 1.3;
  margin-bottom: 4px; transition: color 0.3s ease;
}

.post-recent-card:hover .post-recent-card__title { color: var(--color-accent); }

.post-recent-card__date { font-size: 0.65rem; color: var(--color-text-muted); }

/* ============================================================
   4. RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .post-hero { padding: 100px 0 40px; }
  .post-layout { padding: 24px 0 60px; }
  .post-sidebar { position: static; margin-top: 40px; }
}

@media (max-width: 767px) {
  .post-nav__grid { grid-template-columns: 1fr; }
}