@import url('https://fonts-api.wp.com/css2?family=Assistant:wght@400;600;700&display=swap');

/* הגדרת הפונט של ערכת העיצוב */
:root {
    --font-headings: "Assistant", Arial, sans-serif;
}

/* Assistant בכל רכיבי הטקסט */
body,
p,
a,
li,
label,
button,
input,
select,
textarea,
time,
table,
th,
td,
figcaption,
.wp-block-tag-cloud,
.wp-block-tag-cloud a,
.wp-block-categories,
.wp-block-categories a,
.wp-block-latest-posts__post-date {
    font-family: "Assistant", Arial, sans-serif !important;
}

/* משקל הטקסט הרגיל */
body,
button,
input,
select,
textarea {
    font-weight: 400;
}

/* כותרות */
h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.entry-title,
.widget-title {
    font-family: "Assistant", Arial, sans-serif !important;
    font-weight: 700;
}

/* תפריטי האתר */
.main-navigation,
.main-navigation a {
    font-family: "Assistant", Arial, sans-serif !important;
    font-weight: 600;
}

/* מבנה העמוד במחשב */
.shirel-global-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 295px !important;
    column-gap: 28px;
    width: 100%;
    align-items: start;
    direction: rtl;
}

/* אזור התוכן הראשי */
.shirel-main-column {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding-right: 20px;
    box-sizing: border-box;
}

/* עמודת הצד הקבועה */
.shirel-global-sidebar {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 24px 18px;
    background: transparent;
}

/* תיקון עמודת הצד בעמוד הבית */
body.home
.entry-content > .wp-block-jetpack-layout-grid
> .wp-block-jetpack-layout-grid-column:nth-child(2) {
    margin-left: -8px !important;
    background: transparent !important;
}

/* רווח ימני לתוכן הראשי בעמוד הבית */
body.home
.entry-content > .wp-block-jetpack-layout-grid
> .wp-block-jetpack-layout-grid-column:first-child {
    padding-right: 20px !important;
    box-sizing: border-box;
}

/* רוחב אחיד לתוכן הפרויקטים בעמודי תגיות */
body.tag
.shirel-main-column > article.entry > .entry-header,
body.tag
.shirel-main-column > article.entry > .post-thumbnail,
body.tag
.shirel-main-column > article.entry > .entry-content,
body.tag
.shirel-main-column > article.entry > .entry-footer {
    width: 100%;
    max-width: 550px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* התאמת התמונות לרוחב האחיד */
body.tag
.shirel-main-column
.post-thumbnail img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

/* צבע קישורים במעבר עכבר ובניווט מקלדת */
body .site-content a:hover,
body .site-content a:focus,
body .entry-content a:hover,
body .entry-content a:focus,
body .shirel-global-sidebar a:hover,
body .shirel-global-sidebar a:focus {
    color: #1b68d4 !important;
}

/* כפתור ההרשמה */
#subscribe-submit button {
    cursor: pointer !important;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease !important;
}

/* מעבר עכבר על כפתור ההרשמה */
#subscribe-submit button:hover,
#subscribe-submit button:focus {
    background: #c7184c !important;
    color: #ffffff !important;
    border-color: #c7184c !important;
    box-shadow: 0 4px 10px rgba(199, 24, 76, 0.35) !important;
    transform: translateY(-2px) !important;
}

/* תיקון העיטורים לאחר ההרשמה */
#subscribe-submit.is-link a::before,
#subscribe-submit.is-link a::after {
    display: none !important;
    content: none !important;
}

/* מראה הכפתור לאחר ההרשמה */
#subscribe-submit.is-link a {
    display: inline-block !important;
    width: auto !important;
    padding: 7px 14px !important;
    margin: 6px auto 0 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    background: #ec1e24 !important;
    border: 2px solid #ec1e24 !important;
    text-decoration: none !important;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease !important;
}

/* מעבר עכבר לאחר ההרשמה */
#subscribe-submit.is-link a:hover,
#subscribe-submit.is-link a:focus {
    color: #ffffff !important;
    background: #c7184c !important;
    border-color: #c7184c !important;
    box-shadow: 0 4px 10px rgba(199, 24, 76, 0.35) !important;
    transform: translateY(-2px) !important;
}

/* מבנה העמוד בטלפון ובטאבלט */
@media (max-width: 781px) {
    .shirel-global-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 24px;
    }

    .shirel-main-column {
        grid-column: 1;
        grid-row: 1;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .shirel-global-sidebar {
        grid-column: 1;
        grid-row: 2;
        width: auto;
    }

    body.home
    .entry-content > .wp-block-jetpack-layout-grid
    > .wp-block-jetpack-layout-grid-column:first-child {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }
}