/* Related Posts Suggester Styles */
.rps-related-posts {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.rps-title {
    margin: 0 0 1rem 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.rps-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rps-post-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rps-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rps-thumbnail {
    position: relative;
    overflow: hidden;
}

.rps-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rps-post-item:hover .rps-thumbnail img {
    transform: scale(1.05);
}

.rps-content {
    padding: 1rem;
}

.rps-post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1em;
    line-height: 1.3;
}

.rps-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rps-post-title a:hover {
    color: #0073aa;
}

.rps-excerpt {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.rps-read-more {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.rps-read-more:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rps-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .rps-related-posts {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .rps-thumbnail img {
        height: 150px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .rps-related-posts {
        background: #2c2c2c;
        color: #e0e0e0;
    }
    
    .rps-title {
        color: #fff;
    }
    
    .rps-post-item {
        background: #3c3c3c;
    }
    
    .rps-post-title a {
        color: #e0e0e0;
    }
    
    .rps-post-title a:hover {
        color: #4a9eff;
    }
    
    .rps-excerpt {
        color: #b0b0b0;
    }
    
    .rps-read-more {
        color: #4a9eff;
    }
    
    .rps-read-more:hover {
        color: #66b3ff;
    }
}