/* ==============================================
   Blog Styles
   Includes:
     - r7m9tx-* classes (blog archive listing)
   Single-post fw9k2m-* classes live in inc/blog-layout.php
   ============================================== */

/* ==========================================
   BLOG LISTING WRAPPER
   ========================================== */

.r7m9tx-blog-listing-wrapper {
    width: 100%;
    max-width: var(--container-max, 1200px);
    margin: 60px auto;
    padding: 0 20px;
}

/* ==========================================
   PAGE HEADER
   ========================================== */

.r7m9tx-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.r7m9tx-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-dark, #1e293b);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.r7m9tx-page-intro {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================
   BLOG GRID
   ========================================== */

.r7m9tx-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

/* ==========================================
   BLOG CARD
   ========================================== */

.r7m9tx-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.r7m9tx-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.r7m9tx-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Image */
.r7m9tx-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9ecef;
    position: relative;
}

.r7m9tx-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.r7m9tx-blog-card:hover .r7m9tx-thumbnail {
    transform: scale(1.05);
}

/* Image Placeholder */
.r7m9tx-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
}

.r7m9tx-placeholder-content {
    text-align: center;
}

.r7m9tx-placeholder-icon {
    font-size: 48px;
    opacity: 0.9;
}

/* Card Content */
.r7m9tx-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.r7m9tx-card-date {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.r7m9tx-card-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text-dark, #1e293b);
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.r7m9tx-card-excerpt {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.r7m9tx-card-cta {
    font-size: 0.9375rem;
    color: #0066cc;
    font-weight: 600;
    display: inline-block;
    transition: color 0.2s ease;
}

.r7m9tx-blog-card:hover .r7m9tx-card-cta {
    color: #0052a3;
}

/* ==========================================
   PAGINATION
   ========================================== */

.r7m9tx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.r7m9tx-pagination-link {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #0066cc;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.r7m9tx-pagination-link:hover {
    background: #0066cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.r7m9tx-pagination-info {
    font-size: 0.9375rem;
    color: #666;
    padding: 0 16px;
}

/* ==========================================
   NO POSTS MESSAGE
   ========================================== */

.r7m9tx-no-posts {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.r7m9tx-no-posts p {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 992px) {
    .r7m9tx-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .r7m9tx-page-title {
        font-size: 2.5rem;
    }
    .r7m9tx-page-intro {
        font-size: 1.0625rem;
    }
    .r7m9tx-card-title {
        font-size: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .r7m9tx-blog-listing-wrapper {
        padding: 40px 20px 60px;
        margin: 40px auto;
    }
    .r7m9tx-page-header {
        margin-bottom: 40px;
    }
    .r7m9tx-page-title {
        font-size: 2rem;
    }
    .r7m9tx-page-intro {
        font-size: 1rem;
    }
    .r7m9tx-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    .r7m9tx-card-image {
        height: 200px;
    }
    .r7m9tx-card-content {
        padding: 20px;
    }
    .r7m9tx-card-title {
        font-size: 1.125rem;
    }
    .r7m9tx-card-excerpt {
        font-size: 0.875rem;
        margin-bottom: 16px;
    }
    .r7m9tx-pagination {
        flex-direction: column;
        gap: 12px;
    }
    .r7m9tx-pagination-link {
        width: 100%;
        text-align: center;
    }
    .r7m9tx-pagination-info {
        order: -1;
        padding: 0;
    }
}
