/* ==========================================================================
   شبكة البوصلة الإخبارية — التصميم الزجاجي الفاخر (Dark & Light Glassmorphism)
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-main: #090e1a;
  --bg-gradient: radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.12), transparent 40%),
                 radial-gradient(circle at 85% 80%, rgba(30, 64, 175, 0.1), transparent 45%);
  --glass-bg: rgba(17, 25, 40, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --breaking-red: #ef4444;
  --sponsor-gold: #f59e0b;
  --verified-blue: #38bdf8;
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.55);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-gradient: radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.08), transparent 40%),
                 radial-gradient(circle at 85% 80%, rgba(14, 165, 233, 0.08), transparent 45%);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-highlight: rgba(15, 23, 42, 0.03);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --verified-blue: #0284c7;
  --shadow-lg: 0 12px 32px -6px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: 95px;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hidden {
  display: none !important;
}

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

.glass-surface {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

/* ==================== الترويسة العلوية ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: none;
  border-left: none;
  border-right: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 12px;
}

.header-right,
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  height: 44px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.sm-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* ==================== درج البحث الذكي ==================== */
.search-drawer {
  border-top: 1px solid var(--glass-border);
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.18);
}

.search-drawer-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-icon {
  color: var(--accent);
}

#global-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
}

.search-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 99px;
}

/* ==================== شريط الأقسام ==================== */
.categories-bar {
  border-top: 1px solid var(--glass-border);
  padding: 8px 0;
}

.categories-scroll,
.subcategories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.categories-scroll::-webkit-scrollbar,
.subcategories-scroll::-webkit-scrollbar {
  display: none;
}

.subcategories-scroll {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--glass-border);
}

.cat-pill,
.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill .material-symbols-rounded {
  font-size: 18px;
}

.cat-pill.active,
.sub-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* ==================== شريط العاجل الدوّار ==================== */
.breaking-wrap {
  margin-top: 14px;
}

.breaking-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border-color: rgba(239, 68, 68, 0.35);
}

.breaking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--breaking-red);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulseAnim 1.4s infinite;
}

@keyframes pulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.45; }
}

.breaking-content {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breaking-item {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
}

.breaking-item:hover {
  color: var(--accent);
}

.breaking-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.breaking-counter {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

.ticker-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==================== الإعلانات والراعي الرسمي ==================== */
.ad-slot-wrapper {
  margin: 16px 0;
}

.glass-ad-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.glass-ad-clickable {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.glass-ad-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.glass-ad-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--sponsor-gold);
}

.glass-ad-title {
  font-size: 1rem;
  font-weight: 800;
  margin-top: 2px;
}

.glass-ad-sponsor {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.glass-ad-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.leaderboard-ad-banner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: var(--glass-bg);
}

.leaderboard-close-float {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}

.leaderboard-ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.leaderboard-ad-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.leaderboard-ad-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.84rem;
  background: rgba(0, 0, 0, 0.35);
}

/* ==================== البطاقات وتخطيط الصفحة الرئيسية ==================== */
.main-content {
  margin-top: 20px;
}

