/* ===== PULS NEWS — Modern Redesign (dnevnik.bg inspired) ===== */
:root {
  --red: #cc0000;
  --red-dark: #a00000;
  --red-light: #fff5f5;
  --dark: #1a1a1a;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.08);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TOP STRIP ===== */
.top-strip {
  background: var(--dark);
  padding: 6px 0;
  font-size: 12px;
  color: var(--gray-400);
}
.top-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.strip-left { display: flex; align-items: center; gap: 16px; }
.weather-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: #e2e8f0; font-weight: 500;
}
.strip-right { display: flex; align-items: center; gap: 12px; }
.strip-link {
  color: var(--gray-400);
  transition: color .15s;
  font-size: 12px;
}
.strip-link:hover { color: var(--white); }
.strip-social {
  display: flex; gap: 4px;
}
.strip-social a {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  font-size: 12px;
  transition: all .15s;
}
.strip-social a:hover { color: var(--white); background: rgba(255,255,255,.08); }

/* ===== MAIN HEADER ===== */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 8px 16px;
  max-width: 320px;
  width: 100%;
  border: 1px solid transparent;
  transition: all .2s;
}
.header-search:focus-within {
  background: var(--white);
  border-color: var(--gray-300);
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.header-search input {
  border: none; background: none; outline: none;
  font-size: 13px; color: var(--gray-900); width: 100%;
}
.header-search input::placeholder { color: var(--gray-400); }
.header-search .search-icon { color: var(--gray-400); font-size: 14px; }

/* Logo — RIGHT side */
.header-logo {
  flex-shrink: 0;
  text-align: right;
}
.logo-link {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.logo-pulse {
  font-size: 30px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 1px;
  line-height: 1;
}
.logo-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}
.logo-tagline {
  font-size: 11px;
  color: var(--gray-500);
  display: block;
  margin-top: 2px;
}

/* Header Social Icons */
.header-social {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.header-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gray-500);
  background: var(--gray-100);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.header-social a:hover {
  transform: translateY(-2px);
}
.header-social a:nth-child(1):hover { background: #1877f2; color: #fff; }
.header-social a:nth-child(2):hover { background: #ff0000; color: #fff; }
.header-social a:nth-child(3):hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.header-social a:nth-child(4):hover { background: #000; color: #fff; }

@media (max-width: 768px) {
  .header-social { display: none; }
}


/* Табове на локалната секция (ПЕРНИК + общини) */
.local-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.local-tab {
  padding: 8px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all .15s;
  text-decoration: none; white-space: nowrap;
}
.local-tab:hover { border-color: #dc2626; color: #dc2626; }
.local-tab.active {
  background: #dc2626; color: #fff; border-color: #dc2626;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
}
.nav-link {
  display: block;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .3px;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--red);
}
.nav-link.active { border-bottom-color: var(--red); }
.nav-video { color: #e53935 !important; }
.nav-horoscope { color: #8b5cf6; font-weight: 600; }
.nav-horoscope:hover { color: #7c3aed; }
.nav-funzone { color: #f59e0b; font-weight: 600; }
.nav-funzone:hover { color: #d97706; }
.nav-video:hover { color: #c62828 !important; }


/* ═══════════════════════════════════════════
   ЛОКАЛНА СЕКЦИЯ „ПЕРНИК“ — dropdown подменю
   ═══════════════════════════════════════════ */
.nav-local { position: relative; }
.nav-local-toggle {
  display: flex; align-items: center; gap: 6px;
  color: #dc2626; font-weight: 700;
}
.nav-local-toggle:hover, .nav-local-toggle.active { color: #b91c1c; }

/* Desktop dropdown: показва се при hover */
.nav-dropdown {
  display: block;
  position: absolute; top: 100%; left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid #e2e8f0; border-top: 3px solid #dc2626;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .25s ease, visibility .22s;
  z-index: 999;
  pointer-events: none;
}
.nav-local:hover .nav-dropdown,
.nav-local:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown a {
  display: block; padding: 10px 18px;
  font-size: 13.5px; font-weight: 600; color: var(--gray-700);
  text-decoration: none; white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.nav-dropdown a:hover, .nav-dropdown a.active {
  background: #fef2f2; color: #dc2626; border-left-color: #dc2626;
}

/* Мобилно подменю (в mobile-nav-list) */
.mobile-nav-group-local {
  margin-top: 6px;
}

/* ═══════════════════════════════════════════
   PREMIUM MEGA MENU — Modern, Animated
   ═══════════════════════════════════════════ */
.nav-more { position: static; }
.more-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  color: var(--gray-700); cursor: pointer;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap; text-transform: uppercase;
  letter-spacing: .5px; margin: 4px 0;
}
.more-btn:hover {
  color: #fff; background: linear-gradient(135deg, var(--red), #c62828);
  border-color: var(--red); box-shadow: 0 4px 15px rgba(220,38,38,.3);
  transform: translateY(-1px);
}

/* Mega dropdown */
.mega-menu {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  z-index: 997; padding: 36px 0 40px;
  border-top: 3px solid #dc2626;
  box-shadow: 0 30px 60px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.06);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s cubic-bezier(.22,1,.36,1),
              transform .35s cubic-bezier(.22,1,.36,1),
              visibility .3s;
  pointer-events: none;
}
.mega-menu::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,.15), transparent);
}
.mega-menu.open {
  opacity: 1; visibility: visible; transform: translateY(0);
  pointer-events: auto;
}

/* Grid */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}

/* Column */
.mega-col {
  animation: megaFadeUp .5s cubic-bezier(.22,1,.36,1) both;
}
.mega-col:nth-child(1) { animation-delay: .05s; }
.mega-col:nth-child(2) { animation-delay: .1s; }
.mega-col:nth-child(3) { animation-delay: .15s; }
.mega-col:nth-child(4) { animation-delay: .2s; }
.mega-col:nth-child(5) { animation-delay: .25s; }
.mega-col:nth-child(6) { animation-delay: .3s; }
.mega-col:nth-child(7) { animation-delay: .35s; }

@keyframes megaFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Group title */
.mega-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  color: var(--gray-900); letter-spacing: 1.2px;
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}
.mega-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 28px; height: 2px; background: var(--red);
  border-radius: 1px;
  transition: width .3s;
}
.mega-col:hover .mega-title::after { width: 48px; }

/* List */
.mega-list { list-style: none; padding: 0; margin: 0; }
.mega-list li { margin-bottom: 2px; }
.mega-list li a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: all .2s cubic-bezier(.4,0,.2,1);
  white-space: nowrap; position: relative;
  text-decoration: none;
}
.mega-list li a::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 0; background: linear-gradient(180deg, var(--red), #ef4444);
  border-radius: 0 3px 3px 0; transition: width .2s cubic-bezier(.4,0,.2,1);
}
.mega-list li a:hover {
  color: var(--red); background: #fef2f2;
  padding-left: 20px; transform: translateX(2px);
}
.mega-list li a:hover::before { width: 3px; }

/* Icon — Font Awesome professional */
.mega-icon {
  font-size: 13px; width: 22px; text-align: center;
  flex-shrink: 0; color: var(--gray-400);
  transition: color .2s ease, transform .2s ease;
}
.mega-list li a:hover .mega-icon {
  color: var(--red);
  transform: translateX(1px);
}

/* Backdrop overlay when mega menu is open */
.mega-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.25);
  z-index: 996; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  backdrop-filter: blur(2px);
}
.mega-menu.open + .mega-backdrop,
.mega-backdrop.on { opacity: 1; visibility: visible; }

/* Mobile nav groups — larger, bolder */
.mobile-nav-group {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  color: #f87171; letter-spacing: 1.5px;
  padding: 20px 20px 8px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 4px;
}
.mobile-nav-group:first-of-type { border-top: none; margin-top: 0; }
.mobile-nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: 8px 16px; }

