/**
 * Post Carousel - Mobile-First Styles
 * Clean, simple carousel with 30vh images
 */

.pc-carousel {
    position: relative;
    width: 100%;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pc-slides {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: height 0.4s ease;
}

.pc-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.8);
    transition: opacity 0.6s ease, visibility 0s linear 0.6s, transform 0.6s ease;
    z-index: 1;
    will-change: opacity;
}

.pc-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition: opacity 0.6s ease, visibility 0s linear 0s, transform 0.6s ease;
    z-index: 2;
}

/* Image container - wraps image and overlays */
.pc-image-container {
    position: relative;
    width: 100%;
    height: 30vh;
    overflow: hidden;
}

/* Category chip - top-left over image */
.pc-image-container .pc-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Image - 30vh height */
.pc-image {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Title overlay - bottom of image */
.pc-image-container .pc-title-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.pc-image-container .pc-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

/* Excerpt section - below image */
.pc-excerpt-section {
    padding: 20px;
    background: #000;
}

.pc-excerpt-text,
.pc-excerpt-short,
.pc-excerpt-full {
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 15px;
}

/* Accordion toggle */
.pc-toggle {
    display: none;
}

.pc-excerpt-full {
    display: none;
}

.pc-toggle:checked ~ .pc-excerpt-short {
    display: none;
}

.pc-toggle:checked ~ .pc-excerpt-full {
    display: block;
}

.pc-more {
    color: #f1683a;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 5px;
}

.pc-more:hover {
    color: #ff7a50;
}

/* Read more button */
.pc-read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #f1683a;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pc-read-more:hover {
    background: #ff7a50;
    transform: translateY(-2px);
}

/* Tablet and up */
@media (min-width: 768px) {
    .pc-title {
        font-size: 28px;
    }
    
    .pc-excerpt-text,
    .pc-excerpt-short,
    .pc-excerpt-full {
        font-size: 16px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .pc-carousel {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .pc-title {
        font-size: 32px;
    }
}
