* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    background-color: var(--bg-color, #fdfbf7);
    color: var(--text-color, #1a1a1a);
}

a { color: var(--primary-color, #a6804a); text-decoration: none; }

h1, h2, h3 { font-weight: 800; margin: 0 0 12px; }

/* כפתורים */
.btn-gold, .btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 26px;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    white-space: nowrap; 
    flex-shrink: 0;
    transition: transform .15s ease, box-shadow .15s ease;
} 
.btn-gold {
    background: linear-gradient(135deg, var(--primary-color, #a6804a), var(--primary-color-dark, #8b6938));
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(166, 128, 74, .4);
}
.btn-outline-gold {
    background: #fff;
    color: var(--primary-color-dark, #8b6938);
    border: 1.5px solid var(--primary-color, #a6804a);
}
.btn-gold:hover, .btn-outline-gold:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 24px; font-size: 14px; }
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 26px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff;
    transition: transform .15s ease, background .15s ease;
}
.btn-glass:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* כרטיס "נייר" כללי */
.card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #f0ece2;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.08), 0 10px 10px -5px rgba(0,0,0,.03);
    padding: 28px;
}

/* הדר */
.site-header {
    background: var(--bg-color, #fdfbf7);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #f0ece2;
    padding: 14px 20px;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.site-logo img { height: 64px; }
.nav-toggle { display: block; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text-color); }
.site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 14px; }
.site-nav.open { display: flex; }
.site-nav a { font-size: 18px; font-weight: 600; }
.site-nav__shop { color: var(--accent-deep, #5a2318); }
.site-nav__cta { flex-shrink: 0; white-space: nowrap; align-self: center; }

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .site-nav { display: flex; flex-direction: row; align-items: center; gap: 28px; width: auto; margin-top: 0; }
}

.site-main { max-width: 760px; margin: 0 auto; padding: 30px 16px 70px; }

/* דיבידר עדין */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 36px 0;
    color: var(--primary-color);
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e3d6ba, transparent);
}

/* Hero כהה - בהשראת mekomtora.com */
.hero-dark {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(135deg, #2c2622 0%, var(--text-color, #1a1a1a) 40%, var(--accent-deep, #5a2318) 100%);
    text-align: center;
    padding: 64px 20px 90px;
    overflow: hidden;
}
.hero-dark__inner { max-width: 720px; margin: 0 auto; }
.hero-dark__logo {
    height: 130px;
    margin-bottom: 20px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,.45));
}
.kicker {
    color: var(--primary-color, #a6804a);
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 8px;
}
.hero-dark h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.8rem); }
.hero-dark__subtitle { color: #e7dcc8; font-size: 19px; max-width: 560px; margin: 0 auto 28px; }
.hero-dark__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 70px; display: block; }
.wave-divider path { fill: var(--bg-color, #fdfbf7); }

#latest-issue { margin-top: 30px; }

/* תיבת ניוזלטר - בלוק צנוע בתחתית */
.newsletter-box {
    max-width: 480px;
    margin: 50px auto 0;
    text-align: center;
}
.newsletter-box h3 { font-size: 1.2rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.newsletter-form input {
    font-size: 17px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1.5px solid #e3d6ba;
    background: #fffefb;
}
.newsletter-box__success { font-weight: 700; color: var(--primary-color-dark); }

/* תיבת העלון - הבלוק המרכזי */
.issue { margin-top: 10px; }
.issue__title { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.issue__parsha {
    display: inline-block;
    background: var(--secondary-color, #f7f1e3);
    color: var(--primary-color-dark, #8b6938);
    border-radius: 999px;
    padding: 5px 16px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 16px;
}

.issue-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.issue-tab {
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1.5px solid #e3d6ba;
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
}
.issue-tab.active {
    background: linear-gradient(135deg, var(--primary-color, #a6804a), var(--primary-color-dark, #8b6938));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(166, 128, 74, .35);
}

.issue-view { display: none; }
.issue-view.active { display: block; }

.issue-image-view img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.12);
    margin-bottom: 18px;
    display: block;
}
.issue-image-view__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.issue__toolbar { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }

.issue__body { line-height: 1.6; }
.issue__body img { max-width: 100%; border-radius: 12px; }

.issue-section { margin-bottom: 28px; }
.issue-section h3 {
    color: var(--primary-color-dark, #8b6938);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color, #f7f1e3);
    padding-bottom: 8px;
}
.issue-section__body img { max-width: 100%; border-radius: 12px; }
.issue-section__source { color: #8a7a63; font-size: 14px; margin-top: 8px; }
.issue-section--boxed {
    background: var(--secondary-color, #f7f1e3);
    border-radius: 18px;
    padding: 20px 24px;
    border-right: 4px solid var(--primary-color, #a6804a);
}
.issue-section--boxed h3 { border-bottom: none; padding-bottom: 0; }

.issue-closing {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed #e3d6ba;
    text-align: center;
    color: #6b5b45;
    font-size: 16px;
}

.discussion-box {
    background: var(--secondary-color, #f7f1e3);
    border-radius: 20px;
    padding: 22px 26px;
    margin: 30px 0;
    border-right: 4px solid var(--primary-color, #a6804a);
}
.discussion-box h2, .discussion-box h3 { margin-top: 0; color: var(--primary-color-dark); }

/* ארכיון */
.page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; margin-bottom: 24px; }

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    justify-content: center;
}
.archive-filters input, .archive-filters select {
    font-size: 16px;
    padding: 11px 16px;
    border-radius: 14px;
    border: 1.5px solid #e3d6ba;
    background: #fffefb;
}
.archive-filters button { font-family: inherit; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.archive-card {
    display: block;
    color: inherit;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0ece2;
    box-shadow: 0 14px 20px -6px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
}
.archive-card:hover { transform: translateY(-4px); box-shadow: 0 20px 28px -8px rgba(0,0,0,.14); }
.archive-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.archive-card__body { padding: 16px 18px 20px; }
.archive-card__parsha {
    display: inline-block;
    background: var(--secondary-color, #f7f1e3);
    color: var(--primary-color-dark, #8b6938);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.archive-card h2 { font-size: 1.15rem; margin: 0 0 6px; }

/* תגובות וצור קשר */
.comments { margin-top: 46px; }
.comment { border-bottom: 1px solid #f0ece2; padding: 14px 0; }
.comment-form, .contact-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form input, .comment-form textarea,
.contact-form input, .contact-form textarea {
    font-size: 17px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1.5px solid #e3d6ba;
    background: #fffefb;
    font-family: inherit;
}
.contact-section { margin-bottom: 40px; }

/* עמוד אודות */
.about-photo { text-align: center; margin-bottom: 24px; }
.about-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 15px 25px -5px rgba(0,0,0,.15);
}
.about-content h2 {
    color: var(--primary-color-dark, #8b6938);
    font-size: 1.4rem;
    margin-top: 28px;
}
.about-content h2:first-child { margin-top: 0; }
.about-content ul { padding-right: 20px; }
.about-content li { margin-bottom: 10px; }
.about-content li::marker { color: var(--primary-color, #a6804a); }
.about-content em { color: var(--accent-deep, #5a2318); }

.site-footer {
    border-top: 1px solid #f0ece2;
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}
.site-footer__logo { height: 40px; margin-bottom: 10px; opacity: .85; }

.text-muted { color: #8a7a63; }

@media print {
    .site-header, .site-footer, .newsletter-box, .no-print, .issue__toolbar, .issue-tabs { display: none !important; }
    .issue-view { display: block !important; }
    body { font-size: 14pt; color: #000; background: #fff; }
    .site-main { max-width: 100%; padding: 0; }
    .card { box-shadow: none; border: none; }
}

/* לוח שנה עברי */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.calendar-nav__btn { font-size: 14px; padding: 9px 16px; }
.calendar-month-title { text-align: center; flex: 1; display: flex; flex-direction: column; }
.calendar-month-title strong { font-size: 1.3rem; color: var(--primary-color-dark); }
.calendar-greg-sub { font-size: 13px; color: #8a7a63; }

.calendar-grid-wrap { overflow-x: auto; margin-bottom: 24px; }
.calendar-table { width: 100%; border-collapse: collapse; min-width: 560px; table-layout: fixed; }
.calendar-table th {
    background: var(--primary-color, #a6804a);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 4px;
    text-align: center;
}
.calendar-table th.is-shabbat { background: var(--primary-color-dark, #8b6938); }
.calendar-table td {
    border: 1px solid #f0ece2;
    vertical-align: top;
    padding: 0;
    height: 100px;
}
.calendar-cell { position: relative; padding: 6px 7px; display: flex; flex-direction: column; gap: 2px; height: 100%; }
.calendar-issue-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 11px;
    color: var(--primary-color, #a6804a);
    background: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,.15);
}
.calendar-heb-day { font-size: 1.15rem; font-weight: 800; color: var(--primary-color-dark, #8b6938); line-height: 1; }
.calendar-greg-date { font-size: 11px; color: #8a7a63; }
.calendar-holiday-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-deep, #5a2318);
    background: #f7ece6;
    border-radius: 4px;
    padding: 1px 5px;
    display: inline-block;
}
.calendar-parasha-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color-dark, #8b6938);
    background: var(--secondary-color, #f7f1e3);
    border-radius: 4px;
    padding: 1px 5px;
    display: inline-block;
    text-decoration: none;
}
.calendar-parasha-name--link:hover { text-decoration: underline; }
.calendar-holiday-name--link:hover { text-decoration: underline; }
.calendar-empty { background: rgba(0,0,0,.02); }
.calendar-day.is-today { background: #fff8e0; box-shadow: inset 0 0 0 2px var(--primary-color, #a6804a); }
.calendar-day.is-shabbat { background: #faf6ec; }
.calendar-day.is-holiday { background: #fdf3ee; }
.calendar-day.has-issue {
    background: #fff4dc;
    box-shadow: inset 0 0 0 2px var(--primary-color, #a6804a);
}
.calendar-day.has-issue .calendar-heb-day { color: var(--accent-deep, #5a2318); }

.calendar-legend { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 8px 0 30px; font-size: 14px; color: #6b5b45; }
.calendar-legend__item { display: flex; align-items: center; gap: 6px; }
.calendar-legend__swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.calendar-legend__swatch--today { background: #fff8e0; box-shadow: inset 0 0 0 2px var(--primary-color, #a6804a); }
.calendar-legend__swatch--shabbat { background: #faf6ec; border: 1px solid #e3d6ba; }
.calendar-legend__swatch--holiday { background: #fdf3ee; border: 1px solid #e3d6ba; }
.calendar-legend__swatch--has-issue { background: #fff4dc; box-shadow: inset 0 0 0 2px var(--primary-color, #a6804a); }

@media (max-width: 480px) {
    .calendar-table { min-width: 0; width: 100%; }
    .calendar-table td { height: 72px; }
    .calendar-table th { font-size: 11px; padding: 6px 2px; }
    .calendar-heb-day { font-size: .95rem; }
    .calendar-greg-date, .calendar-holiday-name, .calendar-parasha-name { font-size: 9px; }
    .calendar-cell { padding: 4px 4px; }
}
