/* Blog Specific Styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #0A0E27 0%, #1A1E3D 100%);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.blog-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 1.2rem;
    color: #E8E9ED;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #FF6B35;
    background: rgba(255, 255, 255, 0.15);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Categories Filter */
.categories-section {
    background: #050714;
    padding: 25px 0;
    position: sticky;
    top: 60px;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.categories-filter {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: #1A1E3D;
    color: #E8E9ED;
    border: 2px solid transparent;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: #FF6B35;
    color: #FF6B35;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 60px 0;
    background: #0A0E27;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Post Card */
.post-card {
    background: #1A1E3D;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: #FF6B35;
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.post-badge.tutorial {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.post-badge.tips {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.post-badge.review {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
}

.post-badge.experience {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.read-time {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 6px 12px;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Post Content */
.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #9CA3AF;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content h2 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: white;
    font-weight: 700;
}

.post-content p {
    color: #E8E9ED;
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.post-tags .tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: #FF6B35;
    color: #FF6B35;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF6B35;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    gap: 12px;
    color: #F7B801;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.no-results p {
    color: #9CA3AF;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    min-width: 45px;
    height: 45px;
    background: #1A1E3D;
    color: #E8E9ED;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.1);
    border-color: #FF6B35;
    color: #FF6B35;
}

.page-btn.active {
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    color: white;
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, rgba(255,107,53,0.1) 0%, rgba(247,184,1,0.1) 100%);
    padding: 80px 0;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter p {
    color: #9CA3AF;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    background: #1A1E3D;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #FF6B35;
}

.newsletter-form input::placeholder {
    color: #9CA3AF;
}

.newsletter-note {
    font-size: 0.9rem;
    color: #9CA3AF;
}

/* Popular Tags */
.popular-tags {
    background: #050714;
    padding: 60px 0;
}

.popular-tags h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.tag-item {
    padding: 10px 20px;
    background: #1A1E3D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #E8E9ED;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tag-item:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .categories-filter {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .category-btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 120px 0 60px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .post-content h2 {
        font-size: 1.2rem;
    }
}