/* ===================================
   BLOG PAGE STYLES
   =================================== */

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background: #fafafa;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(34, 116, 255, 0.15);
}

/* Blog Card Image */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumbnail {
    transform: scale(1.08);
}

/* Blog Card Content */
.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date,
.blog-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.blog-meta-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.blog-category {
    color: #2274FF;
}

/* Blog Card Title */
.blog-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.875rem;
    color: #1e293b;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #2274FF;
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Blog Card Link */
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2274FF;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-card-link:hover {
    gap: 0.75rem;
    color: #1e5dd6;
}

.blog-card-link .link-icon {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.3s ease;
}

.blog-card-link:hover .link-icon {
    transform: translateX(4px);
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination .page-numbers li {
    margin: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    color: #2274FF;
    border-color: #2274FF;
    background: #f0f7ff;
    transform: translateY(-2px);
}

.blog-pagination .current {
    color: white;
    background: linear-gradient(135deg, #2274FF 0%, #3b82f6 100%);
    border-color: #2274FF;
    box-shadow: 0 4px 12px rgba(34, 116, 255, 0.25);
}

.blog-pagination .prev,
.blog-pagination .next {
    gap: 0.5rem;
}

.pagination-icon {
    width: 1rem;
    height: 1rem;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 32rem;
    margin: 0 auto;
}

.no-posts-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 1.25rem;
}

.no-posts-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: #94a3b8;
}

.no-posts h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.no-posts p {
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.7;
}

/* ===================================
   SINGLE POST STYLES
   =================================== */

/* Article Hero */
.article-hero {
    position: relative;
    background: linear-gradient(135deg, #2274FF 0%, #1e5dd6 40%, #1a4fb8 100%);
    padding: 8rem 0 4rem;
    color: white;
    overflow: hidden;
}

.article-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-icon {
    width: 1rem;
    height: 1rem;
}

.article-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
}

.article-date {
    font-size: 0.875rem;
    opacity: 0.85;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.stat-icon {
    width: 1rem;
    height: 1rem;
}

/* Featured Image */
.article-featured-image {
    margin-top: -3rem;
    padding: 0 0 3rem;
    background: white;
}

.featured-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content Section */
.article-content-section {
    padding: 3rem 0 5rem;
    background: white;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Main Content */
.article-main {
    min-width: 0;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #1e293b;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

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

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.article-content a {
    color: #2274FF;
    text-decoration: underline;
}

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

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

.article-content blockquote {
    border-left: 4px solid #2274FF;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
}

/* Article Tags */
.article-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.tags-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #2274FF;
    color: white;
}

/* Share Buttons */
.article-share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.share-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

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

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

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

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

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-bio-content {
    flex: 1;
}

.author-bio-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.author-bio-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.post-nav-link {
    display: block;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.post-nav-link:hover {
    background: #f0f7ff;
    border-color: #2274FF;
    transform: translateY(-2px);
}

.post-nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.post-nav-icon {
    width: 1rem;
    height: 1rem;
}

.post-nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.post-nav-next {
    text-align: right;
}

.post-nav-next .post-nav-label {
    justify-content: flex-end;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item {
    display: flex;
    gap: 0.75rem;
}

.recent-post-thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.recent-post-title a {
    color: #1e293b;
    text-decoration: none;
}

.recent-post-title a:hover {
    color: #2274FF;
}

.recent-post-date {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #2274FF 0%, #1e5dd6 100%);
    color: white;
    border: none;
}

.sidebar-cta .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cta-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    opacity: 0.92;
}

.sidebar-cta .btn-primary {
    background: white;
    color: #2274FF;
    width: 100%;
    justify-content: center;
}

.sidebar-cta .btn-primary:hover {
    background: #f0f7ff;
}

/* Related Posts Section */
.related-posts-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.related-posts-section .section-title {
    margin-bottom: 2.5rem;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 3rem 0;
    }

    .article-hero {
        padding: 7rem 0 3rem;
    }

    .article-title {
        font-size: 1.875rem;
    }

    .article-meta {
        gap: 1.25rem;
    }

    .article-layout {
        gap: 2rem;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

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

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }

    .post-nav-next .post-nav-label {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .blog-card-title {
        font-size: 1.25rem;
    }

    .blog-card-excerpt {
        font-size: 0.9375rem;
    }

    .blog-pagination a,
    .blog-pagination span {
        min-width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9375rem;
    }

    .article-hero {
        padding: 6rem 0 2rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .sidebar-widget {
        padding: 1.25rem;
    }
}