/* Blog Post Template Styling */

/* Blog post header */
.blog-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-category {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-date {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.blog-read-time {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-tagline {
    font-size: 1.2rem;
    color: #ecf0f1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Featured image */
.blog-hero {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-placeholder {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-placeholder p {
    opacity: 0.8;
}

/* Blog content */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.blog-content h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem 0;
}

.blog-content p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-size: 1.05rem;
}

.blog-content ul,
.blog-content ol {
    margin: 1.2rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Key insights highlight */
.key-insights {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.key-insights h4 {
    color: #c0392b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Opinion callout */
.opinion-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #495057;
    position: relative;
}

.opinion-box::before {
    content: "💭";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #f8f9fa;
    padding: 0 5px;
    font-size: 1.2rem;
}

/* Sources section */
.sources-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.sources-section h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sources-list {
    list-style: none;
    padding: 0;
}

.sources-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.sources-list li::before {
    content: "🔗";
    position: absolute;
    left: 0;
}

.sources-list a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.sources-list a:hover {
    border-bottom-color: #007bff;
}

/* Related posts */
.related-posts {
    background: #f8f9fa;
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 8px;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
    color: #495057;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.related-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Author bio */
.author-bio {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 3rem 0;
    border-left: 4px solid #007bff;
}

.author-bio h4 {
    color: #0056b3;
    margin-bottom: 0.5rem;
}

.author-bio p {
    margin: 0;
    color: #495057;
}

/* Newsletter signup */
.newsletter-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-signup h3 {
    margin-bottom: 1rem;
}

.newsletter-signup p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #c0392b;
}

/* Responsive design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-tagline {
        font-size: 1.1rem;
    }
    
    .blog-hero {
        height: 250px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.7rem;
    }
    
    .blog-hero {
        height: 200px;
        margin: 1rem 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
