/* =========================================
   Blog Post Page Styles
   ========================================= */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #334155;
}

/* Nav */
.blog-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: #818cf8;
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: background-color 0.3s;
}

.back-link:hover .icon-circle {
    background-color: #e0e7ff;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    color: #818cf8;
    background-color: #e0e7ff;
}

/* Layout */
.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

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

/* Main Content */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 30px;
}

.current-cat {
    color: #818cf8;
    font-weight: 600;
}

.article-header {
    margin-bottom: 40px;
}

.article-meta-top {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 24px;
}

.meta-date {
    background-color: #f1f5f9;
    color: #4f46e5;
    padding: 4px 12px;
    border-radius: 20px;
}

.meta-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    /* Extra bold */
    color: #9291F7;
    line-height: 1.1;
    margin-bottom: 20px;
}

.article-subtitle {
    font-size: 1.5rem;
    color: #475569;
    font-weight: 300;
    line-height: 1.5;
}

.featured-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 50px;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #9291F7;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-bottom: 20px;
}

.article-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #9291F7;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Author Card */
.author-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e0e7ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Ensure image stays in circle */
}

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

.author-info {
    flex-grow: 1;
}

.written-by {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #9291F7;
}

.author-role {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 10px;
}

.author-socials a {
    color: #94a3b8;
    transition: color 0.3s;
}

.author-socials a:hover {
    color: #4f46e5;
}

.view-profile-btn {
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s;
}

.view-profile-btn:hover {
    border-color: #818cf8;
    color: #4f46e5;
}

/* Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
    /* Offset for nav */
}

.sidebar-widget {
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9291F7;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.search-widget {
    position: relative;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    padding-right: 40px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #4f46e5;
}

.cat-count {
    background-color: #f8fafc;
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.category-list a:hover .cat-count {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

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

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.recent-post-item:hover .recent-post-img img {
    transform: scale(1.1);
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-date {
    font-size: 0.75rem;
    color: #4f46e5;
    font-weight: 600;
    margin-bottom: 4px;
}

.recent-post-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #9291F7;
    line-height: 1.3;
    transition: color 0.3s;
}

.recent-post-item:hover .recent-post-info h4 {
    color: #4f46e5;
}

.newsletter-widget {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border: none;
}

.newsletter-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-widget p {
    font-size: 0.9rem;
    color: #e0e7ff;
    margin-bottom: 20px;
}

.subscribe-btn {
    width: 100%;
    padding: 12px;
    background-color: #fff;
    color: #4f46e5;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #f8fafc;
}