/* Featured Posts Grid Styles */

.featured-posts-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.featured-posts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Section Header */
.section-header {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #03a87c, #2ecc71);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Posts Grid */
.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Featured Card */
.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.featured-card.featured-highlight {
    border: 2px solid #03a87c;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffc 100%);
}

.featured-card.featured-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #03a87c, #2ecc71);
}

/* Card Image */
.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

/* Badges */
.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    z-index: 2;
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Category-specific badge colors */
.category-badge.category-java { background: rgba(248, 152, 32, 0.9); }
.category-badge.category-flutter { background: rgba(2, 86, 155, 0.9); }
.category-badge.category-devops { background: rgba(50, 108, 229, 0.9); }
.category-badge.category-ai { background: rgba(255, 107, 107, 0.9); }
.category-badge.category-architecture { background: rgba(78, 205, 196, 0.9); }
.category-badge.category-development { background: rgba(116, 93, 209, 0.9); }

/* Card Content */
.card-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

.card-title a:hover {
    color: #03a87c;
}

.card-excerpt {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Post Categories */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-link {
    background: #f1f3f4;
    color: #5a6c7d;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #03a87c;
    color: white;
    transform: translateY(-1px);
}

/* Card Footer */
.card-footer {
    border-top: 1px solid #f1f3f4;
    padding-top: 1rem;
    margin-top: 1rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #03a87c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #027a63;
    transform: translateX(5px);
}

.read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* View All Button */
.view-all-btn {
    border: 2px solid #03a87c;
    color: #03a87c;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: transparent;
}

.view-all-btn:hover {
    background: #03a87c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(3, 168, 124, 0.3);
}

/* Quick Categories Section */
.quick-categories {
    border-top: 1px solid #e9ecef;
}

.category-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #495057;
    font-weight: 500;
}

.quick-category-btn:hover {
    border-color: #03a87c;
    color: #03a87c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 168, 124, 0.15);
}

.category-name {
    font-weight: 600;
}

.category-count {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.quick-category-btn:hover .category-count {
    background: #03a87c;
    color: white;
}

/* Category-specific hover colors */
.quick-category-btn.category-java:hover { border-color: #f89820; color: #f89820; }
.quick-category-btn.category-flutter:hover { border-color: #02569b; color: #02569b; }
.quick-category-btn.category-devops:hover { border-color: #326ce5; color: #326ce5; }
.quick-category-btn.category-ai:hover { border-color: #ff6b6b; color: #ff6b6b; }
.quick-category-btn.category-architecture:hover { border-color: #4ecdc4; color: #4ecdc4; }

/* Responsive Design */
@media (max-width: 991.98px) {
    .featured-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .featured-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-image {
        height: 180px;
    }
    
    .category-quick-nav {
        justify-content: center;
    }
    
    .quick-category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .featured-posts-grid {
        margin-top: 2rem;
    }
    
    .featured-card {
        margin: 0 0.5rem;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}