<?php

/** Block 19: CSS Styles for the Widget */

/**
 * Add this CSS file to your plugin's assets/css directory
 * File: custom-post-selector.css
 */

.custom-post-selector-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.custom-post-selector-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

.custom-post-selector-horizontal.image-right {
    flex-direction: row-reverse;
}

.custom-post-selector-image {
    margin-bottom: 20px;
    overflow: hidden;
}

.custom-post-selector-horizontal .custom-post-selector-image {
    margin-bottom: 0;
}

.custom-post-selector-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.custom-post-selector-container:hover .custom-post-selector-image img {
    transform: scale(1.03);
}

.custom-post-selector-horizontal .custom-post-selector-content {
    flex: 1;
}

.custom-post-selector-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.custom-post-selector-title a {
    color: inherit;
    text-decoration: none;
}

.custom-post-selector-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.custom-post-selector-meta a {
    color: inherit;
    text-decoration: none;
}

.custom-post-selector-excerpt {
    margin-bottom: 15px;
}

.custom-post-selector-read-more {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .custom-post-selector-horizontal {
        flex-direction: column;
    }
    
    .custom-post-selector-horizontal.image-right {
        flex-direction: column;
    }
    
    .custom-post-selector-horizontal .custom-post-selector-image {
        margin-bottom: 20px;
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .custom-post-selector-horizontal .custom-post-selector-content {
        width: 100% !important;
    }
}
