/*
Theme Name: News Dynamics
Theme URI: https://dlions.co.il/
Author: DLions & LigaSEO Team
Author URI: https://www.ligaseo.co.il/
Description: תבנית וורדפרס מקצועית, מודרנית ונגישה לאתרי חדשות, מגזינים ומאמרים. כוללת תמיכה מלאה בעברית (RTL), פונט אחיד Heebo, תוסף נגישות מובנה, באנר עוגיות תקני, תבניות עמוד ראשי, קטגוריה ופוסט בודד.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-dynamics
Tags: news, blog, magazine, rtl-language-support, accessibility-ready, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------
   1. GLOBAL STYLES & HEEBO FONT INTEGRATION
------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --font-main: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-dark: #0f172a;
  --color-slate: #1e293b;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-accent: #f59e0b;
}

html {
  direction: rtl;
  text-align: right;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main) !important;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6,
p, span, a, input, textarea, button, select, label {
  font-family: var(--font-main) !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* -------------------------------------------------------------
   2. ACCESSIBILITY COMPLIANCE (תוסף הנגישות)
------------------------------------------------------------- */
body.acc-font-lg { font-size: 18px !important; }
body.acc-font-xl { font-size: 20px !important; }
body.acc-font-xxl { font-size: 22px !important; }

body.acc-high-contrast {
  background-color: #000000 !important;
  color: #ffff00 !important;
}
body.acc-high-contrast a,
body.acc-high-contrast h1,
body.acc-high-contrast h2,
body.acc-high-contrast h3,
body.acc-high-contrast h4 {
  color: #ffff00 !important;
}
body.acc-high-contrast .card,
body.acc-high-contrast .site-header,
body.acc-high-contrast .site-footer {
  background-color: #111111 !important;
  border-color: #ffff00 !important;
}

body.acc-inverted {
  filter: invert(100%) hue-rotate(180deg) !important;
  background-color: #000 !important;
}
body.acc-inverted img,
body.acc-inverted video {
  filter: invert(100%) hue-rotate(180deg) !important;
}

body.acc-grayscale {
  filter: grayscale(100%) !important;
}

body.acc-underline-links a {
  text-decoration: underline !important;
}

body.acc-readable-spacing {
  letter-spacing: 0.08em !important;
  word-spacing: 0.15em !important;
  line-height: 2 !important;
}

body.acc-stop-animations * {
  animation: none !important;
  transition: none !important;
}

body.acc-big-cursor,
body.acc-big-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="black" stroke="white" stroke-width="2"><path d="M3 3l7 18 3-7 7-3L3 3z"/></svg>'), auto !important;
}

/* -------------------------------------------------------------
   3. LAYOUT CONTAINERS
------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

/* -------------------------------------------------------------
   4. HEADER & NAVIGATION
------------------------------------------------------------- */
.top-meta-bar {
  background-color: #020617;
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #1e293b;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--color-primary);
  background-color: #f1f5f9;
}

.nav-menu .current-menu-item a {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* -------------------------------------------------------------
   5. SINGLE POST CONTENT STYLING
------------------------------------------------------------- */
.single-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}

.single-post-content p {
  margin-bottom: 1.5rem;
}

.single-post-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-right: 4px solid var(--color-primary);
  padding-right: 0.75rem;
}

.single-post-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.single-post-content blockquote {
  border-right: 4px solid var(--color-primary);
  background-color: #f8fafc;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 1.2rem;
  font-style: italic;
  color: #1e293b;
  border-radius: 0.5rem;
}

.single-post-content ul,
.single-post-content ol {
  margin: 1.5rem 0;
  padding-right: 1.5rem;
}

.single-post-content li {
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------
   6. FOOTER STYLING
------------------------------------------------------------- */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid #1e293b;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: #ffffff;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.partner-card:hover {
  background-color: #1e293b;
  border-color: var(--color-primary);
  color: #ffffff;
}
