/* ============================================================
   JOURNAL PAGE — Blog listing + article reading template
   Matches dark wine aesthetic of СердцеВина&meat95.
   ============================================================ */

/* ============================================================
   JOURNAL HERO (extends .page-hero)
   ============================================================ */
.journal-hero {
  background:
    radial-gradient(ellipse 55% 42% at 28% 58%, rgba(92, 26, 42, 0.42) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 78% 30%, rgba(212, 175, 55, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 32% 25% at 55% 92%, rgba(58, 14, 27, 0.28) 0%, transparent 70%),
    var(--bg-deep);
}

/* ============================================================
   FILTERS BAR
   ============================================================ */
.journal-filters {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 5, 8, 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding: 20px 0;
  transition: box-shadow 0.4s var(--ease);
}
.journal-filters.scrolled {
  box-shadow: 0 8px 40px -12px rgba(0, 0, 0, 0.6);
}
.journal-filters-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.journal-filters .filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.journal-search {
  position: relative;
  flex-shrink: 0;
}
.journal-search input {
  padding: 10px 16px 10px 38px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--cream);
  background: rgba(26, 10, 15, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 999px;
  min-width: 240px;
  outline: none;
  transition: all 0.35s var(--ease);
}
.journal-search input:focus {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(26, 10, 15, 0.85);
}
.journal-search input::placeholder {
  color: var(--text-dim);
}
.journal-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.journal-count {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   JOURNAL GRID
   ============================================================ */
.journal-wrap {
  width: var(--container);
  margin: 0 auto;
  padding: 60px 0 var(--section-pad);
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(26, 10, 15, 0.65), rgba(13, 5, 8, 0.4));
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
  text-decoration: none;
  color: inherit;
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
  z-index: 3;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 24px 60px -24px rgba(212, 175, 55, 0.22);
}
.article-card:hover::before {
  width: 100%;
}
.article-card:hover .card-image img,
.article-card:hover .card-image-placeholder {
  transform: scale(1.06);
}
.article-card:hover .card-read {
  color: var(--gold);
  gap: 14px;
}

/* Image / placeholder */
.article-card .card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--wine-deep);
}
.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.article-card .card-image-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(92, 26, 42, 0.75) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(212, 175, 55, 0.18) 0%, transparent 65%),
    linear-gradient(135deg, var(--wine-deep), var(--bg-card));
  transition: transform 0.8s var(--ease);
  display: grid;
  place-items: center;
}
.article-card .card-image-placeholder::after {
  content: '';
  width: 56px;
  height: 56px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  position: relative;
}
.article-card .card-image-placeholder::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(6px);
}

/* Body */
.article-card .card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Tag chips */
.article-card .card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
}

/* Title */
.article-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.article-card h3 em {
  font-style: italic;
  color: var(--gold);
}

/* Meta */
.article-card .card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.article-card .card-meta .dot-sep {
  width: 3px;
  height: 3px;
  background: var(--text-dim);
  border-radius: 50%;
}

/* Excerpt */
.article-card .card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read link */
.article-card .card-read {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  transition: all 0.35s var(--ease);
}
.article-card .card-read svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}
.article-card:hover .card-read svg {
  transform: translateX(4px);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.journal-empty {
  text-align: center;
  padding: 80px 20px;
}
.journal-empty p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--cream-muted);
  margin-bottom: 32px;
}

/* ============================================================
   ARTICLE PAGE — Reading template
   ============================================================ */
.article-page {
  padding: clamp(140px, 16vw, 200px) 0 clamp(60px, 8vw, 100px);
  background:
    radial-gradient(ellipse 55% 42% at 50% 18%, rgba(92, 26, 42, 0.30) 0%, transparent 70%),
    var(--bg-deep);
}

.article-header {
  width: min(860px, 92vw);
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.article-header .breadcrumbs {
  margin-bottom: 28px;
}
.article-header .article-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.article-header h1 em {
  font-style: italic;
  color: var(--gold);
}
.article-header .article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.article-header .article-meta .author {
  color: var(--cream);
  font-weight: 500;
}
.article-header .article-meta .dot-sep {
  width: 3px;
  height: 3px;
  background: var(--text-dim);
  border-radius: 50%;
}

/* Article body — wide max-width 720px */
.article-content {
  width: min(720px, 92vw);
  margin: 0 auto;
  font-family: var(--font-body);
  color: var(--text);
}
.article-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--cream-muted);
  margin: 0 0 24px;
}
.article-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  float: left;
  line-height: 0.9;
  padding: 8px 12px 0 0;
  color: var(--gold);
  font-weight: 500;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 56px 0 22px;
}
.article-content h2 em {
  font-style: italic;
  color: var(--gold);
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--cream);
  margin: 40px 0 16px;
}
.article-content ul,
.article-content ol {
  margin: 0 0 26px;
  padding-left: 24px;
}
.article-content li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream-muted);
  margin-bottom: 10px;
}
.article-content strong {
  color: var(--cream);
  font-weight: 600;
}
.article-content em {
  color: var(--cream);
  font-style: italic;
}
.article-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}
.article-content a:hover {
  text-decoration-color: var(--gold);
}

/* Pull quote */
.article-content .pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  color: var(--gold);
  margin: 48px -20px;
  padding: 32px 40px;
  border-left: 3px solid var(--gold);
  border-right: 3px solid rgba(212, 175, 55, 0.2);
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.06), transparent 80%);
  letter-spacing: -0.01em;
  position: relative;
}
.article-content .pull-quote::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 72px;
  color: rgba(212, 175, 55, 0.25);
  position: absolute;
  top: 6px;
  left: 16px;
  line-height: 1;
  font-style: normal;
}
@media (max-width: 720px) {
  .article-content .pull-quote {
    margin: 36px 0;
    padding: 24px 22px 24px 32px;
    font-size: 20px;
  }
}

/* ============================================================
   ARTICLE FOOTER — share + related
   ============================================================ */
.article-footer {
  width: min(860px, 92vw);
  margin: clamp(60px, 8vw, 96px) auto 0;
  padding-top: 48px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}
.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.article-share .share-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(26, 10, 15, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.18);
  color: var(--cream);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  font-family: var(--font-body);
}
.share-btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(92, 26, 42, 0.25);
  color: var(--cream);
}
.share-btn.copied {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}
.share-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Related articles */
.related-section h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 28px;
}
.related-section h3 em {
  color: var(--gold);
  font-style: italic;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.related-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  background: rgba(26, 10, 15, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s var(--ease);
}
.related-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
}
.related-card .tag-chip {
  margin-bottom: 12px;
  align-self: flex-start;
}
.related-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 10px;
}
.related-card .r-meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .journal-filters-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .journal-filters .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 4px;
  }
  .journal-filters .filter-pills::-webkit-scrollbar { display: none; }
  .journal-filters .filter-pill {
    flex-shrink: 0;
  }
  .journal-search input {
    width: 100%;
    min-width: 0;
  }
  .journal-wrap {
    padding: 40px 0 var(--section-pad);
  }
}

@media (max-width: 720px) {
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-card .card-body {
    padding: 22px 22px 26px;
  }
  .article-card h3 {
    font-size: 22px;
  }
  .article-content p {
    font-size: 16px;
    line-height: 1.7;
  }
  .article-content p:first-of-type::first-letter {
    font-size: 52px;
  }
  .article-content li {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .article-share {
    gap: 10px;
  }
  .share-btn {
    padding: 9px 16px;
    font-size: 11px;
  }
}
