/*
Theme Name: TURAN.NEWS
Description: Новостная тема для TURAN.NEWS
Version: 1.1
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F4F1EC;
  --white: #FFFFFF;
  --teal: #0A8C98;
  --teal-bg: #E8F6F7;
  --gold: #B8860B;
  --gold-bg: #FDF6E3;
  --rust: #C0392B;
  --text: #111827;
  --text2: #374151;
  --muted: #6B7280;
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.12);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-h: 0 4px 20px rgba(0,0,0,0.12);
  --uz: #16A34A; --kz: #1D6FBB; --tj: #DC2626; --kg: #D97706;
  --wc: #1a3a6e; --wc2: #c8102e;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.6; overflow-x: hidden; }

/* ── TICKER ── */
.ticker-wrap { background: var(--wc); color: #fff; overflow: hidden; white-space: nowrap; padding: 7px 0; }
.ticker-label { display: inline-block; background: var(--wc2); color: #fff; font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; padding: 2px 14px; margin-right: 20px; vertical-align: middle; }
.ticker-track { display: inline-block; animation: ticker 40s linear infinite; font-weight: 600; font-size: 13px; }
.ticker-track span { margin: 0 36px; }
.ticker-track span::before { content: "◆  "; font-size: 9px; opacity: 0.6; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── HEADER ── */
.site-header { background: var(--white); border-bottom: 1px solid var(--border2); padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; position: sticky; top: 0; z-index: 99; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.site-logo a { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 900; color: var(--text); text-decoration: none; letter-spacing: -0.03em; display: flex; flex-direction: column; line-height: 1; }
.site-logo a span { color: var(--teal); font-size: 10px; letter-spacing: 0.2em; font-weight: 600; margin-top: 2px; }
.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 13px; border-radius: 6px; transition: all .15s; white-space: nowrap; }
.main-nav a:hover { color: var(--text); background: var(--bg); }
.main-nav a.wc-link { color: var(--wc2); font-weight: 700; background: rgba(200,16,46,0.06); border: 1.5px solid rgba(200,16,46,0.2); }
.btn-sub { background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 18px; border-radius: 8px; border: none; cursor: pointer; text-decoration: none; transition: all .15s; white-space: nowrap; }
.btn-sub:hover { background: #0A7A84; }

/* ── CURRENCY STRIP ── */
.currency-strip { background: var(--white); border-bottom: 1px solid var(--border2); padding: 0 40px; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; gap: 0; }
.currency-strip::-webkit-scrollbar { display: none; }
.curr-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; padding-right: 20px; border-right: 1px solid var(--border2); white-space: nowrap; font-family: monospace; flex-shrink: 0; }
.curr-item { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-right: 1px solid var(--border); white-space: nowrap; flex-shrink: 0; }
.curr-info { display: flex; flex-direction: column; gap: 1px; }
.curr-pair { font-size: 10px; color: var(--muted); font-family: monospace; }
.curr-rate { font-family: monospace; font-size: 13px; font-weight: 700; color: var(--text); }
.curr-change { font-family: monospace; font-size: 11px; font-weight: 600; }
.up { color: #16A34A; } .down { color: var(--rust); }

/* ── MAIN ── */
.site-main { max-width: 1400px; margin: 0 auto; padding: 32px 40px; }

/* ── HERO ── */
.hero-banner { display: block; position: relative; height: 460px; background-size: cover; background-position: center; background-color: #0f1f4a; border-radius: 16px; overflow: hidden; margin-bottom: 32px; text-decoration: none; color: #fff; }
.hero-banner:hover { color: #fff; text-decoration: none; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, transparent 100%); }
.hero-content-inner { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; z-index: 2; }
.hero-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; }
.hero-title { font-family: 'Unbounded', sans-serif; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; color: #fff; max-width: 680px; }
.hero-excerpt { font-size: 14px; color: rgba(255,255,255,0.78); margin-bottom: 16px; max-width: 580px; line-height: 1.6; }
.hero-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.55); }

/* ── SECTION HEADERS ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border2); }
.section-title { display: flex; align-items: center; gap: 10px; font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); }
.section-accent { width: 4px; height: 18px; border-radius: 2px; background: var(--teal); flex-shrink: 0; }
.see-all { font-size: 12px; color: var(--teal); text-decoration: none; font-weight: 600; padding: 5px 12px; border-radius: 6px; background: var(--teal-bg); white-space: nowrap; }
.see-all:hover { background: rgba(10,140,152,0.15); color: var(--teal); text-decoration: none; }

/* ── TOPICS ── */
.topics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.topic-pill { padding: 7px 15px; border-radius: 20px; border: 1.5px solid var(--border2); font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .15s; background: var(--white); text-decoration: none; display: inline-block; }
.topic-pill:hover, .topic-pill.active { background: var(--teal); border-color: var(--teal); color: #fff; text-decoration: none; }

/* ── NEWS GRID ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.news-grid.four { grid-template-columns: repeat(4, 1fr); }

/* ── CARDS ── */
.card { background: var(--white); border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s; border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; color: var(--text); position: relative; }
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); text-decoration: none; color: var(--text); }
.card.featured { grid-column: span 2; }

/* Card top accent bar on hover */
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: transparent; transition: background .2s; z-index: 1; }
.card:hover::before { background: var(--teal); }

/* Card image */
.card-img { width: 100%; height: 180px; object-fit: cover; background: var(--bg); display: block; flex-shrink: 0; }
.card-img-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, #e8f6f7, #d4eef0); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.card.featured .card-img, .card.featured .card-img-placeholder { height: 220px; }

/* Card body */
.card-body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.card-cat::before { content: ''; display: inline-block; width: 10px; height: 2px; border-radius: 1px; background: currentColor; flex-shrink: 0; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; color: var(--text); flex: 1; }
.card.featured .card-title { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 800; line-height: 1.25; }
.card-excerpt { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--border); margin-top: auto; }

/* ── WC CARD ── */
.card.wc-card { border-color: rgba(26,58,110,0.15); background: linear-gradient(160deg, #fff 0%, #f0f4ff 100%); }
.card.wc-card::before { background: var(--wc) !important; }

/* ── COUNTRY BARS ── */
.country-bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 10px; margin-bottom: 16px; background: var(--white); border: 1.5px solid; box-shadow: var(--shadow); }
.bar-uz { border-color: rgba(22,163,74,0.25); }
.bar-kz { border-color: rgba(29,111,187,0.25); }
.bar-tj { border-color: rgba(220,38,38,0.25); }
.bar-kg { border-color: rgba(217,119,6,0.25); }
.bar-flag { font-size: 22px; }
.bar-name { font-family: 'Unbounded', sans-serif; font-size: 12px; font-weight: 700; }
.bar-count { font-size: 12px; color: var(--muted); }

/* ── WC SECTION BAR ── */
.wc-section-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: linear-gradient(135deg, #1a3a6e, #0f1f4a); border-radius: 10px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(26,58,110,0.2); }
.wc-section-name { font-family: 'Unbounded', sans-serif; font-size: 12px; font-weight: 700; color: #fff; }

/* ── TELEGRAM BANNER ── */
.tg-banner { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, #2AABEE, #1a85c2); border-radius: 16px; padding: 28px 36px; margin-bottom: 40px; color: #fff; }
.tg-icon { font-size: 40px; flex-shrink: 0; }
.tg-text { flex: 1; }
.tg-title { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.tg-sub { font-size: 13px; color: rgba(255,255,255,0.8); }
.tg-btn { background: #fff; color: #2AABEE; font-weight: 700; font-size: 13px; padding: 10px 24px; border-radius: 8px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.tg-btn:hover { background: rgba(255,255,255,0.9); color: #1a85c2; text-decoration: none; }

/* ── SINGLE POST ── */
.single-post { max-width: 800px; margin: 0 auto; background: var(--white); border-radius: 16px; padding: 48px; box-shadow: var(--shadow); }
.single-post h1 { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.post-meta { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border2); flex-wrap: wrap; }
.post-content h2 { font-family: 'Unbounded', sans-serif; font-size: 17px; font-weight: 700; margin: 28px 0 12px; }
.post-content p { margin-bottom: 16px; color: var(--text2); line-height: 1.75; }

/* ── FOOTER ── */
footer { background: var(--text); color: rgba(255,255,255,0.65); padding: 48px 40px 32px; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid.four { grid-template-columns: repeat(2, 1fr); }
  .card.featured { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-header { padding: 0 16px; gap: 12px; }
  .main-nav { display: none; }
  .site-main { padding: 16px; }
  .news-grid, .news-grid.four { grid-template-columns: 1fr; }
  .card.featured { grid-column: span 1; }
  .hero-banner { height: 320px; }
  .hero-title { font-size: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .tg-banner { flex-direction: column; text-align: center; padding: 24px; }
  .currency-strip { padding: 0 16px; }
}
