/**
 * Recent Posts Widget - Styles
 */

/* ========================================
   Wrapper
   ======================================== */

.rp-wrapper {
    width: 100%;
    margin: 0 auto;
    clear: both;
}

/* ========================================
   Widget Header
   ======================================== */

.rp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.rp-widget-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.rp-view-more {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rp-view-more:hover {
    color: #000;
}

/* ========================================
   Posts Grid
   ======================================== */

.rp-posts-grid {
    display: grid;
    gap: 40px;
}

@media (max-width: 1024px) {
    .rp-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .rp-posts-grid {
        grid-template-columns: 1fr !important;
    }
}

.rp-no-posts {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #999;
    grid-column: 1 / -1;
}

/* ========================================
   Post Card
   ======================================== */

.rp-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.rp-post-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.rp-no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.rp-post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Post Title Row */
.rp-post-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.rp-post-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

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

.rp-post-title a:hover {
    color: #666;
}

.rp-post-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Post Excerpt */
.rp-post-excerpt {
    font-size: 15px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* Post Meta */
.rp-post-meta {
    font-size: 14px;
    color: #999;
    margin: 0 0 15px 0;
}

/* Post Content */
.rp-post-content {
    font-size: 15px;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.6;
    flex: 1;
}

/* Publication Link */
.rp-publication-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.rp-publication-link:hover {
    color: #666;
    gap: 12px;
}

.rp-publication-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    stroke-width: 3;
    flex-shrink: 0;
}

.rp-publication-link:hover .rp-publication-arrow {
    transform: translate(3px, -3px);
}

/* Post Channels */
.rp-post-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
}

.rp-channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.rp-channel-dot {
    width: 20px;
    height: 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .rp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rp-widget-title {
        font-size: 24px;
    }
    
    .rp-post-title-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .rp-post-date {
        align-self: flex-start;
    }
}
