/*
Theme Name: Zavit Magazine - מגזין זווית
Theme URI: https://www.zat.co.il/
Author: Antigravity AI
Author URI: https://dlions.co.il/
Description: תבנית מגזין עיתונות עצמאית, מעמיקה, מודרנית ורב-תרבותית בעיצוב צבעוני ויוקרתי (Google Stitch). כוללת עמוד ראשי 3 עמודות, עמוד כתבה מעמיק (Longread), נגן שמע אינטראקטיבי, תפריטי ניווט דינמיים, כלי נגישות (ת"י 5568 AA), ניהול עוגיות וקידום SEO מתקדם.
Version: 1.1.0
Tested up to: 6.7
Requires at least: 5.8
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: zavit-magazine
Domain Path: /languages
Tags: news, magazine, rtl-language-support, grid-layout, custom-menu, featured-images, full-width-template, theme-options
*/

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  --brand-coral: #E85A37;
  --brand-coral-dark: #D04423;
  --brand-coral-light: #FFF2EE;
  --brand-blue: #2563EB;
  --brand-blue-dark: #1D4ED8;
  --brand-blue-light: #EFF6FF;
  --brand-amber: #F59E0B;
  --brand-amber-light: #FEF3C7;
  --brand-emerald: #10B981;
  --brand-emerald-light: #ECFDF5;
  --brand-purple: #8B5CF6;
  --brand-purple-light: #F5F3FF;
  --brand-dark: #1E293B;
  --brand-slate: #475569;
  --brand-bg-warm: #FAF9F6;
  --brand-card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-light: #F1EFEA;
  --border-orange: rgba(232, 90, 55, 0.15);
  
  --shadow-sm: 0 2px 10px rgba(232, 90, 55, 0.06);
  --shadow-md: 0 8px 30px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow-coral: 0 4px 20px rgba(232, 90, 55, 0.25);
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 1.75rem;
  --radius-pill: 9999px;
  
  --font-main: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  font-family: var(--font-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--brand-bg-warm);
  color: var(--brand-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1EFEA;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E85A37;
}

/* ==========================================================================
   LAYOUT & CONTAINER WIDTHS
   ========================================================================== */