.hero-section {
  margin-bottom: 26px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.hero-img-wrap {
  min-height: 310px;
  background: #1e293b;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.hero-title {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.4;
}

.hero-summary {
  color: var(--text-secondary);
  font-size: 0.96rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-layout-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  align-items: start;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-thumb-wrap {
  position: relative;
  height: 190px;
  background: #1e293b;
  overflow: hidden;
}

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

.news-card:hover .card-thumb-wrap img {
  transform: scale(1.04);
}

.card-cat-float {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(9, 14, 26, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.media-overlay-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.media-overlay-icon .material-symbols-rounded {
  font-size: 44px;
  background: rgba(59, 130, 246, 0.85);
  border-radius: 50%;
  padding: 10px;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.card-author-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.verified-badge {
  font-family: 'Material Symbols Rounded';
  font-size: 16px;
  color: var(--verified-blue);
  vertical-align: middle;
  line-height: 1;
}

/* ==================== الأكثر قراءة وحالة التحميل ==================== */
.skeleton-card {
  grid-column: 1 / -1;
  padding: 44px 20px;
  text-align: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner-ring {
  width: 32px;
  height: 32px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinAnim 0.8s linear infinite;
}

@keyframes spinAnim {
  to { transform: rotate(360deg); }
}

.trending-widget {
  padding: 20px;
  border-radius: var(--radius-md);
  position: sticky;
  top: 140px;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.trend-icon {
  color: var(--accent);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--glass-highlight);
  cursor: pointer;
  transition: background 0.2s ease;
}

.trend-item:hover {
  background: rgba(59, 130, 246, 0.12);
}

.trend-rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trend-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.trend-views {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==================== صفحة قراءة المقال والملف الشخصي ==================== */
.article-container,
.author-profile-card,
.static-page-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

.article-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.back-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.article-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-pill {
  background: rgba(59, 130, 246, 0.16);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
}

.article-main-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 14px;
}

.article-lead-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  padding: 14px 18px;
  border-right: 4px solid var(--accent);
  background: var(--glass-highlight);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 22px;
}

.author-meta-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: right;
}

.author-avatar-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.article-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.views-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--glass-highlight);
  padding: 6px 12px;
  border-radius: 99px;
}

.article-figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.podcast-player-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  margin-bottom: 22px;
}

.podcast-info-side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.podcast-cover {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.podcast-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 99px;
}

.article-content-body {
  font-size: 1.08rem;
  line-height: 1.95;
}

.article-content-body p {
  margin-bottom: 18px;
}

.article-content-body h2,
.article-content-body h3 {
  margin: 26px 0 12px;
  color: var(--accent);
}

.article-content-body blockquote {
  padding: 14px 20px;
  border-right: 4px solid var(--accent);
  background: var(--glass-highlight);
  border-radius: var(--radius-sm);
  margin: 18px 0;
  font-style: italic;
}

.article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag-chip {
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==================== ملف الكاتب والقائمة الجانبية والتذييل ==================== */
.author-profile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.author-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.author-job-title {
  color: var(--accent);
  font-weight: 700;
  margin-top: 4px;
}

.author-bio-text {
  color: var(--text-secondary);
  margin: 8px 0 12px;
}

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

.social-pill {
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 190;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 290px;
  height: 100vh;
  z-index: 200;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.28s ease;
}

.sidebar-drawer.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo,
.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.sidebar-menu-list {
  list-style: none;
  margin: 16px 0;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-menu-btn.active,
.sidebar-menu-btn:hover {
  background: var(--glass-highlight);
  border-color: var(--glass-border);
  color: var(--accent);
}

.site-footer {
  margin-top: 48px;
  padding: 36px 0;
  border-bottom: none;
  border-left: none;
  border-right: none;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 8px 0 14px;
  max-width: 460px;
}

.footer-legal-links {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer-link-btn:hover {
  color: var(--accent);
}

.copyright-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==================== شريط الهواتف الزجاجي العائم والإشعارات ==================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 460px;
  height: 64px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 150;
}

.mob-nav-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  height: 52px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mob-nav-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 52px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.mob-nav-btn.active {
  color: var(--accent);
}

.public-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 700;
  z-index: 300;
  box-shadow: var(--shadow-lg);
}

/* ==================== التجاوب مع الشاشات ==================== */
@media (max-width: 960px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-img-wrap {
    min-height: 220px;
  }
  .home-layout-grid {
    grid-template-columns: 1fr;
  }
  .trending-widget {
    position: static;
  }
}

@media (max-width: 600px) {
  .article-container,
  .author-profile-card,
  .static-page-card {
    padding: 18px;
  }
  .article-main-title {
    font-size: 1.4rem;
  }
  .hero-title {
    font-size: 1.25rem;
  }
}
