/* Blogs Page Styles */

.blogs-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.blogs-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blogs-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blogs-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: #06b6d4;
}

.stat-item span {
    font-size: 0.875rem;
    opacity: 0.8;
}

.blogs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blogs-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.clear-filters-btn {
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: #dc2626;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.reading-time svg {
    width: 14px;
    height: 14px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.blog-summary {
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag.more {
    background: #f1f5f9;
    color: #64748b;
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.read-more-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Blog Modal */
#blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

#blog-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.modal-close:hover {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.blog-article-header h1 {
    font-size: 2rem;
    color: #0f172a;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.blog-summary-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid #06b6d4;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

.blog-summary-box svg {
    flex-shrink: 0;
    color: #06b6d4;
}

.blog-summary-box p {
    font-style: italic;
    color: #0f172a;
    margin: 0;
}

.blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.blog-article-content {
    line-height: 1.8;
    color: #334155;
}

.blog-article-content h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin: 2rem 0 1rem 0;
}

.blog-article-content p {
    margin: 1rem 0;
}

.blog-source {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-source svg {
    color: #06b6d4;
}

.blog-source a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.blog-source a:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Loading & Error States */
.loading,
.error-message,
.no-results {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.loading {
    font-size: 1.125rem;
}

.error-message h3,
.no-results h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blogs-hero h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blogs-filters {
        flex-direction: column;
    }
    
    #blog-modal-content {
        padding: 1.5rem;
    }
    
    .blog-article-header h1 {
        font-size: 1.5rem;
    }
}
