/*
Theme Name: Magazine LocateSEO
Theme URI: https://locateseo.com
Author: LocateSEO
Author URI: https://locateseo.com
Description: תבנית מגזין עריכתית בעברית (RTL) עם עיצוב מודרני, סליידר כתבות מובילות, רשת קטגוריות מגוונת, ועמוד כתבה עשיר. מבוססת Heebo + Tailwind.
Version: 1.0.0
Requires at least: 6.2
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: magazine-locateseo
Tags: magazine, news, rtl-language-support, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   Magazine LocateSEO — גיליון ראשי
   כל העיצוב מנוהל ע"י Tailwind (CDN) שנטען ב-functions.php,
   בתוספת ה-CSS המותאם אישית שמופיע מטה.
   ============================================================ */

:root {
    --color-ink: #09090B;
    --color-paper: #FAFAFA;
    --color-editorial: #18181B;
    --color-graphite: #3F3F46;
    --color-accent: #EC4899;
    --color-accent-dark: #DB2777;
    --color-muted: #71717A;
    --color-line: #E4E4E7;
}

html { scroll-behavior: smooth; }
body { font-family: 'Heebo', sans-serif; }

/* אנימציות סליידר - fade/slide */
.slide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    position: absolute;
    inset: 0;
}
.slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

/* אנימציית סליידר "כלכלה" - fade */
.econ-slide {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    position: absolute;
    inset: 0;
}
.econ-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* progress bar לסליידר */
.progress-bar {
    transform-origin: right;
    animation: progress 6s linear infinite;
}
@keyframes progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* קישוט שורה תחתונה לכותרת */
.eyebrow-line::after {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: var(--color-accent);
    margin-right: 0.75rem;
    vertical-align: middle;
}

/* hover חלק לכרטיסיות */
.card-img { transition: transform 0.5s ease; }
.article-card:hover .card-img { transform: scale(1.04); }

/* שמירה על יחס תמונה */
.aspect-article { aspect-ratio: 4 / 3; }
.aspect-feature { aspect-ratio: 16 / 10; }

/* כיבוד העדפת תנועה מופחתת */
@media (prefers-reduced-motion: reduce) {
    .slide, .econ-slide, .card-img, .progress-bar {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    .progress-bar { transform: scaleX(1); }
    .econ-slide { opacity: 1 !important; position: relative !important; }
}

/* גלילה אופקית נעימה בתפריט */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
   טיפוגרפיה עריכתית לגוף הכתבה
   ============================================================ */
.article-body {
    font-size: 1.1875rem;
    line-height: 1.85;
    color: #27272A;
}
.article-body p { margin-bottom: 1.6em; }
.article-body p:last-child { margin-bottom: 0; }

/* אות פותחת ענקית (drop cap) */
.article-body > p:first-of-type::first-letter {
    font-family: 'Heebo', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 0.85;
    float: right;
    margin-left: 0.5rem;
    margin-top: 0.35rem;
    color: var(--color-editorial);
}

/* pull quote */
.pull-quote {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.4;
    color: var(--color-editorial);
}
.pull-quote-center {
    font-family: 'Heebo', sans-serif;
    font-weight: 800;
    font-size: 1.875rem;
    line-height: 1.35;
    color: var(--color-editorial);
    text-align: center;
}
@media (min-width: 1024px) {
    .pull-quote { font-size: 2.25rem; }
    .pull-quote-center { font-size: 2.5rem; }
}

/* קישורים בתוך הכתבה */
.article-body a {
    color: var(--color-editorial);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.article-body a:hover { color: var(--color-accent); }

/* כותרות משנה בתוך הכתבה */
.article-body h2 {
    font-family: 'Heebo', sans-serif;
    font-weight: 800;
    font-size: 1.875rem;
    line-height: 1.25;
    color: var(--color-ink);
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    scroll-margin-top: 6rem;
}

/* סרגל התקדמות קריאה */
.reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    width: 0%;
    z-index: 60;
    transition: width 0.1s linear;
}

/* טימליין אירועים — קו אנכי */
.timeline {
    position: relative;
    padding-right: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2px;
    background: var(--color-line);
}
.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: -1.5625rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-paper);
}

/* קישור פעיל בתוכן עניינים */
.toc-link.active {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* יישור תוכן וורדפרס (wpautop) עם הכתבה */
.entry-content img { max-width: 100%; height: auto; }
.entry-content blockquote { margin: 1.5em 0; }

/* תגובות וורדפרס */
.comments-area { margin-top: 3rem; }
.comment { padding: 1.5rem 0; border-bottom: 1px solid var(--color-line); }
.comment:last-child { border-bottom: none; }