/* ===== BREAKING TICKER ===== */
.ticker {
  background: var(--red-light);
  border-bottom: 1px solid #fecaca;
  padding: 8px 0;
  overflow: hidden;
}
.ticker-inner { display: flex; align-items: center; gap: 14px; }
.ticker-label {
  background: var(--red);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: .5px;
  display: flex; align-items: center; gap: 5px;
}
.ticker-text {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}
.ticker-text span {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 48px;
}
@media (max-width: 1024px) { .main-layout { grid-template-columns: 1fr; } }

/* ===== HERO ===== */
.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s;
  margin-bottom: 24px;
  min-height: 340px;
}
.hero-card:hover { box-shadow: var(--shadow-lg); }
.hero-img {
  width: 100%;
  height: 100%;
  background: #1a1a2e;
  object-fit: contain;
  object-position: top center;
  min-height: 340px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  min-height: 340px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  min-height: 340px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  min-height: 340px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  min-height: 340px;
}
.hero-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.3px;
  color: var(--gray-900);
  margin: 12px 0;
}
.hero-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-400);
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-img { min-height: 200px; }
  .hero-content { padding: 20px; }
  .hero-title { font-size: 20px; }
}
/* ===== CATEGORY BADGE ===== */
.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.cat-world, .cat-Свят { background: #dbeafe; color: #1e40af; }
.cat-sport, .cat-Спорт { background: #d1fae5; color: #065f46; }
.cat-biz, .cat-Икономика { background: #fef3c7; color: #92400e; }
.cat-tech, .cat-Технологии { background: #ede9fe; color: #5b21b6; }
.cat-society, .cat-България { background: #ffe4e6; color: #9f1239; }

/* ===== SUB-HERO (4 articles side by side) ===== */
.subhero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .subhero-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .subhero-grid { grid-template-columns: 1fr; } }

.subhero-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.subhero-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.subhero-img {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: top;
  flex-shrink: 0;
}
.subhero-text { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.subhero-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 6px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.subhero-meta {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: auto;
  padding-top: 8px;
}
/* ===== AUTHORS ROW ===== */
.authors-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 768px) { .authors-row { grid-template-columns: 1fr; } }
.author-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  flex-shrink: 0;
}
.author-info strong { font-size: 13px; font-weight: 700; color: var(--gray-900); display: block; margin-bottom: 1px; }
.author-info p { font-size: 11px; color: var(--gray-500); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== ARTICLE GRID ===== */
.section-label {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: '';
  width: 4px; height: 20px;
  background: var(--red);
  border-radius: 2px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 1000px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card-img {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: top;
}
.card-text { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.article-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 6px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.article-meta {
  display: flex; gap: 12px; font-size: 11px; color: var(--gray-400);
  align-items: center; flex-wrap: wrap;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px;
}
.cat-tab {
  padding: 8px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all .15s;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--red); color: white; border-color: var(--red);
}
.cat-count { font-size: 10px; margin-left: 3px; opacity: .7; }

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 68px; align-self: start; }
.sidebar-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 15px; font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
  display: flex; align-items: center; gap: 8px;
}

/* Trending */
.trending-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 8px; border-radius: 6px;
  transition: background .15s;
}
.trending-item:hover { background: var(--gray-50); }
.trending-item:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
.trending-num {
  font-size: 22px; font-weight: 900; color: var(--red);
  opacity: .25; line-height: 1; min-width: 28px;
}
.trending-item:first-child .trending-num { opacity: 1; }
.trending-item:nth-child(2) .trending-num { opacity: .65; }
.trending-item:nth-child(3) .trending-num { opacity: .45; }
.trending-content { flex: 1; min-width: 0; }
.trending-content h4 {
  font-size: 13px; font-weight: 600; color: var(--gray-800);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trending-views { font-size: 11px; color: var(--gray-400); margin-top: 2px; display: block; }
.trending-img {
  width: 52px; height: 52px; border-radius: 4px;
  background-size: cover; background-position: center;
  background-color: #e2e8f0; flex-shrink: 0;
}

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-item {
  padding: 4px 10px;
  background: var(--gray-100); border-radius: 100px;
  font-size: 11px; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all .15s;
}
.tag-item:hover { background: var(--red); color: white; }

/* Fuel Widget */
.fuel-widget { background: var(--dark); color: white; }
.fuel-widget .sidebar-title { color: white; border-bottom-color: rgba(255,255,255,.1); }
.fuel-list { display: flex; flex-direction: column; gap: 10px; }
.fuel-item { display: flex; flex-direction: column; gap: 3px; }
.fuel-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.65); }
.fuel-bar-wrapper { height: 22px; background: rgba(255,255,255,.06); border-radius: 100px; overflow: hidden; }
.fuel-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 100px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; min-width: 55px;
  transition: width .6s ease;
}
.fuel-price { font-size: 11px; font-weight: 700; color: white; white-space: nowrap; }

