/**
 * Blog Post Styles
 * Styling for blog posts, articles, and blog index
 */

/* Loading & Error States */
.loading-container,
.error-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Breadcrumb */
.breadcrumb {
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #10b981;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* Article Container */
.blog-article {
    padding: 2rem 0 4rem;
}

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

/* Article Header */
.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.article-type {
    font-weight: 600;
    color: #059669;
}

.audience-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: #6b7280;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 1rem 0;
    line-height: 1.2;
}

.article-creator {
    color: #6b7280;
    font-size: 1rem;
    margin: 0.75rem 0;
}

.article-creator i {
    margin-right: 0.5rem;
    color: #10b981;
}

.article-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.topic-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: #111827;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content a {
    color: #10b981;
    text-decoration: underline;
}

.article-content a:hover {
    color: #059669;
}

.article-content blockquote {
    border-left: 4px solid #10b981;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #6b7280;
    font-style: italic;
}

.article-content strong {
    font-weight: 600;
    color: #111827;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
}

.article-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #10b981;
    color: white;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Podcast Embed */
.podcast-embed {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 1rem;
}

.podcast-embed h3 {
    margin-bottom: 1rem;
    color: #111827;
}

/* Share Section */
.share-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 1rem;
}

.share-section h3 {
    margin-bottom: 1rem;
    color: #111827;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.share-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin: 4rem 0 3rem;
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    display: block;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.related-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-type {
    display: inline-block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.related-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.comments-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.comments-placeholder {
    padding: 3rem;
    background: #f9fafb;
    border-radius: 1rem;
    text-align: center;
    color: #6b7280;
}

.comments-placeholder i {
    font-size: 2rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Blog Index Styles */
.blog-header {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.blog-filters {
    padding: 2rem 1.5rem;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
}

.filter-group select,
.filter-group input {
    padding: 0.625rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #10b981;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    display: block;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-summary {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.blog-card-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.blog-card-creator {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Series Navigation */
.series-nav {
    padding: 2rem 1.5rem;
    background: white;
    border-bottom: 2px solid #e5e7eb;
}

.series-nav h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    text-align: center;
}

.series-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.series-btn {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 2rem;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.series-btn:hover {
    background: #f9fafb;
    border-color: #10b981;
}

.series-btn.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Results Info */
.results-info {
    padding: 1.5rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.results-info strong {
    color: #111827;
    font-size: 1rem;
}

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    text-align: center;
    padding: 3rem 1.5rem;
}

.no-results i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
}
