/* News showcase — mobile-first copy of the LuckyFeed «rednews» layout (owner, 8 Oct 2026: keep the
   original design, only the colour moves from red to violet): Roboto, uppercase titles, striped header
   line, square white cards on a light background. Ad slots are dashed placeholders until real codes
   are configured. */
:root { --accent: #b3524a; --accent-soft: #f5ebe9; --bg: #f8f8fa; --card: #fff; --text: #0c0c0c; --muted: #545454; --line: #d6d6d6; --pink: var(--accent-soft); --max: 1200px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 Roboto, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

/* Header */
.header { background: #fff; position: relative; }
.header::after { content: ""; display: block; height: 5px; background: repeating-linear-gradient(90deg, var(--accent) 0 12px, #fff 12px 16px); }
.header__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; max-width: var(--max); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo__letter { display: grid; place-items: center; width: 30px; height: 30px; border: 3px solid var(--accent); border-radius: 3px; font-size: 20px; font-weight: 700; line-height: 1; }
.logo__name { display: flex; align-items: baseline; gap: 5px; text-transform: uppercase; font-size: 19px; line-height: 1; letter-spacing: .5px; }
.logo__big { color: var(--accent); font-weight: 700; }
.logo__small { opacity: .8; font-weight: 400; white-space: nowrap; }
.menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 9px 10px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; border-radius: 1px; background: #fff; }
.nav { display: none; background: #fff; border-top: 1px solid #e7e7e7; box-shadow: 0 2px 5px #0000004d; }
.nav--open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 14px 20px; font-size: 20px; text-transform: uppercase; border-bottom: 1px solid #f0f0f0; }
.nav__link--active, .nav__link:hover { color: var(--accent); text-decoration: underline; }

/* Sections and feed */
.content { max-width: var(--max); margin: 0 auto; padding: 0 12px 30px; }
.section { padding-top: 10px; }
.section__title { margin: 20px 0 14px; font-size: 26px; font-weight: 900; text-transform: uppercase; text-align: center; }
.section__title--small { font-size: 22px; text-align: left; margin-top: 30px; }
.feed { display: grid; grid-template-columns: 1fr; gap: 15px; }
.feed__ad { grid-column: 1 / -1; }
.feed__status { text-align: center; color: var(--muted); }

/* Cards */
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); overflow: hidden; height: 100%; transition: transform .2s ease; }
.card:hover .card__title { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.card__media { display: block; background: #eee; }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card--4x3 .card__media img { aspect-ratio: 4 / 3; }
.card__media--square img { aspect-ratio: 1 / 1; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 10px 16px 14px; }
.card__title { font-size: 17px; font-weight: 500; line-height: 1.3; margin-bottom: auto; padding-bottom: 8px; transition: .15s; }
.card__meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.card--h { flex-direction: row; gap: 10px; padding: 10px; }
.card--h .card__media { width: 104px; flex-shrink: 0; align-self: center; }
.card--h .card__body { padding: 0; }
.card--h .card__title { font-size: 16px; }
.card--colored { background: var(--pink); border-color: transparent; }
.card--bordered { border: 1px solid var(--line); }

/* Ad slots (placeholders) */
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 120px; background: repeating-linear-gradient(45deg, #fff 0 10px, #faf4f3 10px 20px); border: 2px dashed var(--accent); color: var(--accent); }
.ad-slot__inner { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.ad-slot__tag { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ad-slot__name { font-family: ui-monospace, monospace; color: var(--muted); }
.ad-slot--native-row { min-height: 150px; }
.ad-slot--inline { min-height: 110px; }
.ad-slot--native-card { min-height: 260px; }
.ad-slot--live { background: none; border: 0; min-height: 0; }

/* Article */
.article-layout { display: block; }
.article { background: #fff; padding: 0 0 20px; }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__title { margin: 16px 16px 8px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.article__meta { display: flex; gap: 14px; margin: 0 16px 12px; font-size: 12px; color: var(--muted); }
.article__category { color: var(--accent); text-transform: uppercase; font-weight: 500; }
.article__lead { margin: 0 16px 14px; font-size: 17px; font-weight: 500; color: #333; }
.article__text { padding: 0 16px; font-size: 17px; line-height: 1.45; color: #333; }
.article__text p { margin: 0 0 14px; }
.article__text img { width: 100%; height: auto; margin: 10px 0; }
.article__ad { margin: 14px 0; display: grid; gap: 10px; }
.article__ad--top, .article__ad--bottom { margin: 14px 16px; }
.article__ad .card--colored { margin: 0 -16px; }
.sticky { display: none; }
.recommend { display: grid; gap: 12px; }
.recommend__ad { grid-column: 1 / -1; }
.inf-ads { display: grid; gap: 12px; }

/* Toast + popup */
.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; background: #fff; border-radius: 12px; box-shadow: 0 0 10px #0000004d; overflow: hidden; animation: slide-in .4s cubic-bezier(.25, .8, .25, 1); }
.toast[hidden], .popup[hidden] { display: none; }
.toast .ad-slot { min-height: 80px; border-width: 1px; }
.toast__close, .popup__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #f0f0f0; color: #666; cursor: pointer; font-size: 18px; line-height: 1; }
.toast__close::before, .toast__close::after { content: ""; position: absolute; left: 7px; top: 12px; width: 12px; height: 2px; background: #666; }
.toast__close::before { transform: rotate(45deg); } .toast__close::after { transform: rotate(-45deg); }
.popup { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #0003; }
.popup__card { position: relative; width: min(100% - 20px, 420px); max-height: calc(100dvh - 20px); padding: 40px 10px 10px; background: #fff; }
.popup .ad-slot { min-height: 320px; }
@keyframes slide-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 30px; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 16px 15px 90px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.section--text { background: #fff; padding: 10px 16px 24px; }

/* Desktop */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav { display: block; border-top: 0; box-shadow: none; }
  .nav__list { display: flex; justify-content: center; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
  .nav__link { border: 0; padding: 12px 18px; font-size: 18px; }
  .content { padding: 0 15px 40px; }
  .section__title { font-size: 32px; text-align: left; margin-top: 30px; }
  .feed { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card--16x9 .card__media img { aspect-ratio: 4 / 3; }
  .card__title { font-size: 19px; }
  .article-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; margin-top: 24px; }
  .article__hero { position: relative; }
  .article__title { font-size: 30px; margin: 20px 30px 8px; }
  .article__meta, .article__lead, .article__text, .article__ad--top, .article__ad--bottom { margin-left: 30px; margin-right: 30px; }
  .article__text { padding: 0; }
  .article__ad .card--colored { margin: 0; }
  .sticky { display: block; }
  .sticky__inner { position: sticky; top: 10px; display: grid; gap: 20px; }
  .recommend { grid-template-columns: repeat(2, 1fr); }
  .inf-ads { grid-template-columns: repeat(4, 1fr); }
  .toast { left: auto; right: 24px; bottom: 24px; min-width: 340px; max-width: 420px; }
}
