/**
 * Frontend Styles for TTFC Post Editor Enhancements
 * עיצוב לצד הקדמי של האתר
 */

/* ================================
   Post Author Selector Block Styles
   בלוק בחירת מחבר הפוסט
   ================================ */

/* מיכל הבלוק הראשי */
.ttfc-pee-post-author-block {
    display: block;
    margin: 20px 0;
    padding: 0;
    font-family: var(--font-family-accent, 'Heebo', Arial, sans-serif) !important;
    direction: rtl;
    text-align: right;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* תמונת הפרופיל - אם מוצגת */
.ttfc-pee-post-author-block .author-avatar {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.ttfc-pee-post-author-block .author-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

/* מיכל פרטי המחבר */
.ttfc-pee-post-author-block .author-info {
    display: block;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 6px 0;
}

/* שורת המטא (שם מחבר ותאריך) */
.ttfc-pee-post-author-block .author-meta-line {
    display: flex;
}

/* שורת שם המחבר */
.ttfc-pee-post-author-block .author-name-wrapper {
    display: grid;
    align-items: baseline;
    gap: 0px;
}

/* התאמות כאשר אין ביוגרפיה */
.ttfc-pee-post-author-block .author-name-wrapper.no-author-bio .author-name {
    position: relative;
    top: 7px;
}

/* שורת התאריך */
.ttfc-pee-post-author-block .post-date-wrapper {
    display: flex;
    align-items: baseline;
    margin-right: auto;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-family: var(--font-family-accent, 'Heebo', Arial, sans-serif) !important;
    position: relative;
    left: 4px;
}

.ttfc-pee-post-author-block .date-separator {
    display: none;
}

.ttfc-pee-post-author-block .post-date {
    font-family: var(--font-family-accent, 'Heebo', Arial, sans-serif) !important;
    font-size: 14px;
    font-weight: 400;
}

/* הסרת אייקון לוח שנה שנוסף ע"י התבנית (pseudo-element) */
.ttfc-pee-post-author-block .post-date::before,
.ttfc-pee-post-author-block .post-date:before,
.ttfc-pee-post-author-block time.post-date::before,
.ttfc-pee-post-author-block time.post-date:before {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* שם המחבר */
.ttfc-pee-post-author-block .author-name {
    font-family: var(--font-family-accent, 'Heebo', Arial, sans-serif) !important;
    font-weight: 400;
    color: var(--primary-color, #DE0100);
    font-size: 14px;
    margin: 0 0 -0.4rem 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
    right: 4px;
}

/* ביוגרפיה של המחבר */
.ttfc-pee-post-author-block .author-bio {
    font-family: var(--font-family-accent, 'Heebo', Arial, sans-serif) !important;
    font-size: 13px;
    line-height: 1;
    margin-top: -1px;
    padding: 0;
    background: transparent;
    border: none;
    font-weight: 200;
    position: relative;
    right: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ttfc-pee-post-author-block .author-meta-line {
        flex-direction: row;
        justify-content: space-between;
    }

    .author-name-wrapper.has-author-bio {
        display: grid;
        line-height: 5px;
        position: relative;
        width: 100%;
    }

    .author-name-wrapper {
        max-width: 50% !important;
        text-align: right;
        display: contents;
    }

    .ttfc-pee-post-author-block .post-date-wrapper,
    .ttfc-pee-post-author-block .post-date {
        white-space: nowrap;
        overflow-x: scroll !important;
        max-width: 50% !important;
        text-align: left;
        display: contents;
    }

    .ttfc-pee-post-author-block .author-name-wrapper.no-author-bio .author-name {
        position: relative;
        top: 5px;
    }

    .ttfc-pee-post-author-block .author-name-wrapper {
        width: 100%;
    }
}

/* עיצוב לבלוק בתוך סינגל פוסט */
.single-post .ttfc-pee-post-author-block {
    margin: 30px 0;
}