/* Zodiac */
.zodiac-grid-sidebar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
/* Personal horoscope CTA link */
.zodiac-personal-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.zodiac-personal-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  color: #fff; text-decoration: none;
}
.zodiac-personal-link i { font-size: 14px; }
.zodiac-item {
  touch-action: manipulation;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 3px; border-radius: 8px; cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.zodiac-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(59,130,246,0.08));
  opacity: 0; transition: opacity .3s;
}
.zodiac-item:hover {
  background: var(--gray-100);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139,92,246,0.15);
}
.zodiac-item:hover::before { opacity: 1; }
.zodiac-item:active { transform: scale(0.95); }
.zodiac-icon {
  font-size: 22px;
  animation: zodiacPulse 2.5s ease-in-out infinite;
  transition: transform .3s;
  display: inline-block;
}
.zodiac-item:hover .zodiac-icon {
  animation: zodiacSpin .6s ease-out;
  transform: scale(1.3);
}
.zodiac-name {
  font-size: 10px; font-weight: 600; color: var(--gray-500);
  transition: color .3s;
}
.zodiac-item:hover .zodiac-name { color: var(--primary, #8b5cf6); }

/* Stagger zodiac animations */
.zodiac-item:nth-child(1) .zodiac-icon { animation-delay: 0s; }
.zodiac-item:nth-child(2) .zodiac-icon { animation-delay: 0.2s; }
.zodiac-item:nth-child(3) .zodiac-icon { animation-delay: 0.4s; }
.zodiac-item:nth-child(4) .zodiac-icon { animation-delay: 0.6s; }
.zodiac-item:nth-child(5) .zodiac-icon { animation-delay: 0.8s; }
.zodiac-item:nth-child(6) .zodiac-icon { animation-delay: 1.0s; }
.zodiac-item:nth-child(7) .zodiac-icon { animation-delay: 1.2s; }
.zodiac-item:nth-child(8) .zodiac-icon { animation-delay: 1.4s; }
.zodiac-item:nth-child(9) .zodiac-icon { animation-delay: 0.15s; }
.zodiac-item:nth-child(10) .zodiac-icon { animation-delay: 0.35s; }
.zodiac-item:nth-child(11) .zodiac-icon { animation-delay: 0.55s; }
.zodiac-item:nth-child(12) .zodiac-icon { animation-delay: 0.75s; }

@keyframes zodiacPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}
@keyframes zodiacSpin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.4) rotate(15deg); }
  100% { transform: scale(1.3) rotate(0deg); }
}

