/**
 * ALHADAF Sports Platform - Master Design System & Stylesheet
 * 
 * Version: 2.0.0
 * Direction: RTL Native First
 * Theme Support: Light & Dark Modes with High-Contrast Typography
 */

/* ==========================================================================
   1. DESIGN TOKENS (CSS VARIABLES)
   ========================================================================== */
:root {
  /* Brand Sports Palette */
  --alhadaf-primary: #0F172A;
  --alhadaf-primary-rgb: 15, 23, 42;
  --alhadaf-secondary: #1E293B;
  --alhadaf-secondary-rgb: 30, 41, 59;
  --alhadaf-accent: #E63946;
  --alhadaf-accent-rgb: 230, 57, 70;
  --alhadaf-accent-hover: #D62828;

  /* Sports Status */
  --alhadaf-live: #EF4444;
  --alhadaf-success: #10B981;
  --alhadaf-warning: #F59E0B;
  --alhadaf-info: #0EA5E9;

  /* Light Mode Surface & Content (Crystal-Clear High Contrast) */
  --alhadaf-bg: #F4F6FA;
  --alhadaf-bg-alt: #EAEFF6;
  --alhadaf-surface: #FFFFFF;
  --alhadaf-surface-hover: #F8FAFC;
  --alhadaf-border: #E2E8F0;
  --alhadaf-border-subtle: #EDF2F7;
  
  --alhadaf-text-main: #0F172A;
  --alhadaf-text-muted: #334155;
  --alhadaf-text-light: #64748B;
  --alhadaf-white: #FFFFFF;
  --alhadaf-black: #020617;

  /* Header System (Always Unified Dark Sports Navy) */
  --alhadaf-header-bg: #0B132B;
  --alhadaf-header-topbar: #070D1E;
  --alhadaf-header-surface: #121C38;
  --alhadaf-header-card: #162345;
  --alhadaf-header-card-hover: #1C2D57;
  --alhadaf-header-border: #223460;
  --alhadaf-header-text: #FFFFFF;
  --alhadaf-header-muted: #94A3B8;

  /* Typography */
  --alhadaf-font-primary: 'IBM Plex Sans Arabic', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --alhadaf-font-heading: 'IBM Plex Sans Arabic', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --alhadaf-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --container-max: 1320px;
  --container-padding: 20px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 12px 30px rgba(230, 57, 70, 0.18);

  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.25s ease-in-out;
}

/* ==========================================================================
   2. DARK MODE PALETTE
   ========================================================================== */
[data-theme="dark"] {
  --alhadaf-bg: #0B1120;
  --alhadaf-bg-alt: #0F172A;
  --alhadaf-surface: #1E293B;
  --alhadaf-surface-hover: #24344D;
  --alhadaf-border: #334155;
  --alhadaf-border-subtle: #1E293B;

  --alhadaf-text-main: #F8FAFC;
  --alhadaf-text-muted: #94A3B8;
  --alhadaf-text-light: #64748B;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   3. BASE & RESET (RTL FIRST)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--alhadaf-font-primary);
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--alhadaf-bg) !important;
  color: var(--alhadaf-text-main) !important;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Prevent WordPress custom-background from overriding */
body.custom-background {
  background-color: var(--alhadaf-bg) !important;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--alhadaf-accent);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Visible keyboard focus (never remove without a replacement). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--alhadaf-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Headings with high contrast */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--alhadaf-font-heading);
  font-weight: var(--font-bold);
  line-height: 1.35;
  color: var(--alhadaf-text-main);
  margin-bottom: var(--space-sm);
}

h1 { font-size: 2.15rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.85rem; }

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */
.alhadaf-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.alhadaf-grid {
  display: grid;
  gap: var(--space-lg);
}

.alhadaf-grid-12 { grid-template-columns: repeat(12, 1fr); }
.alhadaf-grid-4 { grid-template-columns: repeat(4, 1fr); }
.alhadaf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.alhadaf-grid-2 { grid-template-columns: repeat(2, 1fr); }

.alhadaf-flex {
  display: flex;
  align-items: center;
}

.alhadaf-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alhadaf-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   5. UI COMPONENTS (BUTTONS, BADGES, CARDS)
   ========================================================================== */

/* Buttons */
.alhadaf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  font-weight: var(--font-semibold);
  font-size: 0.925rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

