/* Post Carousel Filter Styles */

.pcf-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Filter Dropdown */
.pcf-filter-container {
    text-align: center;
    margin-bottom: 30px;
}

.pcf-filter-dropdown {
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    outline: none;
}

.pcf-filter-dropdown:hover {
    border-color: #007cba;
}

.pcf-filter-dropdown:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Carousel Wrapper */
.pcf-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.pcf-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.pcf-slide {
    flex: 0 0 auto;
    min-width: 0;
}

/* Desktop: 4 posts per slide */
@media (min-width: 1024px) {
    .pcf-slide {
        width: calc(25% - 15px);
    }
}

/* Tablet: 2 posts per slide */
@media (min-width: 768px) and (max-width: 1023px) {
    .pcf-slide {
        width: calc(50% - 10px);
    }
}

/* Mobile: 1 post per slide */
@media (max-width: 767px) {
    .pcf-slide {
        width: 100%;
    }
    
    .pcf-carousel {
        gap: 15px;
    }
}

/* Post Item */
.pcf-post-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pcf-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Post Thumbnail */
.pcf-post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.pcf-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pcf-post-item:hover .pcf-post-thumbnail img {
    transform: scale(1.05);
}

.pcf-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Post Content */
.pcf-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pcf-post-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #333333;
}

.pcf-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pcf-post-title a:hover {
    color: #007cba;
}

.pcf-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666666;
}

.pcf-post-date,
.pcf-post-author {
    display: flex;
    align-items: center;
}

.pcf-post-date::before {
    content: "📅";
    margin-right: 5px;
}

.pcf-post-author::before {
    content: "👤";
    margin-right: 5px;
}

.pcf-post-excerpt {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.pcf-read-more {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.pcf-read-more:hover {
    background: linear-gradient(135deg, #005a87, #003d5c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* Navigation Arrows */
.pcf-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.pcf-prev,
.pcf-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pcf-prev:hover,
.pcf-next:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pcf-prev {
    margin-left: 15px;
}

.pcf-next {
    margin-right: 15px;
}

.pcf-arrow-left,
.pcf-arrow-right {
    width: 0;
    height: 0;
    border-style: solid;
}

.pcf-arrow-left {
    border-width: 8px 12px 8px 0;
    border-color: transparent #333333 transparent transparent;
    margin-left: -3px;
}

.pcf-arrow-right {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #333333;
    margin-right: -3px;
}

/* Dots Navigation */
.pcf-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.pcf-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e1e5e9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcf-dot.active {
    background: #007cba;
    transform: scale(1.2);
}

.pcf-dot:hover {
    background: #007cba;
    opacity: 0.7;
}

/* Loading State */
.pcf-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #666666;
    font-size: 16px;
}

.pcf-loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: pcf-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes pcf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Posts Message */
.pcf-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e1e5e9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pcf-post-content {
        padding: 15px;
    }
    
    .pcf-post-title {
        font-size: 16px;
    }
    
    .pcf-post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .pcf-carousel-nav {
        display: none;
    }
    
    .pcf-filter-dropdown {
        min-width: 150px;
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Touch/Swipe Support */
.pcf-carousel {
    touch-action: pan-y;
}

/* Accessibility */
.pcf-prev:focus,
.pcf-next:focus,
.pcf-dot:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pcf-post-item {
        border: 2px solid #000000;
    }
    
    .pcf-filter-dropdown {
        border-color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .pcf-carousel,
    .pcf-post-item,
    .pcf-post-thumbnail img,
    .pcf-read-more,
    .pcf-prev,
    .pcf-next,
    .pcf-dot {
        transition: none;
    }
    
    .pcf-carousel {
        transition: none;
    }
}
