/* Wrapper */
.pc-carousel-wrapper {
    max-width: 700px;
    margin: 2rem auto;
    font-family: inherit;
}

/* Sort bar */
.pc-sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.pc-sort-label {
    white-space: nowrap;
}

.pc-sort-select {
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
}

/* Carousel area */
.pc-carousel {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.pc-slide {
    display: none;
    padding: 1.5rem;
    box-sizing: border-box;
}

.pc-slide-active {
    display: block;
}

.pc-slide-inner {
    border: 1px solid #000000;
    border-radius: 10px;
    padding: 1.5rem;
    background: #F0E6CB80;
}

.pc-poem-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.pc-poem-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pc-poem-content {
    white-space: pre-line;
    font-size: 1rem;
    line-height: 1.6;
}

/* Controls */
.pc-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pc-controls button {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    font-size: 1.1rem;
}

.pc-controls button:hover {
    background: #eee;
}

/* Indicators */
.pc-indicators {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.pc-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #777;
    background: #fff;
    cursor: pointer;
}

.pc-indicator-dot.pc-indicator-active {
    background: #777;
}

/* Empty state */
.pc-no-poems {
    text-align: center;
    font-style: italic;
}

/* Single Poem template */
.pc-single-poem {
    max-width: 700px;
    margin: 2rem auto;
}

.pc-single-poem .pc-poem-title-main {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.pc-single-poem .pc-poem-meta-main {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.pc-single-poem .pc-poem-content-main {
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Archive Poem template */
.pc-poem-archive {
    max-width: 900px;
    margin: 2rem auto;
}

.pc-poem-archive h1 {
    margin-bottom: 1.5rem;
}

.pc-poem-archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pc-poem-archive-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.pc-poem-archive-item h2 {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
}

.pc-poem-archive-item .pc-poem-meta-main {
    margin-bottom: 0.75rem;
}

.pc-read-more { margin-top: 0.75rem; }
.pc-read-more a { text-decoration: underline; }


/* List card layout */
.pc-list-wrapper { max-width: 900px; margin: 2rem auto; }
.pc-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.pc-card { border: 1px solid #3B2F2F; border-radius: 10px; padding: 1.25rem 1.5rem; background: #3B2F2F0F; }
.pc-card-title { margin: 0 0 .75rem; font-size: 1.3rem;
                
    color: #3B2F2F;
}
.pc-card-title a { text-decoration: none; }
.pc-card-title a:hover { text-decoration: none; color: #5A6F63; }
.pc-card-title a { color: #3B2F2F;}
.pc-card-excerpt { white-space: pre-line; line-height: 1.6; font-size: 1rem; }

/* Pagination for poems_list */
.pc-pagination {
    margin-top: 1.5rem;
    text-align: center;
}
.pc-pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 0.5rem;
}
.pc-pagination-item a,
.pc-pagination-item span {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    font-size: 0.9rem;
}
.pc-pagination-item.is-current span {
    background: #333;
    color: #fff;
    border-color: #333;
}

@media (min-width: 640px) {
    .pc-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .pc-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
