/* ===================================================================
   ABR UNIVERSE - ULTIMATE DIGITAL MAGAZINE PORTAL
   Theme: Next-Gen Editorial / Glassmorphic Tech & Lifestyle
   Colors: Deep Cosmic Navy, Neon Purple Orbit, Electric Cyan, Pure Clean White
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Brand Identity */
  --primary-navy: #0b0f19;
  --primary-dark: #07090e;
  --orbit-purple: #8b5cf6;
  --orbit-purple-glow: rgba(139, 92, 246, 0.35);
  --orbit-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #d946ef 100%);
  --brand-gradient-hover: linear-gradient(135deg, #6366f1 0%, #9333ea 50%, #e879f9 100%);
  
  /* Theme Variables (Default Dark Mode - Fits ABR Universe Logo) */
  --bg-body: #080b11;
  --bg-surface: #0f1422;
  --bg-surface-elevated: #161d31;
  --bg-surface-card: #121829;
  --bg-glass: rgba(15, 20, 34, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(139, 92, 246, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --header-bg: rgba(8, 11, 17, 0.85);
  --mega-bg: #0d1220;
  --card-hover-border: #7c3aed;
  
  --ad-bg: #0b0f1a;
  --ad-border: rgba(139, 92, 246, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 10px 30px -5px rgba(124, 58, 237, 0.3);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: #e2e8f0;
  --border-color-glow: rgba(99, 102, 241, 0.25);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  
  --header-bg: rgba(255, 255, 255, 0.9);
  --mega-bg: #ffffff;
  --card-hover-border: #6366f1;
  
  --ad-bg: #f8fafc;
  --ad-border: #cbd5e1;
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar & Live Ticker */
.top-ticker-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 101;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ef4444;
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-live 2s infinite;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

@keyframes pulse-live {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.ticker-text-marquee {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.ticker-text-marquee a:hover {
  color: var(--orbit-purple);
  text-decoration: underline;
}

.ticker-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.ticker-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Header & Main Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.main-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.3));
}

.header-search-wrap {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-input-box {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-input-box:focus {
  border-color: var(--orbit-purple);
  box-shadow: 0 0 0 3px var(--orbit-purple-glow);
  background: var(--bg-surface);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  border-color: var(--orbit-purple);
  color: var(--orbit-purple);
  transform: translateY(-2px);
}

.subscribe-btn {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
  transition: var(--transition);
}

.subscribe-btn:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
}

/* 11 Categories Navigation Bar */
.category-nav-bar {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  position: relative;
  width: 100%;
}

.category-nav-bar .container {
  max-width: 1480px;
  padding: 0 16px;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  gap: 2px;
}

.nav-item {
  position: static; /* Allows mega-menu to span full container width */
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--orbit-purple);
  border-bottom-color: var(--orbit-purple);
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-arrow {
  font-size: 8px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Mega-Menu Panel */
.mega-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--mega-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  box-shadow: var(--shadow-subtle), 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  padding: 24px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 999;
}

.nav-item:hover .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 280px;
  gap: 24px;
}

.mega-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orbit-purple);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subcat-list li {
  margin-bottom: 8px;
}

.subcat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.subcat-link:hover {
  background: var(--bg-surface-elevated);
  color: var(--orbit-purple);
  transform: translateX(4px);
}

.mega-featured-card {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.mega-featured-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-3px);
}

.mega-card-img {
  height: 120px;
  width: 100%;
  object-fit: cover;
}

.mega-card-content {
  padding: 12px;
}

.mega-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 4px;
}

.mega-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* AdSense Banner Placements */
.ad-slot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  text-align: center;
  max-width: 100%;
}

.ad-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ad-box-leaderboard {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.ad-inner-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}

.ad-badge {
  font-size: 11px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--orbit-purple);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* HERO Section: Magazine Grid */
.hero-magazine-section {
  padding: 24px 0 40px;
}

.magazine-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 18px;
}

.magazine-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-card);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.magazine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--card-hover-border);
}

.magazine-card-featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.magazine-card:hover .card-bg-img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(8, 11, 17, 0) 30%, rgba(8, 11, 17, 0.8) 70%, rgba(8, 11, 17, 0.95) 100%);
  z-index: 2;
}

.card-content-overlay {
  position: relative;
  z-index: 3;
  padding: 24px;
}

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #fff;
}

