/* Blog Page Specific Styles */

/* Admin Button */
.admin-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.admin-btn i {
    font-size: 0.9rem;
}

/* Blog Header */
.blog-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.blog-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-header-content p {
    font-size: 1.2rem;
    color: #e0e7ff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Controls */
.blog-controls {
    padding: 40px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-section {
    flex: 1;
    min-width: 300px;
}

.search-box {
    display: flex;
    max-width: 400px;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #2563eb;
}

.search-box button {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #1d4ed8;
}

.filter-section {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.filter-group select:focus {
    outline: none;
    border-color: #2563eb;
}

/* Blog Posts */
.blog-posts {
    padding: 60px 0;
    background: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-post-image {
    height: 250px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #2563eb;
    position: relative;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-excerpt {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.blog-post-date {
    color: #94a3b8;
    font-size: 0.9rem;
}

.blog-post-category {
    background: #e0e7ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-post-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-post-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.blog-post-stat i {
    color: #94a3b8;
}

.blog-post-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.blog-post-actions button {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.blog-post-actions button:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.blog-post-actions .like-btn.liked {
    color: #ef4444;
}

.blog-post-actions .like-btn.liked i {
    color: #ef4444;
}

.read-full-btn {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.read-full-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 2rem;
}

.load-more-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-block;
}



/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #475569;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header-content h1 {
        font-size: 2.5rem;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .search-section {
        min-width: auto;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-section {
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-card {
        margin: 0 1rem;
    }
    

}

@media (max-width: 480px) {
    .blog-header {
        padding: 100px 0 40px;
    }
    
    .blog-header-content h1 {
        font-size: 2rem;
    }
    
    .blog-header-content p {
        font-size: 1rem;
    }
    
    .blog-controls {
        padding: 30px 0;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group select {
        min-width: auto;
    }
    
    .blog-post-content {
        padding: 1.5rem;
    }
    
    .blog-post-title {
        font-size: 1.3rem;
    }
    
    .blog-post-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .read-full-btn {
        width: 100%;
        text-align: center;
    }
}