/* Zodiac Modal */
.zodiac-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.zodiac-modal-overlay.active {
  opacity: 1; visibility: visible;
}
.zodiac-modal {
  background: linear-gradient(145deg, #1a1a2e, #16213e, #0f3460);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 20px; padding: 40px 30px 30px;
  max-width: 420px; width: 90%; text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 20px 60px rgba(139,92,246,0.3), 0 0 80px rgba(59,130,246,0.15);
}
.zodiac-modal-overlay.active .zodiac-modal {
  transform: translateY(0) scale(1);
}
.zodiac-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 28px;
  color: rgba(255,255,255,0.5); cursor: pointer;
  transition: color .2s, transform .2s; line-height: 1;
}
.zodiac-modal-close:hover {
  color: white; transform: rotate(90deg);
}
.zodiac-modal-icon {
  font-size: 64px; margin-bottom: 10px;
  animation: modalIconIn .5s ease-out, zodiacFloat 3s ease-in-out .5s infinite;
  display: inline-block;
}
@keyframes modalIconIn {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes zodiacFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.zodiac-modal-name {
  color: white; font-size: 24px; font-weight: 700; margin: 0 0 14px;
  background: linear-gradient(135deg, #c084fc, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.zodiac-modal-text {
  color: rgba(255,255,255,0.85); font-size: 16px; line-height: 1.7;
  margin: 0 0 20px;
}
.zodiac-modal-stars {
  display: flex; justify-content: center; gap: 8px; font-size: 18px;
}
.zodiac-modal-stars span {
  animation: starTwinkle 1.2s ease-in-out infinite;
}
.zodiac-modal-stars span:nth-child(1) { animation-delay: 0s; }
.zodiac-modal-stars span:nth-child(2) { animation-delay: 0.15s; }
.zodiac-modal-stars span:nth-child(3) { animation-delay: 0.3s; }
.zodiac-modal-stars span:nth-child(4) { animation-delay: 0.45s; }
.zodiac-modal-stars span:nth-child(5) { animation-delay: 0.6s; }
@keyframes starTwinkle {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark); color: var(--gray-400);
  padding: 40px 0 20px; margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 28px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  color: var(--white); font-size: 13px; font-weight: 700;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: .3px;
}
.footer-col p { font-size: 12px; line-height: 1.6; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 12px; color: var(--gray-400); transition: color .15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-logo { display: flex; align-items: baseline; gap: 3px; margin-bottom: 10px; }
.footer-logo .logo-pulse, .footer-logo .logo-sub { color: #fff !important; }
.footer-social { display: flex; gap: 6px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); transition: all .15s;
}
.footer-social a:hover { background: var(--red); color: white; }
.footer-bottom {
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06);
  text-align: center; font-size: 11px; color: var(--gray-500);
}

/* ===== ARTICLE DETAIL ===== */
.article-detail {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-400); margin-bottom: 20px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--gray-300); }
.breadcrumb .current { color: var(--gray-700); font-weight: 500; }
.article-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-100); }
.article-header .article-title {
  font-size: 30px; font-weight: 900;
  color: var(--gray-900); line-height: 1.15;
  letter-spacing: -.3px; margin: 14px 0 10px;
}
.article-subtitle {
  font-size: 16px; color: var(--gray-500); line-height: 1.5; margin-bottom: 16px;
}
.article-meta-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.meta-left { display: flex; gap: 14px; font-size: 12px; color: var(--gray-500); align-items: center; }
.meta-left a { color: var(--red); font-weight: 600; }
.meta-right { display: flex; gap: 4px; }
.share-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--gray-200); background: var(--white);
  color: var(--gray-500); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; transition: all .15s;
}
.share-btn:hover { background: var(--red); color: white; border-color: var(--red); }