.tag-ai { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tag-tech { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.tag-money { background: linear-gradient(135deg, #059669, #34d399); }
.tag-gaming { background: linear-gradient(135deg, #dc2626, #f87171); }
.tag-movies { background: linear-gradient(135deg, #db2777, #f472b6); }
.tag-music { background: linear-gradient(135deg, #9333ea, #c084fc); }
.tag-science { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.tag-lifestyle { background: linear-gradient(135deg, #d97706, #fbbf24); }

.card-title-lg {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-title-md {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 600;
}

.author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* Trending Topic Pills Bar */
.trending-topics-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.trending-topics-bar::-webkit-scrollbar {
  display: none;
}

.trending-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-pink);
  white-space: nowrap;
}

.trend-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.trend-pill:hover {
  background: var(--orbit-purple);
  color: #fff;
  border-color: var(--orbit-purple);
  transform: translateY(-2px);
}

/* Main Content Layout with 2-Column Split (70% Content / 30% Sidebar) */
.main-portal-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  margin-bottom: 60px;
}

/* Section Header Component */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--brand-gradient);
}

.section-title {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orbit-purple);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-view-all:hover {
  text-decoration: underline;
  gap: 8px;
}

/* Article Grid Layouts */
.articles-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.standard-article-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.standard-article-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
}

.card-thumb-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.standard-article-card:hover .card-thumb-img {
  transform: scale(1.06);
}

.card-floating-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.card-body-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-article-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text-main);
  transition: var(--transition);
}

.standard-article-card:hover .card-article-title {
  color: var(--orbit-purple);
}

.card-article-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-subtle);
}

/* Horizontal List Card Component */
.horizontal-news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.horizontal-article-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: var(--transition);
}

.horizontal-article-item:hover {
  border-color: var(--card-hover-border);
  transform: translateX(4px);
}

.h-thumb-wrap {
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.h-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.horizontal-article-item:hover .h-thumb-img {
  transform: scale(1.05);
}

.h-content-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.h-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.horizontal-article-item:hover .h-title {
  color: var(--orbit-purple);
}

/* Sidebar Widgets */
.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--orbit-purple);
}

/* Sticky Ad Widget */
.sidebar-sticky-ad {
  position: sticky;
  top: 90px;
  text-align: center;
}

.ad-box-rectangle {
  width: 100%;
  min-height: 280px;
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 8px;
}

/* Newsletter Widget */
.newsletter-card-gradient {
  background: linear-gradient(145deg, #1e1b4b 0%, #17112d 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.nl-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-block;
}

.nl-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.nl-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.nl-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nl-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 11px 16px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}

.nl-input::placeholder {
  color: #94a3b8;
}

.nl-input:focus {
  border-color: var(--orbit-purple);
  background: rgba(255, 255, 255, 0.15);
}

.nl-submit-btn {
  background: var(--brand-gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.nl-submit-btn:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-2px);
}

/* Category Quick Explorer Pill Grid */
.category-pills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.cat-pill-item:hover {
  background: var(--orbit-purple);
  color: #fff;
  border-color: var(--orbit-purple);
}

.cat-count {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* Site Footer */
footer.site-footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
  color: #94a3b8;
  font-size: 13.5px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-bio {
  color: #94a3b8;
  line-height: 1.6;
  margin: 16px 0 20px;
  font-size: 13.5px;
}

.social-links-row {
  display: flex;
  gap: 10px;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
}

.social-circle-btn:hover {
  background: var(--orbit-purple);
  color: #fff;
  border-color: var(--orbit-purple);
  transform: translateY(-3px);
}

.footer-column-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-link-list li {
  margin-bottom: 10px;
}

.footer-link-list a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-link-list a:hover {
  color: var(--orbit-purple);
  padding-left: 4px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--text-main);
}

/* Modal / Live Article Reader */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-article-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-backdrop.active .modal-article-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 18px;
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #fff;
}

.modal-content-inner {
  padding: 36px;
}

/* Responsive Media Queries */
@media (max-width: 1360px) {
  .nav-link {
    font-size: 10.5px;
    padding: 12px 4px;
    letter-spacing: 0.01em;
  }
  .category-nav-bar .container {
    padding: 0 8px;
  }
}

@media (max-width: 1200px) {
  .nav-link {
    font-size: 10px;
    padding: 10px 3px;
  }
  .mega-grid {
    grid-template-columns: 200px 1fr 1fr;
  }
  .mega-grid .mega-col:last-child {
    display: none;
  }
}

@media (max-width: 1024px) {
  .magazine-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .magazine-card-featured {
    grid-column: 1 / 3;
    grid-row: auto;
    height: 380px;
  }
  .main-portal-layout {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-nav-bar {
    overflow-x: auto;
  }
  .nav-menu-list {
    min-width: 980px;
  }
}

@media (max-width: 768px) {
  .articles-grid-2col {
    grid-template-columns: 1fr;
  }
  .horizontal-article-item {
    grid-template-columns: 1fr;
  }
  .h-thumb-wrap {
    height: 180px;
  }
  .magazine-grid {
    grid-template-columns: 1fr;
  }
  .magazine-card-featured {
    grid-column: 1;
    height: 320px;
  }
  .header-search-wrap {
    display: none;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

/* Interactive Engagement Bar (Like & Share) */
.article-engagement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
  padding: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.like-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s, border-color 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.like-btn:hover {
  transform: scale(1.05);
  border-color: #ec4899;
}

.like-btn.liked {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #fff;
  border-color: #ec4899;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.like-btn.liked .heart-icon {
  animation: heartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.like-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
}

.live-view-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--orbit-purple);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
