/* =========================================================
   Dude Bet — айдентика (чорний + неоновий жовтий #F2FF00)
   та нові блоки сайту socialisty.com.ua
   ========================================================= */

:root {
  --db-yellow: #f2ff00;
  --db-yellow-soft: rgba(242, 255, 0, 0.12);
  --db-ink: #111111;
  --db-card: #161616;
  --db-card-2: #1c1c1c;
  --db-line: rgba(255, 255, 255, 0.08);
}

body {
  background: #0d0d0d;
}

/* ---------- Кнопки: темний текст на жовтому ---------- */
.btn--primary,
.btn--primary:hover,
.hero-banner__btn,
.hero-banner__btn:hover,
.content-btn,
.content-btn:hover {
  color: var(--db-ink);
}
.btn--primary,
.hero-banner__btn {
  background: var(--db-yellow);
  font-weight: 700;
}
.btn--primary:hover,
.hero-banner__btn:hover {
  background: #fbff66;
  box-shadow: 0 6px 22px rgba(242, 255, 0, 0.35);
}
.btn--outline:hover {
  border-color: var(--db-yellow);
  color: var(--db-yellow);
}

.header {
  border-bottom: 1px solid var(--db-line);
}
.header-nav__item.is-active .header-nav__link {
  color: var(--db-ink);
  background: var(--db-yellow);
}
.pg-card__badge--new {
  color: var(--db-ink);
}

/* ---------- Hero ---------- */
.hero-banner {
  min-height: 360px;
  border: 1px solid var(--db-line);
}
.hero-banner__overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.8) 38%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.1) 100%);
}
.hero-banner__bg {
  background-position: 70% center;
}
.hero-banner__content {
  max-width: 580px;
}
.hero-banner__title {
  font-size: 36px;
}
.hero-banner__subtitle {
  font-style: normal;
  font-size: 17px;
  line-height: 1.5;
}
.hero-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--db-yellow-soft);
  border: 1px solid rgba(242, 255, 0, 0.45);
  color: var(--db-yellow);
  font-size: 13px;
  font-weight: 600;
}
.hero-banner__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--db-yellow);
  box-shadow: 0 0 10px var(--db-yellow);
}
.hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-banner__btn--ghost,
.hero-banner__btn--ghost:hover {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.hero-banner__btn--ghost:hover {
  border-color: var(--db-yellow);
  color: var(--db-yellow);
}

/* ---------- Хлібні крихти ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumbs a {
  color: var(--db-yellow);
}

/* ---------- Заголовок інфо-сторінок ---------- */
.page-head {
  padding-top: 32px;
}
.page-head__title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
}

/* ---------- Смуга з цифрами ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stats-strip__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--db-card);
  border: 1px solid var(--db-line);
}
.stats-strip__item strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--db-yellow);
  line-height: 1.2;
}
.stats-strip__item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Контент ---------- */
.page-text a:not(.content-btn):not(.btn) {
  color: var(--db-yellow);
  text-decoration: underline;
  text-decoration-color: rgba(242, 255, 0, 0.45);
  text-underline-offset: 3px;
}
.page-text a:not(.content-btn):not(.btn):hover {
  text-decoration-color: var(--db-yellow);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 20px !important;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--db-card);
  border: 1px solid var(--db-line);
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
.post-meta span + span::before {
  content: "•";
  margin-right: 18px;
  color: var(--db-yellow);
}
.page-text figure {
  margin: 20px 0 24px;
}
.page-text figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--db-line);
}
.page-text figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.page-text em {
  display: block;
  padding: 12px 16px;
  border-left: 3px solid var(--db-yellow);
  border-radius: 0 10px 10px 0;
  background: var(--db-card);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.page-text ol {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  counter-reset: db-step;
}
.page-text ol li {
  position: relative;
  padding: 2px 0 10px 40px;
  counter-increment: db-step;
  color: var(--color-text-muted);
}
.page-text ol li::before {
  content: counter(db-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--db-yellow);
  color: var(--db-ink);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-text .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 20px;
  -webkit-overflow-scrolling: touch;
}
.page-text .table-wrap table {
  margin: 0;
  min-width: 480px;
}
.page-text table th {
  background: var(--db-yellow);
  color: var(--db-ink);
}

/* ---------- FAQ всередині статті ---------- */
.faq--inline {
  margin: 32px 0 0;
  padding: 0;
}
.faq--inline::before {
  display: none;
}
.faq--inline .faq__title {
  text-align: left;
  font-size: 22px;
  margin: 0 0 16px;
}
.faq__question > h3 {
  margin: 0 !important;
  font-size: 16px !important;
}

/* ---------- Автор ---------- */
.author-box {
  margin-top: 32px;
}
.author-box__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  background: var(--db-card);
  border: 1px solid rgba(242, 255, 0, 0.3);
}
.author-box__logo {
  flex: 0 0 64px;
  width: 64px;
  height: auto;
  margin-top: 4px;
}
.author-box__inner p {
  margin: 0 !important;
}

/* ---------- CTA ---------- */
.cta-banner {
  margin-bottom: 32px;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 20%, rgba(242, 255, 0, 0.22), transparent 55%),
    linear-gradient(135deg, #1b1b1b, #0f0f0f);
  border: 1px solid rgba(242, 255, 0, 0.35);
}
.cta-banner__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--db-yellow);
  margin: 0 0 6px;
}
.cta-banner__text {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 680px;
}

/* ---------- Сайдбар ---------- */
.sidebar__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}
.sidebar__cta .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Футер ---------- */
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 40px 16px 24px;
}
.footer__brand .btn {
  margin-top: 14px;
}
.footer__tagline {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer__col-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--db-yellow);
}
.footer__grid .footer__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  justify-content: flex-start;
  padding: 0;
}
.footer__grid .footer__item::before {
  display: none;
}
.footer__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.footer__badges span {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--db-line);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.footer__badges .footer__age {
  border-color: var(--db-yellow);
  color: var(--db-yellow);
  font-weight: 800;
}
.footer__copy {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 0;
  }
  .hero-banner__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.88) 55%, rgba(0, 0, 0, 0.96) 100%);
  }
  .hero-banner__inner {
    padding: 120px 18px 22px;
  }
  .hero-banner__title {
    font-size: 25px;
  }
  .hero-banner__subtitle {
    font-size: 15px;
  }
  .hero-banner__actions .hero-banner__btn {
    flex: 1 1 140px;
  }
  .stats-strip {
    gap: 8px;
  }
  .stats-strip__item {
    padding: 12px 14px;
  }
  .stats-strip__item strong {
    font-size: 20px;
  }
  .page-head__title {
    font-size: 25px;
  }
  .cta-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 18px;
    text-align: left;
  }
  .cta-banner__title {
    font-size: 19px;
  }
  .author-box__inner {
    flex-direction: column;
  }
  .post-meta span + span::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .auth .btn--outline {
    display: none;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* hero як <img> (індексується, має alt) */
.hero-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
@media (max-width: 768px) {
  .hero-banner__img {
    object-position: center top;
  }
}
