/* XəbərPortal - Premium 2026 Design System */
/* Primary: #12B8C9 (Turquoise), Modern News Portal */

:root {
  --primary: #12B8C9;
  --primary-dark: #0e9aaa;
  --primary-light: #4dd0de;
  --primary-glass: rgba(18, 184, 201, 0.15);
  --accent: #ff3b5c;
  --accent2: #f59e0b;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-hover: 0 8px 32px rgba(18,184,201,.18);
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --topbar-h: 36px;
  --header-h: 68px;
  --nav-h: 48px;
  --breaking-h: 38px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --bg: #0a0f1a;
  --bg-card: #111827;
  --bg-header: #0d1525;
  --border: #1e2d3d;
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
  --shadow-hover: 0 8px 32px rgba(18,184,201,.25);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========== TOPBAR ========== */
.topbar {
  background: var(--primary);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(18,184,201,.3);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 8px;
}

.topbar-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.topbar-links a {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition);
  white-space: nowrap;
}
.topbar-links a:hover { background: rgba(255,255,255,.15); }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-weather {
  display: flex; align-items: center; gap: 5px;
  color: white; font-size: 12px; font-weight: 600;
}
.topbar-weather i { font-size: 14px; }

.topbar-price {
  color: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 500;
}

.topbar-socials { display: flex; gap: 4px; }
.topbar-socials a {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
  color: white; border-radius: 50%;
  font-size: 11px;
  transition: background var(--transition);
}
.topbar-socials a:hover { background: rgba(255,255,255,.3); }

/* ========== HEADER ========== */
.site-header {
  background: var(--bg-header);
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--topbar-h); z-index: 190;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; max-width: 1400px;
  margin: 0 auto; padding: 0 16px; gap: 16px;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 24px; font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }
.logo img { height: 42px; width: auto; }

.header-search {
  flex: 1; max-width: 420px;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 44px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glass);
}
.header-search .search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px;
  pointer-events: none;
}
.search-results-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 300; display: none;
  max-height: 400px; overflow-y: auto;
}
.search-results-dropdown.show { display: block; }
.search-item {
  display: flex; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition); cursor: pointer;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg); }
.search-item img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.search-item-info { flex: 1; min-width: 0; }
.search-item-title { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text); }
.search-item-cat { font-size: 11px; color: var(--primary); margin-top: 3px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-theme {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-theme:hover { border-color: var(--primary); color: var(--primary); }

.btn-subscribe {
  background: var(--primary);
  color: white; border: none;
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: all var(--transition); white-space: nowrap;
}
.btn-subscribe:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ========== NAVIGATION ========== */
.main-nav {
  background: var(--bg-header);
  border-bottom: 2px solid var(--primary);
  position: sticky; top: calc(var(--topbar-h) + var(--header-h));
  z-index: 180;
}
.nav-inner {
  display: flex; align-items: center;
  max-width: 1400px; margin: 0 auto;
  padding: 0 16px; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px; height: var(--nav-h);
  font-size: 13.5px; font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  position: relative;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-link i { font-size: 12px; }

.nav-more-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; height: var(--nav-h);
  font-size: 13.5px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  white-space: nowrap; background: none; border: none;
  transition: color var(--transition);
}
.nav-more-btn:hover { color: var(--primary); }

/* ========== BREAKING NEWS ========== */
.breaking-bar {
  background: var(--accent);
  height: var(--breaking-h);
  display: flex; align-items: center;
  overflow: hidden;
}
.breaking-label {
  background: #c0392b;
  color: white; font-size: 11px; font-weight: 800;
  padding: 0 12px; height: 100%;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: .5px;
}
.breaking-label i { animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.breaking-ticker {
  flex: 1; overflow: hidden;
  display: flex; align-items: center;
}
.breaking-ticker-track {
  display: flex; gap: 48px;
  animation: ticker 40s linear infinite;
  white-space: nowrap; align-items: center;
}
.breaking-ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.breaking-item {
  color: white; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.breaking-item::before {
  content: '●'; font-size: 6px; opacity: .7;
}
.breaking-item a { color: white; }
.breaking-item a:hover { text-decoration: underline; }

/* ========== CONTAINER ========== */
.container {
  max-width: 1400px; margin: 0 auto; padding: 0 16px;
}
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px; padding: 20px 0;
}

/* ========== SLIDER ========== */
.slider-section { margin-bottom: 4px; }
.slider-wrap { position: relative; overflow: hidden; border-radius: var(--radius); }

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  min-width: 100%; position: relative;
  height: 480px;
}
@media (max-width: 768px) { .slide { height: 260px; } }

.slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}
.slide-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 24px 24px;
}
.slide-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary);
  color: white; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 8px;
}
.slide-title {
  color: white; font-size: 22px; font-weight: 800;
  line-height: 1.25; margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.slide-title a { color: white; }
.slide-title a:hover { color: var(--primary-light); }
.slide-meta {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.8); font-size: 12px;
}

