/**
 * Custom Posts Shortcode Plugin Styles
 * Version: 1.0.0
 */

.custom-post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 1rem 0;
}

.custom-post-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.custom-post-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-post-thumbnail {
    flex: 0 0 200px;
}

.custom-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.custom-post-thumbnail:hover img {
    transform: scale(1.02);
}

.custom-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-post-content h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.custom-post-content h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.custom-post-content h3 a:hover {
    color: #0073aa;
}

.custom-post-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.custom-post-content .read-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.custom-post-content .read-more:hover {
    background: #005a87;
}

.custom-pagination {
    margin: 2rem 0;
    text-align: center;
}

.custom-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.custom-pagination .page-numbers:hover,
.custom-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
}

.custom-pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
}

.no-posts-found {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-post-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .custom-post-thumbnail {
        flex: none;
    }
    
    .custom-post-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .custom-post-list {
        gap: 1rem;
    }
    
    .custom-post-item {
        padding: 1rem;
    }
    
    .custom-post-content h3 {
        font-size: 1.2rem;
    }
    
    .custom-pagination .page-numbers {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
