﻿/* ==========================================================
   news.css — стили для страниц новостей Ganja Travel
   Подключается на всех новостных статьях, использующих
   внешнюю таблицу стилей (news-*.html)
   ========================================================== */

/* ===================== БАЗА ===================== */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#0a0f1a;
  --fg:#eaeef3;
  --fg-strong:#ffffff;
  --muted:rgba(255,255,255,.5);
  --muted-strong:rgba(255,255,255,.75);
  --accent:#2ed573;
  --accent-2:#4cd9b2;
  --danger:#ff6b8a;
  --warn:#f7b731;
  --line:rgba(76,217,178,.08);
  --card:rgba(255,255,255,.02);
  --card-border:rgba(255,255,255,.06);
}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--bg);color:var(--fg);line-height:1.7;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--accent-2);outline-offset:3px;border-radius:6px
}
img{max-width:100%;height:auto;display:block}

/* Skip link */
.skip-link{
  position:absolute;left:-9999px;top:0;background:var(--accent);color:#04140a;
  padding:10px 16px;z-index:1000;font-weight:600;border-radius:0 0 8px 0
}
.skip-link:focus{left:0}

.wrap{max-width:820px;margin:0 auto;padding:20px 16px 40px}

/* ===================== READING PROGRESS ===================== */
.reading-progress{
  position:fixed;top:0;left:0;width:100%;height:3px;z-index:999;
  background:transparent;pointer-events:none
}
.reading-progress-bar{
  height:100%;width:0;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  transition:width .1s linear
}

/* ===================== BACK TO TOP ===================== */
.back-to-top{
  position:fixed;bottom:24px;right:24px;width:44px;height:44px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#04140a;border:none;cursor:pointer;font-size:20px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s,transform .2s;
  z-index:998;box-shadow:0 4px 20px rgba(46,213,115,.3)
}
.back-to-top.visible{opacity:1;visibility:visible}
.back-to-top:hover{transform:translateY(-3px) scale(1.05)}

/* ===================== HEADER ===================== */
.site-header{
  display:flex;align-items:center;justify-content:center;
  padding:8px 0 20px;border-bottom:1px solid var(--line);margin-bottom:20px
}
.logo-wrapper{text-align:center;padding:4px 0}
.logo-icon-main{font-size:44px;display:block;line-height:1.2}
.logo-title{
  font-size:30px;font-weight:800;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  letter-spacing:3px;display:block;line-height:1.2
}
.logo-subtitle{
  font-size:12px;color:rgba(255,255,255,.25);letter-spacing:2.5px;
  display:block;margin-top:2px;text-transform:uppercase
}
.logo-divider{
  width:50%;max-width:240px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(46,213,115,.2),transparent);
  margin:6px auto 0
}

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs{
  font-size:13px;color:var(--muted);margin-bottom:16px;
  display:flex;flex-wrap:wrap;gap:6px;align-items:center
}
.breadcrumbs a{color:var(--accent-2);transition:color .2s}
.breadcrumbs a:hover{color:var(--accent);text-decoration:underline}
.breadcrumbs .sep{color:rgba(255,255,255,.2)}
.breadcrumbs .current{color:var(--muted-strong)}

/* ===================== ARTICLE HEADER ===================== */
.article-header{padding:8px 0 22px;border-bottom:1px solid var(--line);margin-bottom:24px}
.article-badge{
  display:inline-block;font-size:10px;font-weight:600;text-transform:uppercase;
  color:var(--accent);background:rgba(46,213,115,.08);
  padding:4px 14px;border-radius:20px;margin-bottom:14px;letter-spacing:.5px
}
.article-header h1{
  font-size:36px;font-weight:800;line-height:1.2;color:#fff;margin-bottom:14px
}
.article-header h1 span{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent
}
.article-meta{
  display:flex;flex-wrap:wrap;gap:14px;font-size:13px;
  color:var(--muted);align-items:center;padding-top:12px;
  border-top:1px solid var(--line)
}
.article-meta span{display:inline-flex;align-items:center;gap:5px}
.article-meta .tag{
  color:var(--accent-2);background:rgba(76,217,178,.08);
  padding:3px 12px;border-radius:16px;font-size:12px;font-weight:500
}

