/* Blog styles for My Story Steps website */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #a5d8ff 0%, #748ffc 100%);
    padding: 4rem 0;
    text-align: center;
    margin-top: 76px;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

/* Blog Navigation */
.blog-nav {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.blog-nav a {
    margin: 0 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.blog-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.blog-nav a.active {
    background-color: #fff;
    color: #748ffc;
}

/* Blog Content */
.blog-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-content h1 {
    font-size: 2.2rem;
    color: #9c27b0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f7c331;
    padding-bottom: 0.5rem;
}

.blog-content h2 {
    font-size: 1.8rem;
    color: #9c27b0;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Lists */
.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
}

html[dir="ltr"] .blog-content ul, 
html[dir="ltr"] .blog-content ol {
    padding-left: 2rem;
    padding-right: 0;
}

html[dir="rtl"] .blog-content ul, 
html[dir="rtl"] .blog-content ol {
    padding-right: 2rem;
    padding-left: 0;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

/* Benefit List */
.benefit-list {
    list-style-type: none;
}

html[dir="ltr"] .benefit-list {
    padding-left: 0;
}

html[dir="rtl"] .benefit-list {
    padding-right: 0;
}

.benefit-list li {
    position: relative;
    margin-bottom: 1rem;
}

html[dir="ltr"] .benefit-list li {
    padding-left: 30px;
}

html[dir="rtl"] .benefit-list li {
    padding-right: 30px;
}

html[dir="ltr"] .benefit-list li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    color: #9c27b0;
}

html[dir="rtl"] .benefit-list li::before {
    content: "✔️";
    position: absolute;
    right: 0;
    color: #9c27b0;
}

/* Parent Tip Box */
.parent-tip {
    background-color: #fff3e0;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 5px;
}

html[dir="ltr"] .parent-tip {
    border-left: 4px solid #f7c331;
    border-radius: 0 5px 5px 0;
}

html[dir="rtl"] .parent-tip {
    border-right: 4px solid #f7c331;
    border-radius: 5px 0 0 5px;
}

.parent-tip h3 {
    color: #e65100;
    margin-top: 0;
}

/* Feature Section */
.feature-section {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2rem;
    color: #9c27b0;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #9c27b0;
    margin-bottom: 0.5rem;
}

/* Social Sharing */
.social-sharing {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.social-sharing h4 {
    margin-bottom: 1rem;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.9;
    text-decoration: none;
    color: white;
}

.share-btn i {
    margin-right: 0.5rem;
}

html[dir="rtl"] .share-btn i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.email {
    background-color: #777;
}

/* Blog Grid for Index Page */
.blog-posts {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.blog-posts h2 {
    text-align: center;
    color: #9c27b0;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.blog-card-image.interactive {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
}

.blog-card-image.parents {
    background: linear-gradient(45deg, #ff9800, #ffc107);
}

.blog-card-image.ai-safety {
    background: linear-gradient(45deg, #2196f3, #03a9f4);
}

.blog-card-image.story-ideas {
    background: linear-gradient(45deg, #e91e63, #f06292);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    color: #9c27b0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.blog-card-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

html[dir="ltr"] .blog-card-meta i {
    margin-right: 0.5rem;
}

html[dir="rtl"] .blog-card-meta i {
    margin-left: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .blog-grid {
        max-width: 800px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 0;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .blog-posts {
        padding: 2rem 0;
    }
    
    .blog-posts h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        max-width: none;
    }
    
    .blog-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .feature-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-card-content h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .blog-card-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .share-buttons {
        flex-direction: column;
    }
} 