.alhadaf-btn-primary {
  background-color: var(--alhadaf-accent);
  color: var(--alhadaf-white) !important;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.alhadaf-btn-primary:hover {
  background-color: var(--alhadaf-accent-hover);
  color: var(--alhadaf-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.35);
}

.alhadaf-btn-secondary {
  background-color: var(--alhadaf-surface);
  color: var(--alhadaf-text-main) !important;
  border: 1px solid var(--alhadaf-border);
}

.alhadaf-btn-secondary:hover {
  border-color: var(--alhadaf-accent);
  color: var(--alhadaf-accent) !important;
}

.alhadaf-btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Badges */
.alhadaf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.775rem;
  font-weight: var(--font-bold);
  border-radius: var(--radius-xs);
  background-color: var(--alhadaf-primary);
  color: #FFFFFF !important;
  letter-spacing: 0.3px;
}

.alhadaf-badge-accent {
  background-color: var(--alhadaf-accent);
}

.alhadaf-badge-live {
  background-color: var(--alhadaf-live);
  animation: alhadaf-pulse 1.8s infinite;
}

@keyframes alhadaf-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.65; }
  100% { opacity: 1; }
}

/* Cards */
.alhadaf-card {
  background-color: var(--alhadaf-surface);
  border: 1px solid var(--alhadaf-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.alhadaf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--alhadaf-accent);
}

/* Section Header */
.alhadaf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--alhadaf-border);
  position: relative;
}

.alhadaf-section-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: var(--alhadaf-accent);
}

.alhadaf-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1.35rem;
  font-weight: var(--font-bold);
  color: var(--alhadaf-text-main);
  margin-bottom: 0;
}

.alhadaf-view-more {
  font-size: 0.85rem;
  font-weight: var(--font-semibold);
  color: var(--alhadaf-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.alhadaf-view-more:hover {
  color: var(--alhadaf-accent);
}

/* ==========================================================================
   6. HEADER & NAVIGATION (UNIFIED SPORTS DARK HEADER)
   ========================================================================== */
.alhadaf-site-header {
  position: relative;
  width: 100%;
  background-color: var(--alhadaf-header-bg);
  color: var(--alhadaf-header-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

/* Topbar */
.alhadaf-topbar {
  background-color: var(--alhadaf-header-topbar);
  color: var(--alhadaf-header-muted);
  font-size: 0.825rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.alhadaf-topbar a {
  color: var(--alhadaf-header-muted);
}

.alhadaf-topbar a:hover {
  color: #FFFFFF;
}

/* Main Header */
.alhadaf-main-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alhadaf-logo-text {
  font-size: 1.85rem;
  font-weight: var(--font-extrabold);
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1;
}

.alhadaf-logo-text span {
  color: var(--alhadaf-accent);
}

.alhadaf-tagline {
  font-size: 0.75rem;
  color: var(--alhadaf-header-muted);
  display: block;
  margin-top: 2px;
}

/* Header Search */
.alhadaf-header-search-input {
  width: 100%;
  padding: 9px 40px 9px 16px;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-pill);
  color: #FFFFFF !important;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.alhadaf-header-search-input:focus {
  background-color: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--alhadaf-accent) !important;
}

.alhadaf-header-search-input::placeholder {
  color: var(--alhadaf-header-muted) !important;
}

/* Navbar */
.alhadaf-nav-bar {
  background-color: rgba(255, 255, 255, 0.03);
}

.alhadaf-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.alhadaf-menu > li > a {
  display: block;
  padding: 12px 16px;
  font-size: 0.925rem;
  font-weight: var(--font-semibold);
  color: #CBD5E1;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
}

.alhadaf-menu > li > a:hover,
.alhadaf-menu > li.current-menu-item > a {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.06);
  border-bottom-color: var(--alhadaf-accent);
}

/* Breaking Ticker */
.alhadaf-ticker-wrap {
  background-color: #070D1E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 38px;
  color: #CBD5E1;
  overflow: hidden;
}

.alhadaf-ticker-badge {
  background-color: var(--alhadaf-accent);
  color: #FFFFFF;
  font-weight: var(--font-bold);
  font-size: 0.8rem;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.alhadaf-ticker-link {
  color: #E2E8F0;
  font-size: 0.85rem;
}

.alhadaf-ticker-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Theme Toggle Button */
.alhadaf-theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.alhadaf-theme-toggle:hover {
  background-color: var(--alhadaf-accent);
  color: #FFFFFF;
}



/* ==========================================================================
   8. HERO NEWS & SECTIONS
   ========================================================================== */
.alhadaf-hero-section {
  padding: var(--space-lg) 0;
}

.alhadaf-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

.alhadaf-hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--alhadaf-border);
}

.alhadaf-hero-main img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.alhadaf-hero-main:hover img {
  transform: scale(1.03);
}

.alhadaf-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(180deg, rgba(11, 19, 43, 0) 0%, rgba(11, 19, 43, 0.85) 60%, rgba(11, 19, 43, 0.98) 100%);
  color: #FFFFFF;
}

