/*
Theme Name: מפלגת העם
Theme URI: https://example.com/
Author: pablo rotem
Author URI: https://pablo-guides.com/
Description: תבנית WordPress עצמאית, מודרנית ורספונסיבית עבור מפלגת העם. כוללת RTL, כפתורי תרומה ב-Bit, טפסי הצטרפות ויצירת קשר, עמודים אוטומטיים ותפריט אוטומטי.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.3
Text Domain: mifleget-haam
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, accessibility-ready, blog
*/

/* Author: pablo rotem */
:root {
    --haam-bg: #07111f;
    --haam-bg-soft: #0c1a2d;
    --haam-card: rgba(255,255,255,.07);
    --haam-card-solid: #10223a;
    --haam-primary: #33b5ff;
    --haam-primary-2: #0067ff;
    --haam-accent: #ffb84d;
    --haam-text: #f7fbff;
    --haam-muted: #b8c6d9;
    --haam-light: #f5f8fc;
    --haam-dark: #07111f;
    --haam-border: rgba(255,255,255,.12);
    --haam-shadow: 0 24px 70px rgba(0,0,0,.28);
    --haam-radius: 24px;
    --haam-radius-sm: 14px;
    --haam-max: 1240px;
    --haam-header: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    direction: rtl;
    background: var(--haam-bg);
    color: var(--haam-text);
    font-family: Arial, "Heebo", "Assistant", sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--haam-primary); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    margin: 0;
    z-index: 99999;
    top: 8px;
    right: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #000;
}

.haam-container { width: min(var(--haam-max), calc(100% - 40px)); margin-inline: auto; }
.haam-section { padding: 92px 0; position: relative; }
.haam-section--light { background: var(--haam-light); color: var(--haam-dark); }
.haam-section--soft { background: #0a1728; }
.haam-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--haam-primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}
.haam-kicker::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg,var(--haam-primary),var(--haam-accent)); }
.haam-title { margin: 12px 0 18px; font-size: clamp(34px, 5vw, 64px); line-height: 1.08; letter-spacing: -.035em; }
.haam-subtitle { color: var(--haam-muted); font-size: clamp(18px, 2vw, 22px); max-width: 760px; margin: 0; }
.haam-section--light .haam-subtitle { color: #516071; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(7,17,31,.82);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__inner { min-height: var(--haam-header); display: flex; align-items: center; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.custom-logo { max-height: 52px; width: auto; }
.site-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: #fff;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 24px;
}
.site-title small { margin-top: 6px; color: var(--haam-primary); font-size: 11px; letter-spacing: .11em; font-weight: 800; }
.primary-nav { margin-inline-start: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 11px 12px; border-radius: 12px; color: #dce8f5; font-size: 15px; font-weight: 700; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(255,255,255,.07); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.haam-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--haam-border);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: #fff;
    align-items: center;
    justify-content: center;
}

.haam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 14px;
    min-height: 48px;
    padding: 12px 20px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.haam-btn:hover { transform: translateY(-2px); color: inherit; }