/* Slider mini thumbs */
.slider-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 1px;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.thumb-item {
  display: flex; gap: 10px;
  background: var(--bg-card);
  padding: 10px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 3px solid transparent;
}
.thumb-item:hover, .thumb-item.active { border-bottom-color: var(--primary); background: var(--bg); }
.thumb-item img { width: 72px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.thumb-title { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.thumb-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Slider dots */
.slider-dots {
  position: absolute; bottom: 56px; right: 16px;
  display: flex; gap: 6px; z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer;
  transition: all var(--transition); border: none;
}
.slider-dot.active { background: white; width: 20px; border-radius: 4px; }

.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: white; font-size: 14px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); z-index: 10;
}
.slider-nav:hover { background: var(--primary); border-color: var(--primary); }
.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }

/* ========== NEWS CARDS ========== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800;
  color: var(--text);
}
.section-title i { color: var(--primary); font-size: 14px; }
.section-more {
  font-size: 12px; color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.section-more:hover { gap: 8px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-grid-2 { grid-template-columns: repeat(2, 1fr); }
.news-grid-4 { grid-template-columns: repeat(4, 1fr); }

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.news-card-img {
  position: relative; padding-top: 60%;
  overflow: hidden; background: var(--bg);
}
.news-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-cat {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary);
  color: white; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .3px;
  z-index: 2;
}
.news-card-cat.breaking { background: var(--accent); }

.news-card-views {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.6);
  color: rgba(255,255,255,.9); font-size: 10px;
  padding: 2px 7px; border-radius: 10px;
  display: flex; align-items: center; gap: 3px;
}

.news-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.news-card-title {
  font-size: 14px; font-weight: 700; line-height: 1.4;
  color: var(--text); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.news-card-title a { color: inherit; transition: color var(--transition); }
.news-card-title a:hover { color: var(--primary); }

.news-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border);
  gap: 6px;
}
.news-card-footer i { font-size: 10px; }

/* Featured card */
.news-card-featured {
  grid-column: span 2;
}
.news-card-featured .news-card-img { padding-top: 50%; }
.news-card-featured .news-card-title { font-size: 17px; -webkit-line-clamp: 2; }

/* Horizontal card */
.news-card-h {
  flex-direction: row; align-items: center;
}
.news-card-h .news-card-img {
  width: 120px; min-width: 120px; padding-top: 0; height: 90px;
}
.news-card-h .news-card-img img { position: static; width: 100%; height: 100%; }
.news-card-h .news-card-body { padding: 10px 12px; }
.news-card-h .news-card-title { font-size: 13px; -webkit-line-clamp: 2; }

/* ========== SIDEBAR ========== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 14px; font-weight: 800;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex; align-items: center; gap: 7px;
}
.widget-title i { color: var(--primary); font-size: 13px; }

/* Most read */
.most-read-list { display: flex; flex-direction: column; gap: 10px; }
.most-read-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.most-read-item:last-child { border-bottom: none; padding-bottom: 0; }
.most-read-num {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--primary-glass);
  color: var(--primary); font-size: 13px; font-weight: 800;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.most-read-num.top3 { background: var(--primary); color: white; }