.alhadaf-hero-title {
  color: #FFFFFF;
  font-size: 1.75rem;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.alhadaf-hero-title a {
  color: #FFFFFF;
}

.alhadaf-hero-title a:hover {
  color: var(--alhadaf-accent);
}

.alhadaf-hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.alhadaf-hero-side-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm);
}

.alhadaf-hero-side-thumb {
  flex: 0 0 110px;
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.alhadaf-hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   9. SINGLE ARTICLE & PAGE CONTENT
   ========================================================================== */
.alhadaf-article-container {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: var(--space-2xl);
  padding: var(--space-xl) 0;
}

.alhadaf-article-main {
  min-width: 0; /* Prevents grid blowout */
}

.alhadaf-article-title {
  font-size: 2.15rem;
  line-height: 1.35;
  margin: var(--space-sm) 0;
}

.alhadaf-article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--alhadaf-text-light);
  font-size: 0.875rem;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--alhadaf-border);
}

.alhadaf-reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 4px;
  background-color: var(--alhadaf-accent);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease-out;
}

.alhadaf-article-content {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--alhadaf-text-main);
  margin-top: var(--space-lg);
}

.alhadaf-article-content p {
  margin-bottom: 1.5rem;
}

.alhadaf-article-content img {
  border-radius: var(--radius-md);
  margin: var(--space-lg) auto;
  box-shadow: var(--shadow-sm);
}

/* Static Page Styling */
.alhadaf-page-card {
  background-color: var(--alhadaf-surface);
  border: 1px solid var(--alhadaf-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   10. SIDEBAR & WORDPRESS CORE WIDGETS (Consolidated in Section 13)
   ========================================================================== */

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.alhadaf-site-footer {
  background-color: var(--alhadaf-header-bg);
  color: #94A3B8;
  margin-top: auto;
  border-top: 4px solid var(--alhadaf-accent);
}

.alhadaf-footer-main {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.alhadaf-footer-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: 10px;
}

.alhadaf-footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: var(--alhadaf-accent);
}

.alhadaf-footer-links li {
  margin-bottom: 10px;
}

.alhadaf-footer-links a {
  color: #94A3B8;
  transition: color var(--transition-fast), padding var(--transition-fast);
}

.alhadaf-footer-links a:hover {
  color: #FFFFFF;
  padding-right: 6px;
}

.alhadaf-footer-bottom {
  background-color: #070D1E;
  padding: var(--space-md) 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   12. MOBILE FIRST NAVIGATION & APP DRAWER
   ========================================================================== */

/* Utility Visibility Classes */
.show-on-mobile {
  display: none !important;
}

.hide-on-mobile {
  display: block;
}

/* Mobile Action Buttons in Header */
.alhadaf-mobile-action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.alhadaf-mobile-action-btn:hover,
.alhadaf-mobile-action-btn:active {
  background-color: var(--alhadaf-accent);
  color: #FFFFFF;
}

/* Mobile Dropdown Search Field */
.alhadaf-mobile-search-bar {
  background-color: var(--alhadaf-header-topbar);
  border-bottom: 1px solid var(--alhadaf-header-border);
  padding: 8px 0;
  animation: alhadaf-slide-down 0.2s ease-out;
}

@keyframes alhadaf-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Drawer Backdrop */
.alhadaf-drawer-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.alhadaf-drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Off-Canvas Drawer (Slides in from Right) */
.alhadaf-mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  max-height: 100vh;
  background-color: var(--alhadaf-header-bg);
  color: #FFFFFF;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.alhadaf-mobile-drawer.is-active {
  right: 0;
}

/* Drawer Header */
.alhadaf-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alhadaf-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.alhadaf-drawer-close:hover {
  background-color: var(--alhadaf-accent);
}

/* Drawer Search */
.alhadaf-drawer-search {
  padding: 16px 20px 10px;
}

.alhadaf-drawer-search-input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  background-color: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-pill);
  color: #FFFFFF !important;
  font-size: 0.875rem;
}

.alhadaf-drawer-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  display: flex;
  align-items: center;
}

