/* Modern Category Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.modern-content-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
    margin: 40px 0;
}

/* Left Sidebar */
.left-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.category-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-info-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 700;
}

.category-description {
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 15px;
}

.category-stats {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 15px;
}

.post-count {
    font-size: 0.9em;
    opacity: 0.8;
}

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

.modern-page-header {
    margin-bottom: 40px;
}

.breadcrumb {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 20px;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
}

.modern-page-title {
    font-size: 2.5em;
    font-weight: 800;
    margin: 0 0 30px 0;
    background: linear-gradient(135deg, #333, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-icon {
    margin-right: 15px;
}

.category-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #555;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Posts Grid */
.modern-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.modern-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.modern-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.modern-post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-post-card:hover .image-overlay {
    opacity: 1;
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
}

.cat-badge {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
}

.post-card-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.8em;
    color: #666;
}

.post-meta i {
    margin-right: 5px;
    opacity: 0.7;
}

.post-card-title {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    line-height: 1.4;
}

.post-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.author-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-name {
    font-size: 0.9em;
    font-weight: 500;
    color: #555;
}

.read-more-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Beautiful Pagination */
.modern-pagination {
    margin-top: 50px;
}

.page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.page-numbers .current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.page-numbers .prev,
.page-numbers .next {
    font-weight: 600;
}

/* Empty State */
.no-posts-found {
    text-align: center;
    padding: 80px 20px;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}

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

.empty-state p {
    color: #888;
    margin-bottom: 25px;
}

.btn-primary {
    background: #667eea;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Font Awesome Icons (if not already loaded) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Responsive Design */
@media (max-width: 1024px) {
    .modern-content-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
    
    .modern-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .left-sidebar {
        position: static;
        margin-bottom: 40px;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .modern-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-page-title {
        font-size: 2em;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .read-more-btn {
        align-self: stretch;
        text-align: center;
        justify-content: center;
    }
}



/* Archive Specific Styles */
.author-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

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

.author-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    color: #333;
}

.author-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
}

.author-social-widget {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.author-social-widget h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #333;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    background: #5a6fd8;
    color: white;
}

.archive-navigation {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.archive-navigation h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #333;
}

.date-navigation {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.date-nav-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

/* Author archive specific adjustments */
.author-archive .post-card-footer .author-avatar {
    display: none; /* Hide author in author archive since it's redundant */
}

/* Date archive icons */
.date-archive .category-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Author archive icons */
.author-archive .category-icon {
    background: linear-gradient(135deg, #4834d4, #686de0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tag archive icons */
.tag-archive .category-icon {
    background: linear-gradient(135deg, #00d2d3, #54a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}