/**
 * Blog Styles - XEEMU Studios
 * Styles for public blog pages
 */

/* ===========================================
   Blog Section Styles
   =========================================== */

.blog-section {
    padding: 140px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 300px);
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.blog-header h1 .text-blue {
    color: #1065D1;
}

.blog-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filter Pills */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.category-pill {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-pill:hover,
.category-pill.active {
    background: #1065D1;
    border-color: #1065D1;
    color: #fff;
}

/* Blog Posts Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

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

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

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-card-image .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: #1065D1;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #888;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.blog-card-title a:hover {
    color: #1065D1;
}

.blog-card-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1065D1;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 10px;
}

/* Placeholder Image with random gradients */
.blog-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Default gradient - overridden by inline styles */
    background: linear-gradient(135deg, #1065D1 0%, #2DB0CE 100%);
}

.blog-card-image.no-image span {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 3px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    border-color: #1065D1;
    color: #1065D1;
}

.blog-pagination span.active {
    background: #1065D1;
    border-color: #1065D1;
    color: #fff;
}

.blog-pagination span.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
}

.blog-empty h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.blog-empty p {
    font-family: 'Poppins', sans-serif;
    color: #666;
}

/* ===========================================
   Single Post Styles
   =========================================== */

.post-section {
    padding: 0;
}

/* Post Hero */
.post-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #1065D1 0%, #2DB0CE 100%);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.post-hero.has-image {
    background: transparent;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.post-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 0;
}

.post-hero-content .container {
    max-width: 900px;
}

.post-category {
    display: inline-block;
    padding: 6px 15px;
    background: #1065D1;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 15px;
    text-decoration: none;
}

.post-category:hover {
    background: #0d4fb0;
    color: #fff;
}

.post-title {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Post Content */
.post-content-wrapper {
    padding: 60px 0;
    background: #fff;
}

.post-content-wrapper .container {
    max-width: 800px;
}

.post-content {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: 'Oswald', sans-serif;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.post-content h2 { font-size: 32px; }
.post-content h3 { font-size: 26px; }
.post-content h4 { font-size: 22px; }

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.post-content a {
    color: #1065D1;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid #1065D1;
    padding: 15px 25px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}

.post-content pre,
.post-content code {
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    border-radius: 5px;
}

.post-content code {
    padding: 2px 6px;
    font-size: 14px;
}

.post-content pre {
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-tags a {
    display: inline-block;
    padding: 6px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #1065D1;
    color: #fff;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-posts h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

/* Back to Blog Link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #1065D1;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.back-to-blog:hover {
    background: #0d4fb0;
    color: #fff;
}

/* 404 Not Found */
.post-not-found {
    text-align: center;
    padding: 100px 20px;
}

.post-not-found h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 120px;
    color: #e0e0e0;
    margin-bottom: 0;
}

.post-not-found h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.post-not-found p {
    font-family: 'Poppins', sans-serif;
    color: #666;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 36px;
    }

    .post-hero {
        height: 300px;
    }

    .post-title {
        font-size: 32px;
    }

    .post-content {
        font-size: 16px;
    }
}
