/* 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;
}

/* Premium Search Bar */
.pd-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px auto;
    padding: 2px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.pd-search-wrapper:focus-within {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.5), rgba(156, 39, 176, 0.5));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(233, 30, 99, 0.2);
}

.pd-search-input {
    width: 100%;
    padding: 16px 54px 16px 54px;
    font-size: 1.1rem;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #ffffff;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.pd-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.pd-search-input:focus {
    background: rgba(25, 25, 25, 0.9);
    border-color: transparent;
}

.pd-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(233, 30, 99, 0));
}

.pd-search-wrapper:focus-within .pd-search-icon {
    color: #e91e63;
    transform: translateY(-50%) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(233, 30, 99, 0.6));
}

.pd-search-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    backdrop-filter: blur(5px);
}

.pd-search-clear:hover {
    background: #e91e63;
    color: #fff;
    transform: translateY(-50%) rotate(90deg);
}

.pd-search-clear.visible {
    display: flex;
}

.pd-search-count {
    text-align: center;
    color: #e91e63;
    font-size: 0.9rem;
    margin-top: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-height: 1.2em;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

.pd-no-results {
    display: none;
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    margin: 20px 0;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.pd-no-results.visible {
    display: block;
    animation: pd-shake 0.4s ease;
}

@keyframes pd-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.pd-no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    filter: grayscale(1) opacity(0.3);
}

.pd-no-results-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    margin: 0;
}

/* Card hide/show animation for search */
.pd-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-card.pd-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    display: none;
}

@media (max-width: 768px) {
    .pd-search-wrapper {
        max-width: 100%;
        margin-bottom: 25px;
    }

    .pd-search-input {
        font-size: 1rem;
        padding: 14px 48px 14px 48px;
    }
}

.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 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 3px solid #333 !important;
    padding: 10px !important;
    background: #1a1a1a !important;
    margin: 0 !important;
    transition: transform 0.3s ease;
}


.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 */
    }
}