/* Drawer Navigation Links */
.alhadaf-drawer-nav {
  flex-grow: 1;
  padding: 10px 0;
}

.alhadaf-drawer-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E8F0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.alhadaf-drawer-menu li a:hover,
.alhadaf-drawer-menu li a:active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--alhadaf-accent);
  padding-right: 26px;
}

.alhadaf-nav-icon {
  font-size: 1.15rem;
}

/* Drawer Footer */
.alhadaf-drawer-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(0, 0, 0, 0.2);
}

.alhadaf-drawer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.alhadaf-drawer-social-btn:hover {
  background: var(--alhadaf-accent);
}

/* ==========================================================================
   13. MOBILE APP BOTTOM NAVIGATION BAR
   ========================================================================== */
.alhadaf-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--alhadaf-header-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  z-index: 9998;
}

.alhadaf-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.alhadaf-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  color: #94A3B8;
  font-size: 0.725rem;
  font-weight: 600;
  transition: color 0.15s;
  cursor: pointer;
  padding: 0;
  background: none;
}

.alhadaf-bottom-nav-item.is-active,
.alhadaf-bottom-nav-item:hover,
.alhadaf-bottom-nav-item:active {
  color: var(--alhadaf-accent);
}

.alhadaf-bottom-nav-dot {
  position: absolute;
  top: 0;
  right: -2px;
  width: 7px;
  height: 7px;
  background-color: var(--alhadaf-live);
  border-radius: 50%;
  animation: alhadaf-pulse 1.5s infinite;
}

/* ==========================================================================
   14. COMPREHENSIVE RESPONSIVENESS & BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .alhadaf-hero-grid,
  .alhadaf-article-container {
    grid-template-columns: 1fr !important;
  }
  .alhadaf-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  /* Show Mobile Nav Controls */
  .show-on-mobile {
    display: inline-flex !important;
  }
  .hide-on-mobile {
    display: none !important;
  }

  /* Reveal Bottom App Nav */
  .alhadaf-mobile-bottom-nav {
    display: block;
  }

  /* Add padding to page bottom so footer content is not blocked by bottom bar */
  body {
    padding-bottom: 60px;
  }

  /* Header on Mobile */
  .alhadaf-main-header {
    padding: 10px 0;
  }

  .alhadaf-logo-text {
    font-size: 1.5rem;
  }

  .alhadaf-topbar {
    display: none !important;
  }

  .alhadaf-nav-bar {
    display: none !important; /* Replaced by sleek Mobile Drawer */
  }



  /* Responsive Grids */
  .alhadaf-grid-3,
  .alhadaf-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* News Card Media on Mobile */
  .alhadaf-news-card .alhadaf-card-media {
    height: 180px;
  }

  /* Hero Section on Mobile */
  .alhadaf-hero-main {
    min-height: 260px;
  }

  .alhadaf-hero-overlay {
    padding: 16px;
  }

  .alhadaf-hero-title {
    font-size: 1.3rem;
  }

  /* Static Pages & Article Cards on Mobile */
  .alhadaf-page-card,
  .alhadaf-card {
    padding: 16px;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 12px;
  }

  .alhadaf-logo-text {
    font-size: 1.4rem;
  }


}

/* ==========================================================================
   15. COMMENTS & NATIVE WIDGETS REFINEMENTS
   ========================================================================== */

/* Native Widgets */
.widget {
  background-color: var(--alhadaf-surface);
  border: 1px solid var(--alhadaf-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: var(--font-bold);
  color: var(--alhadaf-text-main);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--alhadaf-accent);
}

.widget ul {
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--alhadaf-border);
  font-size: 0.9rem;
  color: var(--alhadaf-text-muted);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a:hover {
  color: var(--alhadaf-accent);
}

/* Native Search Form in Widget */
.search-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   WIDGETS & SIDEBAR PROFESSIONAL STYLING
   ========================================================================== */
