/*
Theme Name: zirarishon
Theme URI: https://www.zirarishon.co.il/
Author: קבוצת ופרצת תקשורת
Author URI: https://www.zirarishon.co.il/
Description: ערכת נושא רשמית ומתקדמת עבור פורטל החדשות ׳הזירה – חדשות ראשון והסביבה׳ (zirarishon.co.il) מקבוצת ׳ופרצת תקשורת׳. סיקור שוטף של ראשון לציון, אשקלון, שדרות, ספורט, רכילות, נדל״ן ויהדות.
Version: 2.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: zirarishon
Tags: news, newspaper, rishon-lezion, ashkelon, blog, rtl-language-support, grid-layout
*/

/* -------------------------------------------------------------
 * 1. Global Reset & Typography
 * ------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --z-red: #dc2626;
    --z-red-dark: #b91c1c;
    --z-red-light: #fef2f2;
    --z-dark: #0f172a;
    --z-slate: #1e293b;
    --z-border: #e2e8f0;
    --z-text: #0f172a;
    --z-text-muted: #64748b;
    --z-radius: 0.75rem;
}

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #ffffff;
    color: var(--z-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

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

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

.site-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

/* -------------------------------------------------------------
 * 2. Header & Live Flash Bar
 * ------------------------------------------------------------- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--z-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.z-top-bar {
    background: var(--z-dark);
    color: #cbd5e1;
    padding: 0.45rem 0;
    font-size: 0.75rem;
}

.z-top-bar .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.z-red-mail-btn {
    background: var(--z-red);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 900;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.z-red-mail-btn:hover {
    background: var(--z-red-dark);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

.z-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.z-brand-logo-box {
    background: var(--z-red);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.6rem;
    padding: 0.3rem 0.75rem;
    border-radius: 0.375rem;
    letter-spacing: -0.05em;
}

.z-brand-text h1 {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--z-dark);
    line-height: 1.1;
    margin: 0;
}

.z-brand-text p {
    font-size: 0.72rem;
    color: var(--z-text-muted);
    font-weight: 600;
    margin: 0;
}

.z-flash-ticker {
    background: var(--z-red-light);
    border-top: 1px solid #fecaca;
    border-bottom: 1px solid #fecaca;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.z-flash-label {
    background: var(--z-red);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.2rem;
}

.z-nav-strip {
    background: var(--z-dark);
    padding: 0.3rem 0;
}

.z-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.z-nav-menu li a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.825rem;
    font-weight: 800;
    color: #f1f5f9;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
}

.z-nav-menu li a:hover,
.z-nav-menu li.current-menu-item a {
    background: var(--z-red);
    color: #ffffff;
}

/* -------------------------------------------------------------
 * 3. News Cards & Grids
 * ------------------------------------------------------------- */
.z-lead-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (min-width: 992px) {
    .z-lead-hero {
        grid-template-columns: 8fr 4fr;
    }
}

.z-news-card {
    background: #ffffff;
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.z-news-card:hover {
    border-color: var(--z-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.z-card-thumb {
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.z-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.z-news-card:hover .z-thumb-img {
    transform: scale(1.03);
}

.z-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.z-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--z-text-muted);
}

.z-badge {
    background: var(--z-red-light);
    color: var(--z-red-dark);
    border: 1px solid #fecaca;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 800;
    font-size: 0.72rem;
}

.z-card-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--z-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.z-card-title a:hover {
    color: var(--z-red);
}

.z-card-excerpt {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.55;
}

.z-read-more {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--z-red);
}

.z-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* -------------------------------------------------------------
 * 4. Single Article
 * ------------------------------------------------------------- */
.z-single-article {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius);
    padding: 2rem;
}

.z-single-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--z-border);
    padding-bottom: 1.5rem;
}

.z-single-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--z-dark);
    line-height: 1.25;
    margin: 0.75rem 0;
}

.z-single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--z-text-muted);
}

.z-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

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

/* -------------------------------------------------------------
 * 5. Footer & Partner Links
 * ------------------------------------------------------------- */
.site-footer {
    background: var(--z-dark);
    color: #94a3b8;
    padding: 3.5rem 0 1.5rem 0;
    font-size: 0.85rem;
    margin-top: 4rem;
    border-top: 4px solid var(--z-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-quote {
    text-align: center;
    color: #f87171;
    font-style: italic;
    font-size: 1rem;
    font-weight: 700;
    padding: 1.5rem 0;
    border-top: 1px solid #334155;
}

.partner-box {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 1rem;
    border-radius: 0.75rem;
}

.partner-link {
    display: block;
    color: #f87171;
    font-weight: 800;
    padding: 0.35rem 0;
    transition: transform 0.15s ease;
}

.partner-link:hover {
    color: #ffffff;
    transform: translateX(-3px);
}
