/* Blog Archive Styles */
.blog-archive-header {
    background: linear-gradient(135deg, #2ECC40 0%, #27AE60 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.blog-archive-header .container {
    position: relative;
    z-index: 1;
}

.blog-archive-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-archive-header .description {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.blog-archive-header .post-count {
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

/* Blog Container */
.blog-archive-container {
    padding: 60px 0;
    background: #F8F9FA;
}

.blog-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

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

/* Post Card */
.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.post-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

.post-card:hover .post-card-image img {
    transform: scale(1.1);
}

.post-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(46, 204, 64, 0.95);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-meta i {
    color: #2ECC40;
}

.post-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.post-card-title a:hover {
    color: #2ECC40;
}

.post-card-excerpt {
    color: #5A6C7D;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

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

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

.post-card-author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-author-info {
    font-size: 0.9rem;
}

.post-card-author-name {
    font-weight: 600;
    color: #2C3E50;
}

.post-card-read-more {
    background: linear-gradient(135deg, #2ECC40, #27AE60);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-card-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(46, 204, 64, 0.3);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2C3E50;
    border-bottom: 3px solid #2ECC40;
    padding-bottom: 10px;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #F8F9FA;
    border-radius: 8px;
    text-decoration: none;
    color: #5A6C7D;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    background: #2ECC40;
    color: white;
    transform: translateX(5px);
}

.categories-list .count {
    background: white;
    color: #2ECC40;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.categories-list a:hover .count {
    background: white;
    color: #2ECC40;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts-list a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #2C3E50;
    transition: color 0.3s ease;
}

.recent-posts-list a:hover {
    color: #2ECC40;
}

.recent-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Search Widget */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    height: 48px;
    box-sizing: border-box;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #2ECC40;
}

.search-form button {
    background: linear-gradient(135deg, #2ECC40, #27AE60);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    height: 48px;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(46, 204, 64, 0.3);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    display: inline-block;
    padding: 8px 16px;
    background: #F8F9FA;
    border-radius: 20px;
    text-decoration: none;
    color: #5A6C7D;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tags-cloud a:hover {
    background: #2ECC40;
    color: white;
    transform: translateY(-2px);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    color: #5A6C7D;
    background: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pagination a:hover {
    background: linear-gradient(135deg, #2ECC40, #27AE60);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 64, 0.3);
}

.pagination .current {
    background: linear-gradient(135deg, #2ECC40, #27AE60);
    color: white;
    box-shadow: 0 5px 15px rgba(46, 204, 64, 0.3);
}

.pagination .dots {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.no-posts-found i {
    font-size: 4rem;
    color: #ecf0f1;
    margin-bottom: 20px;
}

.no-posts-found h2 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 15px;
}

.no-posts-found p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .blog-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .blog-archive-header h1 {
        font-size: 2rem;
    }
    
    .blog-archive-header .description {
        font-size: 1rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-grid-wrapper {
        padding: 0 15px;
    }
    
    .post-card-image {
        height: 200px;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-archive-header {
        padding: 50px 0;
    }
    
    .blog-archive-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-archive-container {
        padding: 30px 0;
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    .post-card-title {
        font-size: 1.2rem;
    }
}
