/**
 * NoSpace Blog CSS - Medium Style
 * Clean, readable typography inspired by Medium.com
 */

/* ========================================
   Blog Container (Category/List View)
   ======================================== */
.blog-container.medium-style {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.blog-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.category-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6b6b6b;
    margin-top: 1rem;
}

/* ========================================
   Blog Cards (Article Previews)
   ======================================== */
.blog-featured {
    margin-bottom: 4rem;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-featured {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.blog-card-featured .card-image {
    height: 400px;
}

.card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 250px;
}

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

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

.card-content {
    padding: 2rem;
}

.card-category {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.card-category a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-category a:hover {
    color: #764ba2;
}

.card-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.card-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.card-intro p {
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b6b6b;
}

.meta-author {
    font-weight: 500;
    color: inherit !important;
}

.meta-date {
    color: #999;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
    margin-left: auto;
}

.read-more:hover {
    gap: 0.75rem;
    color: #764ba2;
}

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

/* ========================================
   Article View (Single Post)
   ======================================== */
.article-container.medium-style {
    max-width: 740px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-category {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-category a {
    color: #667eea;
    text-decoration: none;
}

.article-category a:hover {
    color: #764ba2;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1rem;
    color: #6b6b6b;
    margin-top: 1.5rem;
}

.meta-author {
    font-weight: 600;
    color: #1a1a1a;
}

.meta-date,
.meta-hits {
    color: #999;
}

.article-featured-image {
    margin: 3rem 0;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

.article-featured-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #6b6b6b;
    font-style: italic;
    margin-top: 1rem;
    padding: 0 2rem;
}

.article-body {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #1a1a1a;
    font-family: Georgia, 'Times New Roman', serif;
}

.article-body p {
    margin-bottom: 1.8rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.article-body h2 {
    font-size: 2rem;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.article-body h4 {
    font-size: 1.25rem;
    line-height: 1.5;
}

.article-body blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 1.35rem;
    font-style: italic;
    color: #4a4a4a;
}

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

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: #1a1a1a;
    color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.tag-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

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

.article-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* ========================================
   Pagination
   ======================================== */
.blog-pagination {
    margin-top: 4rem;
    text-align: center;
}

.blog-pagination .pagination {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.blog-pagination .page-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    color: #667eea;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-featured .card-image {
        height: 250px;
    }
    
    .article-body {
        font-size: 1.125rem;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .read-more {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
