/* Blog Page Styles */

/* Blog Hero */
.blog-hero {
    padding: 120px 0 80px;
    background: var(--bg-light, #f8fafc);
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark, #1e293b);
}

.blog-hero p {
    font-size: 1.125rem;
    color: var(--text-light, #64748b);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Layout */
.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
}

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

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

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.blog-category {
    color: #7c3aed;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #1e293b;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: #7c3aed;
}

.blog-excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
}

.read-more {
    color: #7c3aed;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #7c3aed, #ec4899);
    border-radius: 2px;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

.search-btn:hover {
    color: #7c3aed;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #f1f5f9;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #475569;
    transition: color 0.2s;
}

.category-list a:hover {
    color: #7c3aed;
}

.category-count {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #64748b;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
}

.recent-post-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.recent-post-info h4 a {
    color: #1e293b;
    transition: color 0.2s;
}

.recent-post-info h4 a:hover {
    color: #7c3aed;
}

.recent-post-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.tag-link:hover {
    background: #7c3aed;
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover, .page-link.active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

/* Blog Detail */
.blog-detail-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: var(--bg-light);
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.blog-detail-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.blog-detail-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #1e293b;
}

.blog-detail-content p {
    margin-bottom: 24px;
}

.blog-detail-content ul, .blog-detail-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-detail-content li {
    margin-bottom: 12px;
}

.featured-image-wrapper {
    margin: -40px 0 60px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.blog-tags-wrapper {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.blog-tags-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-right: 0.5rem;
}

.share-post {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-title {
    font-weight: 600;
    color: #1e293b;
}

.share-links {
    display: flex;
    gap: 12px;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s;
}

.share-icon:hover {
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e293b;
}
