/* ============================================
   AFRITHERAPY BLOG STYLES
   ============================================ */

/* Blog Hero Section */
.blog-hero {
    background: var(--color-light);
    color: var(--color-secondary);
    padding: 120px 0 60px;
}

.blog-hero h1 {
    color: var(--color-secondary);
}

.blog-hero .lead {
    color: var(--color-default);
}

.blog-search-form .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-search-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
}

.blog-search-form .btn {
    padding: 15px 30px;
    border: none;
}


.blog-hero-subtitle {
    color: var(--color-default);
}

.blog-author-invite {
    color: var(--color-secondary);
    font-weight: 600;
}

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

.btn-blog-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.btn-blog-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

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

/* Categories Section */
.categories-section {
    border-bottom: 1px solid #e0e0e0;
}

.categories-section .btn {
    border-radius: 25px;
    padding: 8px 20px;
}

.categories-section .badge {
    margin-left: 5px;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-badge:hover {
    background: #bbdefb;
    color: #0d47a1;
}

.category-badge-lg {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.category-badge-lg:hover {
    background: #bbdefb;
    color: #0d47a1;
}

.reading-time {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--color-primary);
}

.blog-card-excerpt {
    color: var(--color-default);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.author-name {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-name:hover {
    color: var(--color-primary);
}

.post-date {
    color: #999;
    font-size: 13px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-post-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.popular-post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.popular-post-title a:hover {
    color: #667eea;
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--color-primary);
    color: white;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #667eea;
    color: white;
}


.post-footer {
    background: var(--color-light);
}

.post-footer-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 14px 40px rgba(93, 173, 226, 0.18);
    border: 1px solid rgba(93, 173, 226, 0.12);
}

.author-footer-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-primary);
    border: 3px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: var(--color-white);
}

.author-footer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-footer-meta {
    display: flex;
    flex-direction: column;
}

.author-footer-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
}

.author-footer-name i {
    color: var(--color-primary);
    margin-left: 4px;
}

.author-footer-name:hover {
    color: var(--color-primary);
}

.author-footer-date {
    color: var(--color-default);
    font-size: 14px;
}

.share-label {
    font-weight: 600;
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .post-footer-card {
        padding: 24px;
    }

    .author-footer-avatar {
        width: 60px;
        height: 60px;
    }
}

/* Post Detail Page */
.post-title {
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.post-meta-bar {
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.author-info-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-light);
    border: 1px solid rgba(93, 173, 226, 0.35);
    border-radius: 10px;
    padding: 8px 14px;
    box-shadow: 0 6px 18px rgba(45, 124, 172, 0.1);
}

.author-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid var(--color-white);
    box-shadow: 0 3px 8px rgba(45, 124, 172, 0.15);
}

.author-avatar-placeholder-large {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.author-name-large {
    color: var(--color-secondary);
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.author-name-large:hover {
    color: var(--color-primary);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: var(--color-primary);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(93, 173, 226, 0.25);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(82, 201, 141, 0.25);
    color: var(--color-white);
    background: var(--color-accent);
}

/* Post Content */
.content-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-default);
    font-family: var(--font-default);
}

.content-body h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--color-secondary);
    font-family: var(--font-primary);
}

.content-body h3 {
    font-size: 26px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--color-secondary);
    font-family: var(--font-primary);
}

.content-body p {
    margin-bottom: 20px;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.content-body ul, .content-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-body li {
    margin-bottom: 10px;
}

.content-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--color-default);
}

/* Author Bio */
.author-bio {
    margin-top: 40px;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-avatar-placeholder {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 32px;
    flex-shrink: 0;
}

/* Comments Section */
.comment-form-wrapper {
    margin-bottom: 40px;
}

.comment-item {
    background: white;
}

.comment-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
}

.comment-avatar-placeholder.small {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.replies {
    border-left: 3px solid #e0e0e0;
    padding-left: 20px;
}

/* Section Headers */
.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    justify-content: center;
}

.pagination .page-link {
    color: #667eea;
    border: 1px solid #e0e0e0;
    margin: 0 5px;
    border-radius: 8px;
}

.pagination .page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .page-item.active .page-link {
    background: #667eea;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
    }

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

    .blog-card-image {
        height: 200px;
    }

    .post-title {
        font-size: 28px;
    }

    .content-body {
        font-size: 16px;
    }

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

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

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

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .sidebar-widget {
        margin-top: 40px;
    }
}

/* Loading States */
.blog-loading {
    text-align: center;
    padding: 60px 20px;
}

.blog-loading i {
    font-size: 48px;
    color: #667eea;
    animation: spin 1s linear infinite;
}

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

/* Empty States */
.blog-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.blog-empty-state h3 {
    color: #666;
    margin-bottom: 15px;
}

.blog-empty-state p {
    color: #999;
}
