/*
Theme Name: ClickMaker News & Studies Portal
Theme URI: https://clickmaker.co.il/
Author: Liga SEO & Digital Lions
Author URI: https://ligaseo.co.il/
Description: פורטל לימודים, קריירה, פיננסים, טכנולוגיה ומגזין בסגנון מערכת חדשות מודרנית, בגופן Playpen Sans Hebrew, ללא תאריכי פרסום, מותאם למובייל ולתקן נגישות ת"י 5568 AA.
Version: 3.0.0
Text Domain: clickmaker-news-portal
*/

:root {
  --bg-page: #f5f7fa;
  --bg-surface: #ffffff;
  --bg-subtle: #edf1f7;
  --ink-main: #0f172a;
  --ink-body: #1e293b;
  --ink-muted: #475569;
  --news-red: #d90429;
  --news-red-dark: #a8001d;
  --news-navy: #0b192c;
  --news-blue: #00509d;
  --border-color: #dbe2ec;
  --focus-ring: #d90429;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.13);
  --font-main: 'Playpen Sans Hebrew', 'Rubik', 'Assistant', sans-serif;
  --base-font-size: 100%;
}

/* IS 5568 / WCAG 2.0 AA Accessibility Modes */
html.a11y-font-lg { font-size: 118% !important; }
html.a11y-font-xl { font-size: 135% !important; }
html.a11y-readable-font *,
html.a11y-readable-font body,
html.a11y-readable-font h1,
html.a11y-readable-font h2,
html.a11y-readable-font h3,
html.a11y-readable-font p,
html.a11y-readable-font a,
html.a11y-readable-font button {
  font-family: Arial, Tahoma, sans-serif !important;
  letter-spacing: 0.02em !important;
}
html.a11y-high-contrast {
  --bg-page: #000000;
  --bg-surface: #0c0c0c;
  --bg-subtle: #1a1a1a;
  --ink-main: #ffffff;
  --ink-body: #fde047;
  --ink-muted: #ffffff;
  --news-red: #fde047;
  --news-red-dark: #fef08a;
  --news-navy: #000000;
  --border-color: #fde047;
}
html.a11y-grayscale { filter: grayscale(100%) !important; }
html.a11y-underline-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  background-color: rgba(217, 4, 41, 0.1) !important;
}
html.a11y-stop-animations *,
html.a11y-stop-animations *::before,
html.a11y-stop-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: var(--font-main);
}

html {
  font-size: var(--base-font-size);
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--ink-main);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:focus-visible,
a:focus,
button:focus,
input:focus {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 2px !important;
}

a {
  color: var(--ink-main);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover, a:focus {
  color: var(--news-red);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip Links */
.skip-links-bar { position: relative; z-index: 10000; }
.skip-link {
  position: absolute;
  top: -120px;
  right: 16px;
  background: var(--news-red);
  color: #ffffff !important;
  padding: 12px 20px;
  font-weight: 800;
  border-radius: 0 0 8px 8px;
  z-index: 10001;
}
.skip-link:focus { top: 0; }

/* Newsroom Top Header & Bold Red Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-surface);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.header-main-bar {
  background: var(--news-navy);
  color: #ffffff;
  border-bottom: 4px solid var(--news-red);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff !important;
  text-decoration: none !important;
}
.brand-red-box {
  background: var(--news-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(217, 4, 41, 0.35);
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Search Bar */
.header-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 14px 4px 6px;
  flex: 1;
  max-width: 430px;
  min-width: 220px;
}
.header-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px 8px;
  font-size: 0.92rem;
}
.header-search-input::placeholder { color: #cbd5e1; }
.header-search-input:focus { outline: none !important; }
.header-search-btn {
  background: var(--news-red);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--news-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

/* Category Navigation Bar */
.header-nav-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-main);
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.nav-link:hover,
.nav-link:focus,
.nav-link.is-active {
  color: var(--news-red);
  border-bottom-color: var(--news-red);
  background: var(--bg-subtle);
  text-decoration: none;
}

@media (max-width: 960px) {
  .mobile-menu-toggle { display: inline-flex; }
  .header-nav-bar { display: none; }
  .header-nav-bar.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }
  .nav-link {
    border-bottom: none;
    border-right: 4px solid transparent;
    padding: 12px 14px;
  }
  .nav-link.is-active {
    border-right-color: var(--news-red);
  }
}

/* Red Flash Ticker Bar ("הנושאים החמים") */
.news-flash-strip {
  max-width: 1320px;
  margin: 18px auto 0;
  padding: 0 20px;
}
.flash-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-right: 5px solid var(--news-red);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}
.flash-badge {
  background: var(--news-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.flash-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 700;
}
.flash-links a {
  color: var(--ink-body);
}
.flash-links a:hover {
  color: var(--news-red);
}

/* Main Portal Layout */
.portal-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 20px 60px;
}