/* ===================== LEAD ===================== */
.article-lead{
  font-size:17px;color:var(--muted-strong);line-height:1.75;
  margin-bottom:26px;padding:18px 22px;
  background:rgba(46,213,115,.03);
  border-left:3px solid var(--accent);
  border-radius:0 10px 10px 0
}
.article-lead strong{color:#fff;font-weight:600}

/* ===================== ARTICLE CONTENT ===================== */
.article-content{font-size:16px;color:var(--muted-strong);line-height:1.8}
.article-content h2{
  font-size:23px;font-weight:700;color:#fff;margin:28px 0 14px;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  scroll-margin-top:20px
}
.article-content h2 .emoji{
  font-size:24px;line-height:1;
  filter:drop-shadow(0 2px 8px rgba(46,213,115,.2))
}
.article-content h3{
  font-size:17px;font-weight:600;color:var(--accent-2);
  margin:20px 0 10px;display:flex;align-items:center;gap:8px
}
.article-content p{margin-bottom:14px}
.article-content p strong{color:#fff}
.article-content a{
  color:var(--accent-2);text-decoration:underline;
  text-decoration-color:rgba(76,217,178,.3)
}
.article-content a:hover{text-decoration-color:var(--accent-2)}

.article-content ul,
.article-content ol{
  margin:10px 0 16px;padding-left:0
}
.article-content ul{list-style:none}
.article-content ul li{
  padding-left:26px;position:relative;margin-bottom:8px;font-size:15px
}
.article-content ul li::before{
  content:"🌿";position:absolute;left:0;top:1px;font-size:13px
}
.article-content ul li strong{color:#fff}

.article-content ol{
  list-style:none;counter-reset:item
}
.article-content ol li{
  padding-left:34px;position:relative;margin-bottom:10px;
  font-size:15px;counter-increment:item
}
.article-content ol li::before{
  content:counter(item);
  position:absolute;left:0;top:0;
  display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;border-radius:6px;
  background:linear-gradient(135deg,rgba(46,213,115,.15),rgba(76,217,178,.08));
  color:var(--accent-2);font-weight:700;font-size:12px;
  border:1px solid rgba(76,217,178,.15)
}
.article-content ol li strong{color:#fff}

/* ===================== CALLOUT ===================== */
.callout{
  background:rgba(46,213,115,.05);
  border:1px solid rgba(76,217,178,.2);
  border-left:3px solid var(--accent);
  border-radius:0 10px 10px 0;
  padding:16px 20px;margin:18px 0;font-size:15px;
  color:var(--muted-strong);line-height:1.7
}
.callout strong{color:var(--accent-2)}

/* ===================== WARNING ===================== */
.warning{
  background:rgba(255,107,138,.06);
  border:1px solid rgba(255,107,138,.15);
  border-radius:10px;padding:16px 20px;margin:18px 0;
  font-size:15px;color:var(--muted-strong);line-height:1.7
}
.warning strong{color:var(--danger)}

/* ===================== WARN BOX ===================== */
.warn-box{
  background:rgba(247,183,49,.05);
  border:1px solid rgba(247,183,49,.15);
  border-radius:10px;padding:16px 20px;margin:18px 0;
  font-size:15px;color:var(--muted-strong);line-height:1.7
}
.warn-box strong{color:var(--warn)}

/* ===================== HIGHLIGHT ===================== */
.article-content .highlight-box,
.highlight-box{
  background:rgba(46,213,115,.05);
  border-left:3px solid var(--accent);
  padding:16px 20px;border-radius:0 8px 8px 0;
  margin:16px 0;font-size:15px
}
.highlight-box strong{color:var(--accent-2)}

/* ===================== FACT TABLE ===================== */
.fact-table{
  background:var(--card);border:1px solid var(--card-border);
  border-radius:14px;padding:4px;margin:18px 0;overflow-x:auto
}
.fact-table table{
  width:100%;border-collapse:collapse;font-size:14px
}
.fact-table th{
  text-align:left;padding:12px 14px;color:var(--accent-2);
  font-weight:600;font-size:11px;text-transform:uppercase;
  background:rgba(76,217,178,.05);letter-spacing:.5px;
  border-bottom:1px solid var(--card-border)
}
.fact-table td{
  padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.04);
  color:var(--muted-strong);vertical-align:top
}
.fact-table tr:last-child td{border-bottom:none}
.fact-table .danger{color:var(--danger);font-weight:600}
.fact-table .warn{color:var(--warn);font-weight:600}
.fact-table .ok{color:var(--accent);font-weight:600}

/* ===================== SOURCES ===================== */
.sources{
  font-size:13px;color:var(--muted);
  padding:16px 20px;background:var(--card);
  border:1px solid var(--card-border);border-radius:10px;
  margin:20px 0
}
.sources strong{color:var(--accent-2)}
.sources ul{
  list-style:none;margin-top:8px;
  display:flex;flex-direction:column;gap:6px
}
.sources ul li{
  padding-left:18px;position:relative;line-height:1.55
}
.sources ul li::before{
  content:"•";position:absolute;left:0;color:var(--accent);
  font-weight:700
}
.sources a{
  color:var(--muted-strong);
  text-decoration:underline;
  text-decoration-color:rgba(76,217,178,.3)
}
.sources a:hover{color:var(--accent-2)}

/* ===================== SHARE ===================== */
.share-block{
  display:flex;gap:8px;flex-wrap:wrap;
  padding:16px 18px;background:var(--card);
  border:1px solid var(--card-border);
  border-radius:12px;margin:20px 0;align-items:center
}
.share-block strong{
  color:var(--accent-2);font-size:13px;margin-right:6px
}
.share-btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 16px;border-radius:20px;font-size:13px;font-weight:600;
  background:rgba(46,213,115,.08);
  border:1px solid rgba(76,217,178,.15);
  color:var(--muted-strong);cursor:pointer;transition:.2s;
  font-family:inherit
}
.share-btn:hover{
  background:rgba(46,213,115,.15);
  border-color:rgba(76,217,178,.35);
  color:#fff;transform:translateY(-1px)
}

/* ===================== RELATED NEWS ===================== */
.related-news{
  margin:32px 0;padding:22px 24px;
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:14px
}
.related-news h2{
  font-size:18px;font-weight:700;color:#fff;margin-bottom:14px
}
.related-news h2 span{color:var(--accent-2)}
.related-news-list{
  list-style:none;display:flex;flex-direction:column;gap:10px;
  margin-bottom:16px
}
.related-news-list li a{
  display:flex;gap:12px;align-items:center;
  padding:12px 14px;
  background:rgba(46,213,115,.04);
  border:1px solid rgba(76,217,178,.1);
  border-radius:10px;
  font-size:14px;color:var(--muted-strong);
  transition:.2s
}
.related-news-list li a:hover{
  background:rgba(46,213,115,.1);
  border-color:rgba(76,217,178,.3);
  color:#fff;transform:translateX(3px)
}
.related-news-list .rn-icon{
  font-size:22px;flex:0 0 auto;line-height:1
}
.related-news-list .rn-title{
  display:block;color:#fff;font-weight:500;margin-bottom:2px
}
.related-news-list .rn-date{
  display:block;font-size:12px;color:var(--muted)
}
.back-cta{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 16px;
  background:rgba(46,213,115,.05);
  border:1px solid rgba(76,217,178,.15);
  border-radius:20px;
  color:var(--accent-2);font-size:14px;
  transition:.2s
}
.back-cta:hover{
  background:rgba(46,213,115,.12);color:#fff;
  transform:translateX(-3px)
}

/* ===================== FOOTER ===================== */
.site-footer{
  margin-top:40px;padding-top:16px;
  border-top:1px solid var(--line);
  text-align:center;font-size:12px;
  color:rgba(255,255,255,.25)
}
.site-footer a{color:var(--accent-2)}
.site-footer a:hover{text-decoration:underline}
.footer-nav{
  display:flex;gap:18px;justify-content:center;
  flex-wrap:wrap;margin-bottom:10px
}

/* ===================== RESPONSIVE ===================== */
@media(max-width:820px){
  .article-header h1{font-size:28px}
  .article-content h2{font-size:20px}
}
@media(max-width:600px){
  .article-header h1{font-size:23px}
  .article-lead{font-size:15px;padding:14px 16px}
  .article-content{font-size:15px}
  .article-content h2{font-size:18px}
  .wrap{padding:16px 14px 30px}
  .logo-title{font-size:24px}
  .logo-icon-main{font-size:36px}
  .logo-subtitle{font-size:10px}
  .back-to-top{bottom:16px;right:16px;width:40px;height:40px;font-size:18px}
  .fact-table th,.fact-table td{padding:8px 10px;font-size:13px}
  .related-news{padding:18px 16px}
}

/* ===================== PRINT ===================== */
@media print{
  body{background:#fff;color:#000}
  .reading-progress,.back-to-top,.share-block,
  .related-news,.site-footer{display:none!important}
  .article-header h1 span,.article-content h2{
    color:#000!important;-webkit-text-fill-color:#000!important
  }
  a{color:#000;text-decoration:underline}
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce){
  *{transition:none!important;animation:none!important}
  html{scroll-behavior:auto}
}