.most-read-title {
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.most-read-title a { color: inherit; }
.most-read-title a:hover { color: var(--primary); }
.most-read-views { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* Subscribe widget */
.subscribe-widget { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.subscribe-widget .widget-title { color: white; border-bottom-color: rgba(255,255,255,.3); }
.subscribe-widget .widget-title i { color: white; }
.subscribe-desc { color: rgba(255,255,255,.85); font-size: 12px; margin-bottom: 12px; }
.subscribe-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  color: white; font-size: 13px;
  outline: none; margin-bottom: 8px;
}
.subscribe-input::placeholder { color: rgba(255,255,255,.6); }
.subscribe-input:focus { border-color: rgba(255,255,255,.6); }
.btn-subscribe-widget {
  width: 100%;
  background: white;
  color: var(--primary);
  border: none; padding: 10px;
  border-radius: 8px; font-size: 13px;
  font-weight: 700; cursor: pointer;
  transition: transform var(--transition);
}
.btn-subscribe-widget:hover { transform: translateY(-1px); }

/* Ad widget */
.ad-widget { padding: 0; overflow: hidden; }
.ad-widget img { width: 100%; border-radius: var(--radius); }
.ad-placeholder {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  min-height: 250px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px;
  gap: 6px;
}
[data-theme="dark"] .ad-placeholder { background: linear-gradient(135deg, #1e2d3d, #0d1525); }

/* Categories widget */
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px;
  transition: background var(--transition); cursor: pointer;
}
.cat-item:hover { background: var(--bg); }
.cat-item-left { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.cat-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: white; }
.cat-count { font-size: 11px; color: var(--text-muted); background: var(--bg); padding: 2px 7px; border-radius: 10px; }

/* ========== SECTIONS ========== */
.news-section { margin-bottom: 28px; }

/* ========== TAGS ========== */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 10px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 12px;
  border-radius: 20px; transition: all var(--transition);
}
.tag:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ========== GLASSMORPHISM ELEMENTS ========== */
.glass-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 4px 24px rgba(18,184,201,.12);
}
[data-theme="dark"] .glass-card {
  background: rgba(17,24,39,.7);
  border-color: rgba(255,255,255,.08);
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0a1929;
  color: #94a3b8;
  margin-top: 40px;
}
.footer-top {
  padding: 40px 0 30px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  color: #94a3b8; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: white; }

.footer-col-title { color: white; font-size: 13px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: #64748b; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 12px; color: #475569; }

/* ========== MOBILE NAV ========== */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 500;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.mobile-nav-inner {
  display: flex; justify-content: space-around;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 12px;
  color: var(--text-muted); font-size: 10px; font-weight: 600;
  transition: color var(--transition); cursor: pointer;
}
.mobile-nav-item i { font-size: 18px; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item.special {
  background: var(--primary); color: white;
  border-radius: 12px; padding: 4px 16px;
  transform: translateY(-8px);
  box-shadow: 0 4px 16px rgba(18,184,201,.4);
}

/* ========== TOAST ========== */
.toast-container {
  position: fixed; bottom: 80px; right: 16px; z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 320px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; animation: slideIn .3s ease;
}
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: var(--accent); }
.toast i { font-size: 16px; flex-shrink: 0; }
.toast.success i { color: #10b981; }
.toast.error i { color: var(--accent); }

/* ========== ARTICLE PAGE ========== */
.article-header { margin-bottom: 20px; }
.article-cat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary-glass); color: var(--primary);
  padding: 4px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
  text-transform: uppercase;
}
.article-title { font-size: 28px; font-weight: 900; line-height: 1.3; margin-bottom: 14px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; font-size: 13px; color: var(--text-muted);
  padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.article-meta strong { color: var(--text); }
.article-meta i { font-size: 11px; }

.article-share { display: flex; align-items: center; gap: 8px; }
.share-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition);
}
.share-facebook { background: #1877f2; color: white; }
.share-twitter { background: #000; color: white; }
.share-telegram { background: #0088cc; color: white; }
.share-whatsapp { background: #25d366; color: white; }

.article-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.article-image img { width: 100%; max-height: 500px; object-fit: cover; }
.article-image figcaption { font-size: 12px; color: var(--text-muted); padding: 8px 12px; }

.article-content {
  font-size: 16px; line-height: 1.8; color: var(--text);
}
.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font-size: 20px; font-weight: 800; margin: 1.5em 0 .7em; color: var(--text); }
.article-content h3 { font-size: 17px; font-weight: 700; margin: 1.2em 0 .5em; }
.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px; margin: 1.5em 0;
  background: var(--primary-glass); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text-secondary);
}
.article-content img { border-radius: 10px; margin: 1em 0; }
.article-content a { color: var(--primary); text-decoration: underline; }

/* Comments */
.comments-section { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--primary); }
.comment-item {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px;
}
.comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.comment-author { display: flex; align-items: center; gap: 8px; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.comment-name { font-size: 13px; font-weight: 700; }
.comment-time { font-size: 11px; color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ========== SEARCH PAGE ========== */
.search-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px; padding: 16px;
  background: var(--bg-card); border-radius: var(--radius);
}
.filter-select {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg);
  color: var(--text); font-size: 13px; outline: none;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex; justify-content: center; gap: 4px;
  margin: 24px 0;
}
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ========== UTILITIES ========== */
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.badge-primary { background: var(--primary-glass); color: var(--primary); }
.badge-danger { background: rgba(255,59,92,.12); color: var(--accent); }
.badge-success { background: rgba(16,185,129,.12); color: #10b981; }
.badge-warning { background: rgba(245,158,11,.12); color: var(--accent2); }

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .main-layout { grid-template-columns: 1fr 280px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-links { display: none; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 32px; --header-h: 56px; --nav-h: 42px; }
  .news-grid, .news-grid-4 { grid-template-columns: 1fr; }
  .news-grid-2 { grid-template-columns: 1fr; }
  .news-card-featured { grid-column: span 1; }
  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }
  .slider-thumbs { grid-template-columns: 1fr; }
  .slider-thumbs .thumb-item:nth-child(n+2) { display: none; }
  .article-title { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .topbar-socials { display: none; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Print */
@media print {
  .topbar, .main-nav, .breaking-bar, .site-footer,
  .mobile-nav, .sidebar, .ads { display: none !important; }
  .main-layout { grid-template-columns: 1fr; }
}
