/**
 * Ziko.co.il - Blog Styles
 * Blog listing and post pages
 */

/* ===================================================
   BLOG HERO
   =================================================== */
.blog-hero {
    padding: 140px 20px 60px;
    background: linear-gradient(135deg, #fff 0%, var(--bg-section) 100%);
    text-align: center;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--legal-blue);
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================================
   BLOG GRID
   =================================================== */
.blog-section {
    padding: 60px 20px 80px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.blog-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--legal-blue) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.blog-card-category {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.blog-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.blog-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-time {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===================================================
   BLOG CTA SECTION
   =================================================== */
.blog-cta {
    background: var(--legal-blue);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.blog-cta h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.blog-cta p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.blog-cta .cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s;
}

.blog-cta .cta-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* ===================================================
   ARTICLE PAGE
   =================================================== */
.article-header {
    padding: 140px 20px 40px;
    background: linear-gradient(135deg, #fff 0%, var(--bg-section) 100%);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.article-date, .article-read-time {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--legal-blue);
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-excerpt {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Article Content */
.article-content {
    padding: 50px 20px 80px;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--legal-blue);
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 17px;
}

.article-body ul, .article-body ol {
    margin: 20px 0 20px 30px;
}

.article-body li {
    margin-bottom: 10px;
    font-size: 17px;
}

.article-body a {
    color: var(--accent);
}

.highlight-box {
    background: var(--accent-light);
    border-right: 4px solid var(--accent);
    padding: 20px 24px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box.warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.highlight-box.info {
    background: #dbeafe;
    border-color: #3b82f6;
}

.highlight-box p {
    margin-bottom: 0;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}

.source-link a {
    color: var(--accent);
}

/* CTA in article */
.article-cta {
    background: linear-gradient(135deg, var(--legal-blue), var(--accent));
    color: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
}

.article-cta h3 {
    color: #fff;
    margin-bottom: 12px;
}

.article-cta p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.article-cta .cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: var(--accent);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
}

/* ===================================================
   RELATED POSTS
   =================================================== */
.related-posts {
    background: var(--bg-section);
    padding: 60px 20px;
}

.related-posts h2 {
    text-align: center;
    font-size: 24px;
    color: var(--legal-blue);
    margin-bottom: 30px;
}

.related-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.related-card h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-card span {
    font-size: 13px;
    color: var(--accent);
}

/* ===================================================
   BLOG FOOTER (Simple)
   =================================================== */
.footer-simple {
    background: #fff;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-simple p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 28px; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 26px; }
    .article-body h2 { font-size: 22px; }
}
