/* ===== Public Blog Styles ===== */

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== Breadcrumbs ===== */
.blog-container .breadcrumb {
    margin-bottom: 24px;
}

.blog-container .breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #adb5bd;
    flex-wrap: wrap;
}

.blog-container .breadcrumb li::after {
    content: '/';
    margin: 0 6px;
    color: #dee2e6;
}

.blog-container .breadcrumb li:last-child::after {
    content: '';
    margin: 0;
}

.blog-container .breadcrumb a {
    color: #6c757d;
    text-decoration: none;
}

.blog-container .breadcrumb a:hover {
    color: #d4af37;
}

.blog-container .breadcrumb .active {
    color: #333;
}

/* ===== Page Header ===== */
.blog-header-section {
    text-align: center;
    margin-bottom: 30px;
}

.blog-page-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

.blog-page-desc {
    color: #6c757d;
    font-size: 18px;
}

/* ===== Search Bar ===== */
.blog-search-bar {
    margin-bottom: 20px;
}

.blog-search-form {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Heebo', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.blog-search-input:focus {
    border-color: #d4af37;
}

.blog-search-btn {
    padding: 10px 24px;
    background: #d4af37;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.blog-search-btn:hover {
    background: #b8941f;
}

/* ===== Categories Bar ===== */
.blog-categories-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.blog-cat-link {
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 15px;
    color: #6c757d;
    background: #f8f9fa;
    transition: all 0.2s;
    white-space: nowrap;
}

.blog-cat-link:hover {
    background: #e9ecef;
    color: #333;
}

.blog-cat-link.active {
    background: #d4af37;
    color: #fff;
}

.cat-count {
    font-size: 12px;
    opacity: 0.7;
}

/* ===== Blog Grid ===== */
.blog-grid {
    display: grid;
    gap: 20px;
}

.blog-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ===== Blog Cards ===== */
.blog-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 20px;
}

.blog-card-body h3,
.blog-card-body h4 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

.blog-card-excerpt {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 12px;
}

.blog-card-meta {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #adb5bd;
    flex-wrap: wrap;
}

/* Horizontal card (listing) */
.blog-card-horizontal {
    display: flex;
    flex-direction: row;
}

.blog-card-horizontal .blog-card-image {
    width: 250px;
    min-width: 250px;
    aspect-ratio: auto;
}

.blog-card-horizontal .blog-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== Featured Section ===== */
.blog-featured {
    margin-bottom: 30px;
}

.blog-card-featured {
    position: relative;
}

.blog-card-featured::after {
    content: 'מומלץ';
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d4af37;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Blog List ===== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Category Badge ===== */
.blog-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.12);
    color: #b8941f;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
}

.blog-category-badge:hover {
    background: rgba(212, 175, 55, 0.2);
}

/* ===== Single Post ===== */
.blog-single {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.blog-hero img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.blog-post-header {
    margin-bottom: 30px;
    text-align: center;
}

.blog-post-title {
    font-size: 40px;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 12px;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

.blog-post-meta {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 15px;
    color: #adb5bd;
    flex-wrap: wrap;
}

.meta-separator {
    color: #dee2e6;
}

/* ===== Post Content ===== */
.blog-post-content {
    font-size: 19px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 30px;
}

.blog-post-content h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 16px;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

.blog-post-content h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-post-content p {
    margin-bottom: 16px;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-post-content blockquote {
    border-right: 4px solid #d4af37;
    padding: 16px 24px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.blog-post-content ul,
.blog-post-content ol {
    padding-right: 24px;
    margin-bottom: 16px;
}

.blog-post-content li {
    margin-bottom: 6px;
}

.blog-post-content a {
    color: #d4af37;
    text-decoration: underline;
}

.blog-post-content pre {
    background: #2c3e50;
    color: #f5f5f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    direction: ltr;
    text-align: left;
}

/* ===== Tags ===== */
.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.blog-tag {
    padding: 5px 14px;
    background: #f8f9fa;
    border-radius: 16px;
    font-size: 14px;
    color: #6c757d;
}

/* ===== Share Buttons ===== */
.blog-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.share-label {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.share-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-whatsapp {
    background: #25D366;
    color: #fff;
}

.share-facebook {
    background: #1877F2;
    color: #fff;
}

.share-twitter {
    background: #1DA1F2;
    color: #fff;
}

.share-copy {
    background: #e9ecef;
    color: #333;
}

/* ===== Author Box ===== */
.blog-author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
}

.author-info strong {
    display: block;
    font-size: 17px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
}

/* ===== Related Posts ===== */
.blog-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.blog-related h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

/* ===== Pagination ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #333;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.pagination-link:hover {
    background: #f8f9fa;
}

.pagination-link.current {
    background: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

/* ===== Preview Banner ===== */
.preview-banner {
    background: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.preview-banner a {
    color: #856404;
    font-weight: 600;
}

/* ===== Empty State ===== */
.blog-container .empty-state {
    text-align: center;
    color: #6c757d;
}

.blog-container .empty-state h2,
.blog-container .empty-state h3 {
    color: #2c3e50;
    margin-bottom: 12px;
}

.blog-container .empty-state a {
    color: #d4af37;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 30px;
    }

    .blog-page-title {
        font-size: 28px;
    }

    .blog-card-horizontal {
        flex-direction: column;
    }

    .blog-card-horizontal .blog-card-image {
        width: 100%;
        min-width: unset;
        aspect-ratio: 16/9;
    }

    .blog-grid-3 {
        grid-template-columns: 1fr;
    }

    .blog-post-content {
        font-size: 17px;
    }

    .blog-share {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 20px 16px;
    }

    .blog-post-title {
        font-size: 26px;
    }

    .blog-search-form {
        flex-direction: column;
    }
}
