/* Parody Directory Styles */

.pd-intro-text {
    margin-bottom: 30px;
}

.pd-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;
}

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

.pd-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;
}

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

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

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

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

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

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

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

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

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

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

.pd-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);
}

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

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

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

.pd-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Rounded format as requested */
    border: 3px solid #333;
    /* Slight border to define the circle */
    padding: 5px;
    /* Space between border and image if desired, or remove */
    background: #1a1a1a;
    transition: transform 0.3s ease;
}

/* Adjustments for "Rounded Format" - 
   If user meant "rounded corners" change border-radius to 12px.
   If user meant "circular", 50% is correct.
   Based on "formato redondo", 50% is likely circular, 
   but "cards modernas" usually implies rounded rects. 
   
   However, modern cards usually have rectangular images. 
   "Formato redondo" could apply to the image itself. 
   Let's stick to the 50% based on "redondo", 
   but make the wrapper square.
   
   Actually, let's make the image specifically rounded/circular 
   inside the card, as requested "formato redondo".
*/

.pd-image {
    border-radius: 50%;
    padding: 10px;
    /* Inset effect */
}


.pd-title {
    padding: 15px;
    text-align: center;
}

.pd-title h3 {
    font-size: 1rem;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.pd-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;
}

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

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

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

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

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

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

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

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