/* ============================================
   BLOG ARCHIVE - MAGAZINE STYLE
   Premium Blog Layout with Featured Posts
   ============================================ */

/* ============================================
   BLOG HERO - MAGAZINE STYLE
   ============================================ */
.blog-hero-magazine {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Dynamic Category Colors */
.blog-hero-magazine.category-tech {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-hero-magazine.category-business {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.blog-hero-magazine.category-lifestyle {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Archive Actions */
.archive-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.follow-btn,
.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.follow-btn:hover,
.rss-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.follow-btn.following {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================
   FEATURED POST HERO
   ============================================ */
.featured-post-section {
    padding: 3rem 0;
    background: white;
}

.featured-card-large {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
}

.featured-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.featured-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/12;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.featured-card-large:hover .featured-thumbnail img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    letter-spacing: 1px;
    z-index: 2;
}

.featured-content-glass {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #f8fafc;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-title {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-title a:hover {
    color: #ef4444;
}

.featured-excerpt {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.featured-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-author-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9375rem;
}

.featured-date,
.featured-reading-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ============================================
   CONTENT + SIDEBAR LAYOUT
   ============================================ */
.archive-content-layout {
    padding: 4rem 0;
    background: #f8fafc;
}

.content-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

/* ============================================
   POSTS GRID - 4 COLUMNS
   ============================================ */
.posts-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Post Card - Magazine Style */
.post-card-magazine {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card-magazine:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.post-card-magazine .post-thumbnail {
    aspect-ratio: 16/9;
}

.post-card-magazine .post-content {
    padding: 1.25rem;
}

.post-card-magazine .post-title a {
    font-size: 1rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.post-card-magazine .post-excerpt {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Post Meta Enhanced */
.post-meta-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.author-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-date-enhanced,
.reading-time-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reading-time-badge {
    padding: 0.25rem 0.5rem;
    background: #f8fafc;
    border-radius: 4px;
    font-weight: 600;
}

/* Category Badge - Colored */
.category-badge-colored {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-decoration: none;
    z-index: 2;
}

/* Category Colors */
.category-badge-colored.cat-tech {
    background: rgba(103, 126, 234, 0.95);
}

.category-badge-colored.cat-business {
    background: rgba(240, 147, 251, 0.95);
}

.category-badge-colored.cat-lifestyle {
    background: rgba(79, 172, 254, 0.95);
}

/* ============================================
   SIDEBAR - STICKY
   ============================================ */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.widget {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Widget */
.search-widget form {
    position: relative;
}

.search-widget input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.search-widget input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.search-widget svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

/* Categories Widget */
.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li {
    margin-bottom: 0.75rem;
}

.categories-widget a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9375rem;
}

.categories-widget a:hover {
    background: #f8fafc;
    color: #0f172a;
}

.categories-widget .count {
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

/* Tags Widget */
.tags-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-widget a {
    padding: 0.375rem 0.875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s;
}

.tags-widget a:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Newsletter Widget */
.newsletter-widget-sidebar {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
}

.newsletter-widget-sidebar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.newsletter-widget-sidebar button {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-widget-sidebar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .posts-grid-4col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-sidebar-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-sticky {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .posts-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-card-large {
        grid-template-columns: 1fr;
    }

    .featured-content-glass {
        padding: 2rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .posts-grid-4col {
        grid-template-columns: 1fr;
    }

    .sidebar-sticky {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .featured-post-section {
        padding: 2rem 0;
    }

    .featured-content-glass {
        padding: 1.5rem;
    }

    .archive-actions {
        width: 100%;
    }

    .follow-btn,
    .rss-link {
        flex: 1;
        justify-content: center;
    }
}