.article-featured-img {
  margin: 0 -36px 24px -36px; overflow: hidden;
}
.article-featured-img img {
  width: 100%; max-height: 420px; object-fit: contain; display: block;
}

.article-body {
  font-size: 16px; line-height: 1.75; color: var(--gray-700);
}
.article-body p { margin-bottom: 16px; }

.article-source-box {
  margin-top: 20px; padding: 14px 18px;
  background: var(--gray-50); border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.read-original-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--red); color: white;
  font-size: 13px; font-weight: 700; border-radius: 6px; transition: all .15s;
}
.read-original-btn:hover { background: var(--red-dark); }
.source-label { font-size: 13px; color: var(--gray-500); }
.source-label a { color: var(--red); font-weight: 600; }
.source-attr { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.source-attr a { color: var(--red); font-weight: 600; }

.article-tags {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.tags-label { font-size: 12px; font-weight: 600; color: var(--gray-500); }

/* Related */
.related-section { margin-top: 24px; }
.section-title {
  font-size: 18px; font-weight: 800; color: var(--gray-900);
  margin-bottom: 14px; display: flex; align-items: center;
}
.section-title span {
  position: relative; padding-bottom: 8px;
}
.section-title span::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--red); border-radius: 2px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .related-grid { grid-template-columns: 1fr; } }

/* RSS badge */
.rss-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px;
  background: #fef3c7; color: #92400e;
  border-radius: 3px; font-size: 9px; font-weight: 700;
  text-transform: uppercase;
}