.widget {
  background-color: var(--alhadaf-card-bg);
  border: 1px solid var(--alhadaf-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.widget-title, .alhadaf-section-title {
  font-size: 1.15rem;
  font-weight: var(--font-bold);
  color: var(--alhadaf-text-main);
  margin-bottom: 16px;
  position: relative;
  padding-right: 12px;
  border-right: 4px solid var(--alhadaf-accent);
  line-height: 1.3;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget ul li {
  position: relative;
  padding-right: 16px;
  font-size: 0.92rem;
  color: var(--alhadaf-text-main);
  line-height: 1.5;
  transition: all var(--transition-fast);
}

.widget ul li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: -1px;
  color: var(--alhadaf-accent);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

.widget ul li a {
  color: var(--alhadaf-text-main);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.widget ul li a:hover {
  color: var(--alhadaf-accent);
}

.widget_recent_comments ul li::before {
  content: "💬";
  font-size: 0.85rem;
}

/* Unified Search Form Styling */
.search-form, .alhadaf-unified-search-form, .widget_search form {
  width: 100%;
  margin: 0;
  position: relative;
}

.search-form label {
  width: 100%;
  margin: 0;
  display: block;
}

.search-form .search-field,
.widget_search input[type="search"],
.alhadaf-unified-search-form .search-field {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border: 1px solid var(--alhadaf-border);
  border-radius: var(--radius-sm);
  background-color: var(--alhadaf-bg);
  color: var(--alhadaf-text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-form .search-field:focus,
.widget_search input[type="search"]:focus,
.alhadaf-unified-search-form .search-field:focus {
  border-color: var(--alhadaf-accent);
}

.search-form .search-submit,
.widget_search input[type="submit"],
.widget_search button[type="submit"],
.alhadaf-unified-search-form .search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--alhadaf-text-muted);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.search-form .search-submit:hover,
.widget_search button[type="submit"]:hover,
.alhadaf-unified-search-form .search-submit:hover {
  color: var(--alhadaf-accent);
}

/* Social Share Pill Buttons */
.alhadaf-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--alhadaf-border);
  background-color: var(--alhadaf-bg-alt);
  color: var(--alhadaf-text-main);
}

.alhadaf-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.alhadaf-share-x:hover {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.alhadaf-share-fb:hover {
  background-color: #1877F2;
  color: #FFFFFF;
  border-color: #1877F2;
}

.alhadaf-share-wa:hover {
  background-color: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.alhadaf-share-tg:hover {
  background-color: #229ED9;
  color: #FFFFFF;
  border-color: #229ED9;
}

/* Article & Content Rich Typography */
.alhadaf-article-content, .entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--alhadaf-text-main);
}

.alhadaf-article-content p, .entry-content p {
  margin-bottom: 1.5em;
}

.alhadaf-article-content h2, .entry-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--alhadaf-text-main);
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  padding-right: 12px;
  border-right: 4px solid var(--alhadaf-accent);
  line-height: 1.35;
}

.alhadaf-article-content h3, .entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--alhadaf-text-main);
  margin-top: 1.5em;
  margin-bottom: 0.7em;
  line-height: 1.35;
}

.alhadaf-article-content blockquote, .entry-content blockquote {
  border-right: 4px solid var(--alhadaf-accent);
  padding: 16px 20px;
  margin: 24px 0;
  background-color: var(--alhadaf-bg-alt);
  border-radius: var(--radius-sm);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--alhadaf-text-main);
}

.alhadaf-article-content ul, .entry-content ul,
.alhadaf-article-content ol, .entry-content ol {
  padding-right: 24px;
  margin-bottom: 1.5em;
}

.alhadaf-article-content li, .entry-content li {
  margin-bottom: 8px;
}

/* Comments Styling */
.comment-list, .alhadaf-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list .comment, .alhadaf-comment-list .comment {
  background: var(--alhadaf-bg-alt);
  border: 1px solid var(--alhadaf-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  list-style: none;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: var(--font-bold);
  color: var(--alhadaf-text-main);
}

.comment-author .avatar {
  border-radius: 50%;
  border: 2px solid var(--alhadaf-border);
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--alhadaf-text-light);
  margin-bottom: 10px;
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--alhadaf-text-main);
}

.reply a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.825rem;
  color: var(--alhadaf-accent);
  font-weight: 700;
  text-decoration: none;
}

.reply a:hover {
  text-decoration: underline;
}

/* iOS Style Switch for Mobile Drawer */
.alhadaf-ios-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease;
  border: none;
  display: inline-block;
}

.alhadaf-ios-switch-slider {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .alhadaf-ios-switch {
  background-color: var(--alhadaf-accent);
}

[data-theme="dark"] .alhadaf-ios-switch-slider {
  transform: translateX(-22px);
}

/* WordPress Admin Bar Offset for Mobile Drawer */
.admin-bar .alhadaf-mobile-drawer {
  top: 32px;
  height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .alhadaf-mobile-drawer {
    top: 46px;
    height: calc(100vh - 46px);
  }

  body {
    padding-bottom: 65px;
  }
}
