/* Hero Section */
.blog-hero {
    background: #1a1f3a;
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(120, 119, 198, 0.2) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e3f2fd;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    font-family: 'Georgia', serif;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Floating Decorations */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.card-1 i { color: #f7df1e; } /* JavaScript yellow */
.card-2 i { color: #3776ab; } /* Python blue */
.card-3 i { color: #61dafb; } /* React cyan */
.card-4 i { color: #ed8b00; } /* Java orange */

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.card-3 {
    top: 30%;
    right: 25%;
    animation-delay: 4s;
}

.card-4 {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Filter Tabs */
.blog-filters {
    margin-bottom: 3rem;
    text-align: center;
}

.filter-tabs {
    display: inline-flex;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.25rem;
    gap: 0.25rem;
    border: 1px solid #e9ecef;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
}

.filter-tab.active,
.filter-tab:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

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

.blog-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.blog-card.featured {
    grid-column: span 2;
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #1976d2;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.15);
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem 0;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e3f2fd;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1976d2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #bbdefb;
}

.blog-card.featured .card-category {
    background: #1976d2;
    color: white;
    border: 1px solid #1976d2;
}

.featured-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #fbbf24;
    color: #92400e;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin-bottom: 0.75rem;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.blog-card.featured .card-title a {
    color: #2c3e50;
    font-size: 1.25rem;
}

.card-title a:hover {
    color: #1976d2;
}

.blog-card.featured .card-title a:hover {
    color: #1976d2;
}

.card-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: auto;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card.featured .card-excerpt {
    color: #6c757d;
    -webkit-line-clamp: 2;
    font-size: 1rem;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.blog-card.featured .card-footer {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.blog-card.featured .meta-item {
    color: rgba(255, 255, 255, 0.7);
}

.meta-item i {
    font-size: 0.7rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background: #1976d2;
    border: none;
    transition: all 0.3s ease;
}

.blog-card.featured .read-more-btn {
    color: white;
    background: #1976d2;
}

.read-more-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.blog-card.featured .read-more-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}