/**
 * BLOG PAGE STYLES
 * SEO Optimized Blog Archive & Single Post
 */

/* ==========================================
   Blog Hero Section
   ========================================== */
.blog-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 122, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.blog-hero-title {
    font-size: 56px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.blog-hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================
   Blog Content Section
   ========================================== */
.blog-content-section {
    padding: 80px 0;
    background: #ffffff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

/* ==========================================
   Blog Posts Grid
   ========================================== */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.blog-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.blog-post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

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

.blog-post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff7a00;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-content {
    padding: 28px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
}

.blog-post-meta svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.blog-post-meta > * {
    display: flex;
    align-items: center;
}

.blog-post-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

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

.blog-post-title a:hover {
    color: #ff7a00;
}

.blog-post-excerpt {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff7a00;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-post-read-more:hover {
    gap: 12px;
}

.blog-post-read-more svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   Pagination
   ========================================== */
.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 60px 0 0;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-numbers a {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.page-numbers a:hover {
    color: #ff7a00;
    background: #fff8f3;
    border-color: #ff7a00;
}

.page-numbers .current {
    color: #ffffff;
    background: #ff7a00;
    border-color: #ff7a00;
}

.page-numbers .prev,
.page-numbers .next {
    gap: 6px;
}

.page-numbers svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   No Posts Message
   ========================================== */
.no-posts-message {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.no-posts-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.no-posts-message p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* ==========================================
   Blog Sidebar
   ========================================== */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.blog-widget-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* Categories List */
.blog-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-categories-list li {
    margin-bottom: 12px;
}

.blog-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.blog-categories-list a:hover {
    color: #ff7a00;
    padding-left: 8px;
}

.blog-categories-list span {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Recent Posts */
.blog-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-recent-posts li {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.blog-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

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

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-post-title:hover {
    color: #ff7a00;
}

.recent-post-date {
    font-size: 12px;
    color: #94a3b8;
}

/* Tags Cloud */
.blog-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f8fafc;
    color: #475569;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: #ff7a00;
    color: #ffffff;
    border-color: #ff7a00;
    transform: translateY(-2px);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        padding: 60px 0 40px;
    }
    
    .blog-hero-title {
        font-size: 36px;
    }
    
    .blog-hero-description {
        font-size: 16px;
    }
    
    .blog-content-section {
        padding: 40px 0;
    }
    
    .blog-posts-grid {
        gap: 24px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-title {
        font-size: 20px;
    }
    
    .blog-post-meta {
        font-size: 12px;
        gap: 12px;
    }
}