.haam-btn--primary { background: linear-gradient(135deg,var(--haam-primary),var(--haam-primary-2)); color: #fff; box-shadow: 0 12px 30px rgba(0,103,255,.28); }
.haam-btn--primary:hover { box-shadow: 0 16px 36px rgba(0,103,255,.36); }
.haam-btn--accent { background: linear-gradient(135deg,#ffd27a,var(--haam-accent)); color: #17202b; box-shadow: 0 12px 28px rgba(255,184,77,.22); }
.haam-btn--ghost { border-color: var(--haam-border); background: rgba(255,255,255,.05); color: #fff; }
.haam-section--light .haam-btn--ghost { border-color: #ccd7e4; color: #10223a; background: #fff; }

.haam-hero {
    min-height: calc(92vh - var(--haam-header));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 25%, rgba(51,181,255,.23), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(255,184,77,.17), transparent 24%),
        linear-gradient(180deg,#07111f 0%,#081524 100%);
}
.haam-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}
.haam-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding: 88px 0; }
.haam-hero__title { font-size: clamp(52px, 7vw, 92px); line-height: .98; margin: 16px 0 22px; letter-spacing: -.055em; max-width: 900px; }
.haam-gradient-text { background: linear-gradient(92deg,#fff 15%,#7fd5ff 60%,#ffd27a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.haam-hero__text { color: #c6d4e4; font-size: clamp(19px,2vw,24px); max-width: 780px; margin: 0 0 30px; }
.haam-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.haam-hero__trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; color: #afbed0; font-weight: 700; font-size: 14px; }
.haam-pill { padding: 8px 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; }
.haam-hero-card {
    position: relative;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(145deg,rgba(255,255,255,.105),rgba(255,255,255,.035));
    box-shadow: var(--haam-shadow);
    backdrop-filter: blur(14px);
}
.haam-hero-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(51,181,255,.17); filter: blur(38px); left: -30px; bottom: -30px; pointer-events: none; }
.haam-logo-mark {
    width: 94px;
    height: 94px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,var(--haam-primary),var(--haam-primary-2));
    box-shadow: 0 20px 44px rgba(0,103,255,.32);
    font-weight: 1000;
    font-size: 44px;
    margin-bottom: 24px;
}
.haam-hero-card h2 { font-size: 32px; margin: 0 0 10px; }
.haam-hero-card p { color: #bac9da; margin: 0 0 22px; }
.haam-donation-number { direction: ltr; font-size: clamp(26px,3vw,38px); font-weight: 1000; letter-spacing: .04em; margin: 4px 0 18px; color: #fff; }

.haam-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 44px; }
.haam-card { border: 1px solid var(--haam-border); border-radius: var(--haam-radius); background: var(--haam-card); padding: 28px; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.haam-card:hover { transform: translateY(-6px); border-color: rgba(51,181,255,.4); background: rgba(255,255,255,.09); }
.haam-section--light .haam-card { border-color: #dce5ef; background: #fff; box-shadow: 0 16px 40px rgba(31,55,81,.08); }
.haam-card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(51,181,255,.12); border: 1px solid rgba(51,181,255,.18); font-size: 23px; margin-bottom: 18px; }
.haam-card h3 { margin: 0 0 8px; font-size: 22px; }
.haam-card p { color: var(--haam-muted); margin: 0; }
.haam-section--light .haam-card p { color: #607083; }

.haam-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.haam-panel { border-radius: 30px; background: linear-gradient(145deg,#0e2744,#0a1c31); border: 1px solid rgba(255,255,255,.1); padding: 34px; box-shadow: var(--haam-shadow); }
.haam-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.haam-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 20px; }
.haam-stat strong { display: block; font-size: 28px; color: #fff; }
.haam-stat span { color: #abc0d6; font-size: 14px; }

.haam-posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 40px; }
.haam-post-card { overflow: hidden; border-radius: 22px; background: #fff; color: #10223a; box-shadow: 0 18px 50px rgba(31,55,81,.1); }
.haam-post-card__image { aspect-ratio: 16/9; background: linear-gradient(135deg,#0b2342,#1687d9); overflow: hidden; }
.haam-post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.haam-post-card:hover img { transform: scale(1.04); }
.haam-post-card__body { padding: 22px; }
.haam-post-card__meta { font-size: 13px; color: #738298; font-weight: 800; }
.haam-post-card h3 { margin: 8px 0 10px; font-size: 22px; line-height: 1.35; }
.haam-post-card p { margin: 0; color: #5a6a7d; }

.haam-cta { padding: 42px; border-radius: 30px; background: linear-gradient(120deg,#0b2d51,#0b65b8 58%,#208fd5); box-shadow: 0 22px 70px rgba(0,76,153,.28); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.haam-cta h2 { margin: 0 0 8px; font-size: clamp(28px,4vw,48px); }
.haam-cta p { margin: 0; color: #d8ebfb; max-width: 700px; }
.haam-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.entry-shell { background: var(--haam-light); color: #152233; min-height: 70vh; padding: 72px 0 100px; }
.entry-header { margin-bottom: 32px; }
.entry-title { font-size: clamp(38px,5vw,62px); line-height: 1.1; margin: 0 0 14px; color: #0c1f34; letter-spacing: -.035em; }
.entry-meta { color: #6e7d8f; font-size: 14px; }
.entry-content { background: #fff; border: 1px solid #e0e7ef; border-radius: 24px; padding: clamp(24px,4vw,48px); box-shadow: 0 18px 50px rgba(31,55,81,.08); font-size: 18px; }
.entry-content h2, .entry-content h3 { color: #0d2b4b; line-height: 1.3; }
.entry-content a { color: #006bd6; text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 28px 0; padding: 20px 22px; border-right: 4px solid var(--haam-primary-2); background: #f2f7fc; border-radius: 12px; }

.haam-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.haam-form__full { grid-column: 1 / -1; }
.haam-field label { display: block; margin-bottom: 7px; font-weight: 800; color: #17304d; }
.haam-field input, .haam-field textarea, .haam-field select {
    width: 100%;
    border: 1px solid #ccd8e4;
    background: #fff;
    color: #10223a;
    border-radius: 13px;
    padding: 13px 14px;
    outline: none;
}
.haam-field input:focus, .haam-field textarea:focus, .haam-field select:focus { border-color: #318ee8; box-shadow: 0 0 0 4px rgba(49,142,232,.12); }
.haam-notice { padding: 14px 16px; border-radius: 13px; margin: 0 0 20px; font-weight: 800; }
.haam-notice--success { background: #e6f7ec; color: #126b31; border: 1px solid #bce5c9; }
.haam-notice--error { background: #fff0f0; color: #9c2323; border: 1px solid #efc5c5; }

.site-footer { border-top: 1px solid rgba(255,255,255,.08); background: #050d18; padding: 52px 0 24px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 36px; }
.site-footer h3 { margin: 0 0 14px; font-size: 18px; }
.site-footer p, .site-footer li, .site-footer a { color: #aebdd0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer__bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; gap: 20px; color: #8395aa; font-size: 13px; }

.haam-floating-donate {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 900;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    background: linear-gradient(135deg,#ffd577,#ffad34);
    color: #17202b;
    font-weight: 1000;
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.haam-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 22px; }
.haam-modal.is-open { display: flex; }
.haam-modal__backdrop { position: absolute; inset: 0; background: rgba(2,8,15,.76); backdrop-filter: blur(8px); }
.haam-modal__dialog { position: relative; z-index: 1; width: min(520px,100%); background: #fff; color: #12253b; border-radius: 26px; padding: 30px; box-shadow: 0 32px 100px rgba(0,0,0,.42); }
.haam-modal__close { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #dce4ed; background: #fff; color: #1a2d43; }
.haam-modal__dialog h2 { margin: 0 0 10px; font-size: 30px; }
.haam-modal__dialog p { color: #66778b; }
.haam-modal__number { direction: ltr; text-align: center; font-size: 34px; font-weight: 1000; padding: 16px; background: #f2f7fc; border-radius: 16px; margin: 18px 0; letter-spacing: .035em; }
.haam-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.haam-modal__note { margin-top: 14px; font-size: 12px; color: #7a8796; }

.pagination, .nav-links { margin-top: 34px; display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 9px 13px; background: #fff; color: #17304d; border: 1px solid #dce5ef; border-radius: 10px; }
.page-numbers.current { background: #0c69c7; color: #fff; border-color: #0c69c7; }

@media (max-width: 1050px) {
    .primary-nav { position: fixed; top: var(--haam-header); right: 16px; left: 16px; display: none; background: #0b192b; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 12px; box-shadow: var(--haam-shadow); }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; align-items: stretch; }
    .primary-nav a { padding: 12px 14px; }
    .haam-menu-toggle { display: inline-flex; }
    .header-actions .haam-btn--ghost { display: none; }
    .haam-hero__inner { grid-template-columns: 1fr; }
    .haam-hero-card { max-width: 620px; }
    .haam-grid, .haam-posts { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
    :root { --haam-header: 72px; }
    .haam-container { width: min(100% - 28px, var(--haam-max)); }
    .site-title { font-size: 20px; }
    .site-title small { display: none; }
    .header-actions .haam-btn--primary { display: none; }
    .haam-hero { min-height: auto; }
    .haam-hero__inner { padding: 64px 0; gap: 34px; }
    .haam-hero__title { font-size: clamp(48px,14vw,72px); }
    .haam-section { padding: 68px 0; }
    .haam-grid, .haam-posts, .haam-split, .site-footer__grid { grid-template-columns: 1fr; }
    .haam-stat-grid { grid-template-columns: 1fr 1fr; }
    .haam-cta { flex-direction: column; align-items: flex-start; padding: 28px; }
    .haam-form { grid-template-columns: 1fr; }
    .haam-form__full { grid-column: auto; }
    .site-footer__bottom { flex-direction: column; }
    .haam-floating-donate { left: 14px; bottom: 14px; padding: 12px 16px; }
    .haam-modal__actions { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .haam-stat-grid { grid-template-columns: 1fr; }
    .haam-hero__actions .haam-btn { width: 100%; }
    .haam-hero-card { padding: 22px; }
}
