/* =================================================================
   CSS לבלוג עוטף - עיצוב משותף לכל הפוסטים
   ================================================================= */

/* CSS Variables - התאמה למערכת הצבעים של עוטף */
:root {
    --primary-color: #5D3EBF;
    --secondary-color: #F15BB5;
    --accent-color: #00BBF9;
    --text-dark: #1a1a2e;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #5D3EBF 0%, #F15BB5 100%);
}

/* General Blog Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--white);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Navigation */
.blog-nav {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-nav .logo img {
    height: 50px;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* Blog Hero */
.blog-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.blog-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(135deg, rgba(93,62,191,0.9) 0%, rgba(241,91,181,0.8) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-content {
    text-align: center;
    color: white;
}

.blog-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    font-size: 16px;
    opacity: 0.9;
}

/* Blog Content */
.blog-post {
    padding: 60px 0;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 50px;
    margin-bottom: 20px;
}

.blog-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 35px;
    margin-bottom: 15px;
}

.blog-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 12px;
}

.blog-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.blog-content ul, .blog-content ol {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    padding-right: 30px;
}

.blog-content li {
    margin-bottom: 12px;
}

.blog-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-content em {
    font-style: italic;
    color: var(--text-dark);
}

/* תיבות מיוחדות */
.highlight-box, .tip-box, .warning-box, .action-box, .cta-box {
    border-radius: 15px;
    padding: 25px;
    margin: 35px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.highlight-box {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0e8ff 100%);
    border-right: 5px solid var(--accent-color);
}

.tip-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6f0 100%);
    border-right: 5px solid var(--secondary-color);
}

.warning-box {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe8e8 100%);
    border-right: 5px solid #ff6b6b;
}

.action-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #e1f5e8 100%);
    border-right: 5px solid #4caf50;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    flex-direction: column;
    align-items: stretch;
    padding: 40px;
}

.highlight-icon, .tip-icon, .warning-icon, .action-icon, .cta-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.highlight-content, .tip-content, .warning-content, .action-content, .cta-content {
    flex: 1;
}

.highlight-content h4, .tip-content h4, .warning-content h4, .action-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 0;
}

.highlight-content p, .tip-content p, .warning-content p, .action-content p {
    margin-bottom: 0;
}

.cta-content h3 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    margin-top: 0;
}

.cta-content > p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

.cta-benefits {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.benefit i {
    color: #4caf50;
    background: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn-primary, .btn-whatsapp {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

/* Share Section */
.share-section {
    background: var(--bg-light);
    padding: 50px 0;
}

.share-section h5 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.share-btn.whatsapp { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.share-btn.facebook { background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%); }
.share-btn.twitter { background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%); }
.share-btn.linkedin { background: linear-gradient(135deg, #0077B5 0%, #005885 100%); }
.share-btn.email { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: var(--white);
}

.related-posts h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.post-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-card-content {
    padding: 25px;
}

.post-card-category {
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.post-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

/* Blog Footer */
.blog-footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.blog-footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-footer p {
    margin: 0;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Blog Index Page (דף הבלוג הראשי) */
.blog-index-hero {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.blog-index-hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
}

.blog-index-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-posts-section {
    padding: 80px 0 100px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* אלמנטים דקורטיביים בסעיף הבלוג */
.blog-posts-section::before,
.blog-posts-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
    pointer-events: none;
}

.blog-posts-section::before {
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float-slow 25s ease-in-out infinite;
}

.blog-posts-section::after {
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float-slow 30s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 48px;
    position: relative;
    z-index: 1;
}

.blog-post-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.09),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 20px 60px rgba(93, 62, 191, 0.15),
        0 0 0 1px rgba(93, 62, 191, 0.1);
}

.blog-post-card-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* שכבת overlay כהה ומעוצבת שיוצרת הפרדה ברורה */
.blog-post-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0) 0%,
        rgba(26, 26, 46, 0.15) 40%,
        rgba(26, 26, 46, 0.5) 70%,
        rgba(26, 26, 46, 0.85) 100%
    );
    transition: all 0.35s ease;
}

.blog-post-card:hover .blog-post-card-image::before {
    background: linear-gradient(
        180deg,
        rgba(93, 62, 191, 0.05) 0%,
        rgba(93, 62, 191, 0.2) 40%,
        rgba(93, 62, 191, 0.6) 70%,
        rgba(26, 26, 46, 0.9) 100%
    );
}

.blog-post-card-category {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(93, 62, 191, 0.2);
    z-index: 3;
    transition: all 0.3s ease;
}

.blog-post-card:hover .blog-post-card-category {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(93, 62, 191, 0.3);
}

.blog-post-card-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.blog-post-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.blog-post-card:hover h3 {
    color: var(--primary-color);
}

.blog-post-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-post-card-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
    padding-top: 24px;
    border-top: 2px solid transparent;
    border-image: linear-gradient(
        to left,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        transparent 100%
    ) 1;
    transition: all 0.3s ease;
}

.blog-post-card:hover .blog-post-card-meta {
    border-image: linear-gradient(
        to left,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    ) 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: linear-gradient(
        135deg,
        rgba(93, 62, 191, 0.08) 0%,
        rgba(241, 91, 181, 0.08) 100%
    );
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.read-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(93, 62, 191, 0.3);
    transform: translateX(-4px);
}

.read-more:hover::before {
    opacity: 1;
}

.read-more i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.read-more span {
    position: relative;
    z-index: 1;
}

.read-more:hover i {
    transform: translateX(-3px);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    z-index: 4;
    transition: all 0.3s ease;
}

.blog-post-card:hover .featured-badge {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        height: 400px;
    }

    .blog-hero h1 {
        font-size: 32px;
        padding: 0 20px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blog-content h2 {
        font-size: 26px;
    }

    .blog-content h3 {
        font-size: 20px;
    }

    .blog-content p, .blog-content li {
        font-size: 16px;
    }

    .highlight-box, .tip-box, .warning-box, .action-box {
        flex-direction: column;
        padding: 20px;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-content h3 {
        font-size: 22px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        justify-content: center;
    }

    .blog-index-hero h1 {
        font-size: 36px;
    }

    .blog-index-hero p {
        font-size: 16px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .blog-nav .logo img {
        height: 40px;
    }

    .blog-hero {
        height: 350px;
    }

    .blog-hero h1 {
        font-size: 26px;
    }

    .blog-category {
        font-size: 12px;
        padding: 6px 15px;
    }
}
