/* ==========================================
   מיכל שריר — Article Pages CSS
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@200;300;400;500;700&family=Noto+Serif+Hebrew:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --off-white: #FDFBF8;
    --sand: #E8DCCF;
    --terracotta: #C67B5C;
    --terracotta-dark: #A8624A;
    --brown-dark: #2C1810;
    --brown-earth: #6B4A3A;
    --sage: #7A9B6D;
    --sage-dark: #4A6741;
    --sage-light: #E8F0E4;
    --text: #2C1810;
    --text-light: #6B5B4F;
    --text-muted: #9B8B7F;
    --border: #E0D5C8;
    --white: #FFFFFF;
    --font-body: 'Heebo', system-ui, sans-serif;
    --font-heading: 'Noto Serif Hebrew', 'Heebo', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--off-white);
    line-height: 1.75;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta-dark); }
img { max-width: 100%; display: block; }

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: 72px;
    background: rgba(253,251,248,0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224,213,200,0.5);
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.site-header .container {
    max-width: 1200px; margin: 0 auto;
    padding: 0 2rem; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: var(--font-heading); font-size: 1.3rem;
    font-weight: 700; color: var(--brown-dark);
    text-decoration: none;
}
.main-nav ul {
    list-style: none; display: flex; gap: 1.8rem; align-items: center;
}
.main-nav a {
    font-size: 0.88rem; font-weight: 400; color: var(--text-light);
    position: relative; transition: color 0.2s;
}
.main-nav a::after {
    content: ''; position: absolute; bottom: -4px; right: 0;
    width: 0; height: 2px; background: var(--terracotta); transition: width 0.3s;
}
.main-nav a:hover { color: var(--terracotta); }
.main-nav a:hover::after { width: 100%; }

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 1.5rem; padding-top: 0.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb span { margin: 0 0.3rem; }

/* ── Article Page Layout ── */
.article-page {
    padding-top: calc(72px + 2.5rem);
    padding-bottom: 3rem;
}
.container, .container--article {
    max-width: 720px; margin: 0 auto; padding: 0 2rem;
}

/* ── Article Header ── */
.article-header {
    text-align: center; margin-bottom: 2.5rem;
    padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.article-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700; color: var(--brown-dark);
    line-height: 1.35; margin-bottom: 1rem;
}
.article-meta, .reading-time {
    font-size: 0.85rem; color: var(--text-muted); font-weight: 300;
}

/* ── Article Body ── */
.article-body {
    font-size: 1.08rem; line-height: 1.9;
}
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 700;
    color: var(--sage-dark);
    margin-top: 2.5rem; margin-bottom: 1rem;
    line-height: 1.4;
}
.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 700;
    color: var(--brown-dark);
    margin-top: 2rem; margin-bottom: 0.8rem;
}
.article-body p {
    margin-bottom: 1.2rem; color: var(--text-light);
    font-weight: 300; font-size: 1.05rem; line-height: 1.9;
}
.article-body blockquote {
    border-right: 3px solid var(--terracotta);
    padding: 1.2rem 1.5rem;
    margin: 1.8rem 0;
    background: var(--cream);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.85;
}
.article-body blockquote p { margin-bottom: 0; }
.article-body ul, .article-body ol {
    padding-right: 1.5rem; margin-bottom: 1.2rem;
}
.article-body li {
    margin-bottom: 0.5rem; color: var(--text-light);
    font-weight: 300; font-size: 1.05rem;
}
.article-body section {
    margin-bottom: 1rem;
}

/* ── Article CTA ── */
.article-cta {
    margin-top: 3rem; padding: 2rem;
    background: var(--cream); border-radius: 16px;
    text-align: center;
}
.article-cta h2, .article-cta h3 {
    font-family: var(--font-heading); font-size: 1.3rem;
    font-weight: 700; color: var(--brown-dark);
    margin-bottom: 0.5rem; margin-top: 0;
}
.article-cta p {
    color: var(--text-muted); margin-bottom: 1.2rem;
    font-size: 0.95rem;
}
.article-cta a,
.article-cta .btn {
    display: inline-block; padding: 0.8rem 2rem;
    background: var(--terracotta); color: var(--white);
    border-radius: 50px; font-size: 0.95rem; font-weight: 500;
    transition: all 0.25s; border: none; cursor: pointer;
}
.article-cta a:hover, .article-cta .btn:hover {
    background: var(--terracotta-dark); color: var(--white);
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(198,123,92,0.3);
}

/* ── Article Navigation ── */
.article-nav, nav[aria-label="ניווט בין מאמרים"] {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; gap: 1.5rem;
}
.article-nav a, nav[aria-label="ניווט בין מאמרים"] a {
    font-size: 0.9rem; color: var(--text-muted); font-weight: 400;
    transition: color 0.2s;
}
.article-nav a:hover, nav[aria-label="ניווט בין מאמרים"] a:hover {
    color: var(--terracotta);
}

/* ── Footer ── */
.site-footer, footer {
    background: var(--sage-dark); color: var(--cream);
    padding: 2.5rem 0 1.2rem; margin-top: 3rem;
    text-align: center; font-size: 0.85rem;
}
.site-footer a, footer a {
    color: rgba(245,240,232,0.6);
}
.site-footer a:hover, footer a:hover {
    color: var(--cream);
}
.site-footer p, footer p {
    color: rgba(245,240,232,0.5);
    font-weight: 300;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .main-nav ul { gap: 1rem; flex-wrap: wrap; }
    .main-nav a { font-size: 0.8rem; }
    .article-header h1 { font-size: 1.6rem; }
    .article-body { font-size: 1rem; }
    .article-nav, nav[aria-label="ניווט בין מאמרים"] {
        flex-direction: column;
    }
    .container, .container--article {
        padding: 0 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
