/* Pilar Pages Plugin Styles */

/* Intro Text Container */
.pp-intro-text {
    margin-bottom: 30px;
}

.pp-details {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.pp-details[open] {
    border-color: #e91e63;
}

.pp-summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    background: #252525;
    transition: background 0.3s ease;
}

.pp-summary:hover {
    background: #2c2c2c;
}

.pp-summary::-webkit-details-marker {
    display: none;
}

.pp-summary::after {
    content: '\25BC';
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #e91e63;
}

.pp-details[open] .pp-summary::after {
    transform: rotate(180deg);
}

.pp-details-content {
    padding: 20px;
    color: #e0e0e0;
    border-top: 1px solid #333;
    animation: pp-fade-in 0.4s ease;
}

@keyframes pp-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pp-intro-text h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

.pp-intro-text p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Grid Container */
.pp-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Card Styles */
.pp-card {
    background: #2c2c2c;
    /* Dark card background */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.pp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.pp-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image Wrapper */
.pp-image-wrapper {
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio (Square) */
    position: relative;
    overflow: hidden;
}

/* Image Styles */
.pp-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    /* Square with 5px radius as requested */
    border: none;
    background: #1a1a1a;
    transition: transform 0.3s ease;
}

/* Title Styles */
.pp-title {
    padding: 15px;
    text-align: center;
}

.pp-title h3 {
    font-size: 1rem;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    white-space: normal;
    /* Force wrap */
    word-wrap: break-word;
    /* Ensure long words break */
    line-height: 1.2;
}

/* Pagination */
.pp-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pp-pagination .page-numbers {
    background: #2c2c2c;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: 1px solid #444;
}

.pp-pagination .page-numbers.current,
.pp-pagination .page-numbers:hover {
    background: #e91e63;
    /* Accent color */
    border-color: #e91e63;
    color: #fff;
}

/* Load More Button */
.pp-load-more-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    clear: both;
}

.pp-btn-load-more {
    display: inline-block;
    background: #e91e63;
    /* Pink accent matching plugin theme */
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(233, 30, 99, 0.3);
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.pp-btn-load-more:hover {
    background: #c2185b;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(233, 30, 99, 0.4);
}

.pp-btn-load-more:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(233, 30, 99, 0.3);
}

.pp-btn-load-more.loading {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.8;
}


/* Responsive - Mobile */
@media (max-width: 768px) {
    .pp-grid-container {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        gap: 15px;
    }

    .pp-card {
        display: flex;
        align-items: center;
        padding: 10px;
    }

    .pp-card a {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .pp-image-wrapper {
        width: 80px;
        height: 80px;
        padding-top: 0;
        flex-shrink: 0;
        margin-right: 15px;
    }

    .pp-image {
        position: static;
        width: 100%;
        height: 100%;
    }

    .pp-title {
        padding: 0;
        text-align: left;
    }

    .pp-title h3 {
        white-space: normal;
        /* Allow wrap on mobile list view */
    }
}