.max-w-7xl {
  max-width: 80rem !important; /* 1280px */
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

.max-w-4xl {
  max-width: 56rem !important; /* 896px */
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

.max-w-5xl {
  max-width: 64rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

.w-full { width: 100% !important; }
.flex-1 { flex: 1 1 0% !important; }
.min-w-0 { min-width: 0 !important; }
.shrink-0 { flex-shrink: 0 !important; }

/* ==========================================================================
   FLEXBOX & GRID UTILITIES
   ========================================================================== */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }

.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

/* Responsive Grids & Breakpoints */
@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
  .sm\:flex-nowrap { flex-wrap: nowrap !important; }
  .sm\:block { display: block !important; }
  .sm\:hidden { display: none !important; }
  .sm\:p-8 { padding: 2rem !important; }
  .sm\:text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:grid { display: grid !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .md\:inline { display: inline !important; }
  .md\:p-8 { padding: 2rem !important; }
}

@media (min-width: 1024px) {
  .lg\:grid { display: grid !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .lg\:col-span-6 { grid-column: span 6 / span 6 !important; }
  .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:flex { display: flex !important; }
  .lg\:block { display: block !important; }
  .lg\:p-10 { padding: 2.5rem !important; }
  .lg\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
  .lg\:text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
}

@media (min-width: 1280px) {
  .xl\:flex { display: flex !important; }
  .xl\:block { display: block !important; }
}

/* ==========================================================================
   SPACING, PADDING & MARGINS
   ========================================================================== */
.p-2 { padding: 0.5rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-3\.5 { padding: 0.875rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.p-10 { padding: 2.5rem !important; }

.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }

.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.pb-4 { padding-bottom: 1rem !important; }
.pb-6 { padding-bottom: 1.5rem !important; }
.pb-10 { padding-bottom: 2.5rem !important; }
.pb-24 { padding-bottom: 6rem !important; }
.pb-28 { padding-bottom: 7rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mt-16 { margin-top: 4rem !important; }

.my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-6 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-8 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }

/* ==========================================================================
   BORDERS, RADIUS & SHADOWS
   ========================================================================== */
.rounded-md { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-md) !important; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.rounded-2xl { border-radius: var(--radius-xl) !important; }
.rounded-3xl { border-radius: var(--radius-3xl) !important; }
.rounded-full { border-radius: var(--radius-pill) !important; }

.border { border: 1px solid #E2E8F0 !important; }
.border-b { border-bottom: 1px solid #E2E8F0 !important; }
.border-t { border-top: 1px solid #E2E8F0 !important; }
.border-r-4 { border-right: 4px solid var(--brand-coral) !important; }
.border-t-4 { border-top: 4px solid var(--brand-coral) !important; }

.border-slate-100 { border-color: #F1F5F9 !important; }
.border-slate-200 { border-color: #E2E8F0 !important; }
.border-slate-800 { border-color: #1E293B !important; }
.border-orange-100 { border-color: #FFEDD5 !important; }
.border-orange-200 { border-color: #FED7AA !important; }
.border-blue-100 { border-color: #DBEAFE !important; }
.border-blue-200 { border-color: #BFDBFE !important; }

.bg-white { background-color: #FFFFFF !important; }
.bg-slate-50 { background-color: #F8FAFC !important; }
.bg-slate-100 { background-color: #F1F5F9 !important; }
.bg-slate-800 { background-color: #1E293B !important; }
.bg-slate-900 { background-color: #0F172A !important; }
.bg-orange-50 { background-color: #FFF7ED !important; }
.bg-blue-50 { background-color: #EFF6FF !important; }
.bg-blue-100 { background-color: #DBEAFE !important; }
.bg-amber-50 { background-color: #FFFBEB !important; }
.bg-amber-100 { background-color: #FEF3C7 !important; }
.bg-emerald-50 { background-color: #ECFDF5 !important; }
.bg-emerald-100 { background-color: #D1FAE5 !important; }
.bg-purple-50 { background-color: #FAF5FF !important; }
.bg-purple-100 { background-color: #F3E8FF !important; }

.shadow-sm { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }
.shadow-warm-sm { box-shadow: 0 4px 20px rgba(232, 90, 55, 0.06) !important; }
.shadow-warm-md { box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08) !important; }
.shadow-glow-coral { box-shadow: 0 4px 20px rgba(232, 90, 55, 0.25) !important; }

/* Aspect Ratios */
.aspect-\[16\/10\] { aspect-ratio: 16 / 10 !important; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9 !important; }
.aspect-\[21\/9\] { aspect-ratio: 21 / 9 !important; }
.overflow-hidden { overflow: hidden !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.inset-0 { inset: 0 !important; }
.inset-x-0 { left: 0 !important; right: 0 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }

.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; }

.text-white { color: #FFFFFF !important; }
.text-slate-400 { color: #94A3B8 !important; }
.text-slate-500 { color: #64748B !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1E293B !important; }
.text-slate-900 { color: #0F172A !important; }
.text-brand-coral { color: var(--brand-coral) !important; }
.text-brand-blue { color: var(--brand-blue) !important; }
.text-brand-amber { color: var(--brand-amber) !important; }
.text-brand-emerald { color: var(--brand-emerald) !important; }
.text-brand-purple { color: var(--brand-purple) !important; }

.leading-tight { line-height: 1.25 !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.line-clamp-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.line-clamp-3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* ==========================================================================
   PROMINENT ARTICLE ANCHOR TEXT LINKS
   ========================================================================== */
.article-content a,
.article-typography a {
  color: var(--brand-blue) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: var(--brand-coral) !important;
  text-decoration-thickness: 2.5px !important;
  text-underline-offset: 4px !important;
  background-color: var(--brand-coral-light);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline;
}

.article-content a:hover,
.article-typography a:hover {
  color: #ffffff !important;
  background-color: var(--brand-coral) !important;
  text-decoration-color: transparent !important;
  box-shadow: var(--shadow-sm);
}

/* Drop Cap Styling */
.article-content p:first-of-type::first-letter,
.article-typography p:first-of-type::first-letter {
  font-size: 3.25rem;
  font-weight: 900;
  float: right;
  line-height: 0.85;
  margin-left: 0.85rem;
  margin-top: 0.25rem;
  color: var(--brand-coral);
  font-family: var(--font-main);
}

/* Pull Quotes */
.article-content blockquote,
.article-typography blockquote {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to left, var(--brand-coral-light), rgba(254, 243, 199, 0.4), #ffffff);
  border-right: 5px solid var(--brand-coral);
  border-radius: var(--radius-xl);
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  color: var(--brand-dark);
  line-height: 1.7;
}

/* ==========================================================================
   FLOATING ACCESSIBILITY (IS 5568 AA) & COOKIE BANNER
   ========================================================================== */
body.a11y-high-contrast {
  background-color: #000000 !important;
  color: #FFFF00 !important;
}
body.a11y-high-contrast * {
  background-color: #000000 !important;
  color: #FFFF00 !important;
  border-color: #FFFF00 !important;
}

body.a11y-dark-mode {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
}
body.a11y-dark-mode .bg-white,
body.a11y-dark-mode article {
  background-color: #1E293B !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}

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

body.a11y-underline-links a {
  text-decoration: underline 3px var(--brand-coral) !important;
  font-weight: 900 !important;
}

body.a11y-highlight-headings h1,
body.a11y-highlight-headings h2,
body.a11y-highlight-headings h3 {
  background-color: #FEF08A !important;
  color: #000000 !important;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

body.a11y-readable-font * {
  font-family: Arial, Tahoma, sans-serif !important;
}

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