/* Top Hero Split Grid (Lead Story + Side Headlines Stack) */
.hero-news-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  margin-bottom: 38px;
}
@media (max-width: 960px) {
  .hero-news-grid { grid-template-columns: 1fr; }
}

.lead-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.lead-hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--news-navy);
  overflow: hidden;
}
.lead-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.lead-hero-card:hover .lead-hero-media img {
  transform: scale(1.03);
}
.lead-hero-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.kicker-pill {
  display: inline-block;
  align-self: flex-start;
  background: var(--news-red);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-decoration: none !important;
}
.kicker-pill.navy { background: var(--news-navy); }
.kicker-pill.blue { background: var(--news-blue); }

.lead-hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.32;
  margin: 0 0 12px 0;
}
.lead-hero-title a { color: var(--ink-main); }
.lead-hero-title a:hover { color: var(--news-red); }
.lead-hero-excerpt {
  font-size: 1.02rem;
  color: var(--ink-muted);
  margin: 0 0 16px 0;
}

/* Side Headlines Desk ("הכותרות המרכזיות") */
.side-desk-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--news-red);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.desk-heading {
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--ink-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.desk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.desk-item {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.desk-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.desk-item-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.38;
  margin: 4px 0 0 0;
}
.desk-item-thumb {
  width: 110px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--news-navy);
}
.desk-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category Section Blocks with Bold Red Accent Bar */
.channel-section {
  margin-bottom: 44px;
}
.channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink-main);
}
.channel-title {
  font-size: 1.48rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.channel-red-bar {
  display: inline-block;
  width: 8px;
  height: 26px;
  background: var(--news-red);
  border-radius: 2px;
}
.channel-more-link {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--news-red);
}

/* 3-Column Magazine Cards Grid (Strictly No Dates!) */
.magazine-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1024px) {
  .magazine-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .magazine-grid-3 { grid-template-columns: 1fr; }
}

.mag-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.mag-card-media {
  aspect-ratio: 16 / 9;
  background: var(--news-navy);
  overflow: hidden;
  position: relative;
}
.mag-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mag-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b192c 0%, #1e3a8a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-weight: 800;
}
.mag-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mag-card-title {
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.38;
  margin: 4px 0 10px 0;
}
.mag-card-excerpt {
  font-size: 0.93rem;
  color: var(--ink-muted);
  margin: 0 0 14px 0;
  flex: 1;
}
.mag-card-footer {
  padding-top: 12px;
  border-top: 1px solid var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--news-red);
}

/* Single Post View (Clean, Modern, No Date!) */
.single-news-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) {
  .single-news-layout { grid-template-columns: 1fr; }
}
.article-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px) {
  .article-surface { padding: 22px 18px; }
}
.article-surface h1 {
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 10px 0 14px 0;
  color: var(--ink-main);
}
.article-lead-deck {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-subtle);
}
.article-body {
  font-size: 1.06rem;
  line-height: 1.82;
  color: var(--ink-body);
}
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink-main);
  margin: 30px 0 12px 0;
  padding-right: 12px;
  border-right: 4px solid var(--news-red);
}
.article-body a {
  color: var(--news-blue);
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--news-navy);
  color: #f8fafc;
  border-top: 4px solid var(--news-red);
  padding: 48px 20px 28px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-heading {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--news-red);
  display: inline-block;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-list a, .site-footer a {
  color: #e2e8f0;
  text-decoration: underline;
}
.footer-list a:hover, .site-footer a:hover {
  color: #38bdf8;
}
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  color: #cbd5e1;
}
.partner-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 18px;
  border-radius: 999px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Cookie & Accessibility Widgets */
.cookie-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.65);
  z-index: 9980;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}
.cookie-backdrop.is-visible { display: flex; }
.cookie-modal {
  background: #ffffff;
  color: var(--ink-main);
  border: 2px solid var(--news-red);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  padding: 24px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.a11y-widget {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 9990;
}
.a11y-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--news-red);
  color: #ffffff;
  border: 3px solid #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.a11y-drawer {
  display: none;
  position: fixed;
  bottom: 88px;
  left: 22px;
  width: 330px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  color: var(--ink-main);
  border: 2px solid var(--news-red);
  border-radius: var(--radius-lg);
  padding: 20px;
  z-index: 9995;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}
.a11y-drawer.is-open { display: block; }
.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.a11y-btn {
  background: var(--bg-subtle);
  color: var(--ink-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 9px 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.a11y-btn[aria-pressed="true"] {
  background: var(--news-red);
  color: #ffffff;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