/* ===== VIDEO SECTION ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all .2s;
}
.video-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.video-thumb:hover img { transform: scale(1.05); }
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background .2s;
}
.play-btn i {
  font-size: 40px; color: white;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform .2s;
}
.video-thumb:hover .play-btn { background: rgba(0,0,0,0.15); }
.video-thumb:hover .play-btn i { transform: scale(1.15); }
.video-info { padding: 12px 14px; }
.video-title {
  font-size: 13px; font-weight: 600; color: var(--gray-900);
  line-height: 1.35; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-channel {
  font-size: 11px; color: var(--gray-500);
}
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .video-grid { grid-template-columns: 1fr; } }

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all .3s;
}
body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  position: fixed; top: 0; left: 0;
  width: 300px; max-width: 85vw; height: 100vh;
  background: var(--white);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-200);
}
.mobile-nav-logo {
  font-size: 22px; font-weight: 900; color: var(--dark);
  letter-spacing: -1px;
}
.mobile-nav-logo span { color: var(--primary, #ef4444); }
.mobile-nav-close {
  background: none; border: none; font-size: 28px;
  cursor: pointer; color: var(--gray-500); line-height: 1;
}
.mobile-nav-list {
  list-style: none; padding: 12px 0; flex: 1; overflow-y: auto;
}
.mobile-nav-list a {
  display: block; padding: 14px 20px;
  font-size: 15px; font-weight: 600; color: var(--gray-800);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: var(--gray-100);
  border-left-color: var(--primary, #ef4444);
  color: var(--primary, #ef4444);
}
.mobile-nav-footer {
  display: flex; gap: 12px;
  padding: 16px 20px; border-top: 1px solid var(--gray-200);
}
.mobile-nav-footer a {
  font-size: 12px; color: var(--gray-500);
}

body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav { display: none; }
  .mobile-nav-overlay { display: block; visibility: hidden; pointer-events: none; }
  .mobile-nav-overlay.open, body.menu-open .mobile-nav-overlay { visibility: visible; pointer-events: auto; }
}


/* ===== МОБИЛНО: снимките на картите са квадратни и показват цялата картинка ===== */
@media (max-width: 768px) {
  .card-img, .subhero-img {
    aspect-ratio: 1 / 1;
    height: auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-header .container { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }
  .header-logo { text-align: left; flex: 1; }
  .header-logo .logo-tagline { display: none; }
  .header-logo .logo-pulse { font-size: 24px; }
  .header-logo .logo-sub { font-size: 14px; }
  .header-logo .logo-link { flex-direction: column; align-items: flex-start; gap: 2px; }
  .header-logo .logo-pulse { letter-spacing: .5px; }
  .header-search { max-width: 180px; }
  .header-left { flex: 1 1 100% !important; }
  .header-left .header-search { max-width: none; width: 100%; }
  .nav-link { padding: 10px 12px; font-size: 11px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-img { min-height: 200px; }
  .hero-content { padding: 20px; }
  .hero-title { font-size: 20px; }
  .subhero-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-detail { padding: 20px; }
  .article-featured-img { margin: 0 -20px 20px -20px; }
  .article-featured-img img { max-height: 240px; }
  .article-header .article-title { font-size: 22px; }
  .main-layout { display: flex; flex-direction: column; }
  .sidebar { order: 2; }
  .content { order: 1; }
  .zodiac-modal { width: 92%; padding: 30px 20px 20px; }
  .zodiac-modal-icon { font-size: 48px; }
  .zodiac-modal-name { font-size: 20px; }
  .zodiac-modal-text { font-size: 14px; line-height: 1.6; }
}

@media (max-width: 480px) {
  .top-strip { font-size: 10px; }
  .strip-left span { margin-right: 8px; }
  .strip-right { gap: 6px; }
  .strip-link { font-size: 10px; }
  .strip-social { display: none; }
  .subhero-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .authors-row { grid-template-columns: 1fr; }
  .category-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cat-tab { white-space: nowrap; font-size: 13px; padding: 8px 14px; }
  .ticker { font-size: 11px; }
  .zodiac-grid-sidebar { grid-template-columns: repeat(4, 1fr); gap: 4px; }
/* Personal horoscope CTA link */
.zodiac-personal-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.zodiac-personal-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  color: #fff; text-decoration: none;
}
.zodiac-personal-link i { font-size: 14px; }
  .zodiac-item { padding: 6px 2px; }
  .zodiac-icon { font-size: 18px; }
  .zodiac-name { font-size: 9px; }
}

/* ===== Лого (изображение) ===== */
.site-logo{display:block;height:56px;width:auto}
.header-logo .logo-link{align-items:center}
.mobile-nav-logo-img{height:36px;width:auto;display:block}
@media(max-width:768px){.site-logo{height:40px}}

/* ===== Плаващи бутони: скрол нагоре + размер на текста ===== */
.floating-actions{position:fixed;right:14px;bottom:14px;z-index:999;display:flex;flex-direction:column;align-items:center;gap:7px;background:rgba(255,255,255,.92);padding:7px;border-radius:16px;border:1px solid rgba(204,0,0,.14);box-shadow:0 8px 26px rgba(0,0,0,.16)}
.to-top{width:44px;height:44px;border-radius:50%;background:#cc0000;color:#fff;border:2px solid #fff;font-size:19px;font-weight:800;cursor:pointer;line-height:1;box-shadow:0 4px 14px rgba(204,0,0,.45);opacity:0;visibility:hidden;transform:translateY(10px);transition:all .25s ease}
.to-top.show{opacity:1;visibility:visible;transform:translateY(0)}
.to-top:hover{background:#a00000}
.font-ctl{width:37px;height:37px;border-radius:50%;background:#fff;border:2px solid #cc0000;color:#cc0000;font-size:19px;font-weight:900;cursor:pointer;line-height:1;box-shadow:0 3px 10px rgba(204,0,0,.2);transition:all .15s ease}
.font-ctl:hover{background:#cc0000;color:#fff}
@media(max-width:768px){.floating-actions{display:none}}
