/* ============================================
   Pride CC — Board Member Cards & Modal
   ============================================ */

/* ── Card Grid — force 4 columns ── */
.pcc-team-grid {
    gap: 16px !important;
}
.pcc-team-grid .awsm-grid-card {
    width: calc(25% - 12px) !important;
    max-width: calc(25% - 12px) !important;
    flex: 0 0 calc(25% - 12px) !important;
}

.pcc-team-card {
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease !important;
    background: #fff !important;
    opacity: 0;
    transform: translateY(20px);
    animation: pcc-card-in 0.5s ease forwards;
}
.pcc-team-card:nth-child(1) { animation-delay: 0.05s; }
.pcc-team-card:nth-child(2) { animation-delay: 0.1s; }
.pcc-team-card:nth-child(3) { animation-delay: 0.15s; }
.pcc-team-card:nth-child(4) { animation-delay: 0.2s; }
.pcc-team-card:nth-child(5) { animation-delay: 0.25s; }
.pcc-team-card:nth-child(6) { animation-delay: 0.3s; }
.pcc-team-card:nth-child(7) { animation-delay: 0.35s; }
.pcc-team-card:nth-child(8) { animation-delay: 0.4s; }
.pcc-team-card:nth-child(9) { animation-delay: 0.45s; }
.pcc-team-card:nth-child(10) { animation-delay: 0.5s; }
.pcc-team-card:nth-child(11) { animation-delay: 0.55s; }
.pcc-team-card:nth-child(12) { animation-delay: 0.6s; }
.pcc-team-card:nth-child(13) { animation-delay: 0.65s; }
.pcc-team-card:nth-child(14) { animation-delay: 0.7s; }
.pcc-team-card:nth-child(15) { animation-delay: 0.75s; }
.pcc-team-card:nth-child(16) { animation-delay: 0.8s; }

@keyframes pcc-card-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.pcc-team-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1) !important;
    border-color: #a78bfa !important;
}

/* Card figure */
.pcc-card-figure {
    position: relative !important;
    overflow: hidden !important;
}
.pcc-card-figure img {
    transition: transform 0.5s ease !important;
}
.pcc-team-card:hover .pcc-card-figure img {
    transform: scale(1.05) !important;
}

/* Card caption — always visible at bottom */
.pcc-card-caption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(10,10,26,0.85) 0%, rgba(10,10,26,0.5) 60%, transparent 100%) !important;
    padding: 40px 16px 14px !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Card info */
.pcc-card-info {
    text-align: left !important;
}
.pcc-card-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 2px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}
.pcc-card-role {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #c4b5fd !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 4px !important;
}
.pcc-card-terms {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.6) !important;
    margin-top: 4px !important;
    letter-spacing: 0.03em !important;
}

/* ── Modal Overlay — must be above EVERYTHING ── */
.pcc-modal-overlay,
.awsm-modal-items,
div.awsm-modal-items {
    z-index: 9999999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10,10,26,0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
/* Force modal above Groovy Menu, WP admin bar, and sticky nav */
body .awsm-modal-items,
body .pcc-modal-overlay {
    z-index: 9999999 !important;
}
/* When modal is open, suppress all high-z elements */
body.pcc-modal-open .gm-navbar,
body.pcc-modal-open .gm-main-menu-wrapper,
body.pcc-modal-open .pride-header-rainbow-top,
body.pcc-modal-open .pride-header-rainbow-bottom,
body.pcc-modal-open .page-header,
body.pcc-modal-open .page-header::after,
body.pcc-modal-open #wpadminbar {
    z-index: 0 !important;
}
body.pcc-modal-open {
    overflow: hidden !important;
}

/* Modal centering */
.modal-style.style-1 .awsm-modal-item,
.pcc-modal-overlay .awsm-modal-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
.pcc-modal-items-main {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Modal close button */
.pcc-modal-close {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    transition: background 0.2s !important;
    z-index: 10 !important;
}
.pcc-modal-close:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* Modal navigation arrows — fixed to viewport edges */
.pcc-nav {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    z-index: 99999999 !important;
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 12px !important;
    width: auto !important;
    height: auto !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: background 0.2s, border-color 0.2s !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #fff !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
.pcc-nav:hover {
    background: rgba(0,0,0,0.7) !important;
    border-color: rgba(255,255,255,0.3) !important;
}
.pcc-nav::after {
    content: none !important;
}
.pcc-nav-arrow {
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}
.pcc-nav-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pcc-nav-left {
    left: 16px !important;
    right: auto !important;
}
.pcc-nav-right {
    right: 16px !important;
    left: auto !important;
}
/* Hide arrows when at first/last */
.pcc-nav.pcc-nav-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Mobile: compact circle arrows, no labels */
@media (max-width: 768px) {
    .pcc-nav-label {
        display: none !important;
    }
    .pcc-nav {
        padding: 12px !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        justify-content: center !important;
        bottom: 20px !important;
        top: auto !important;
        transform: none !important;
    }
    .pcc-nav-left {
        left: 20px !important;
    }
    .pcc-nav-right {
        right: 20px !important;
    }
}

/* ── Modal Content — Hero Layout ── */
.pcc-modal-content,
.modal-style.style-1 .pcc-modal-content,
.modal-style.style-1 .awsm-modal-content.pcc-modal-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    max-width: 640px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    padding: 0 !important;
}
.pcc-modal-hero {
    display: flex !important;
    flex-direction: column !important;
}

/* Hero banner — photo with overlay */
.pcc-hero-banner {
    position: relative;
    overflow: hidden;
    max-height: 340px;
}
.pcc-hero-img {
    line-height: 0;
}
.pcc-hero-img img {
    width: 100% !important;
    height: 340px !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
}
.pcc-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,26,0.85) 0%, rgba(10,10,26,0.3) 50%, transparent 100%);
    pointer-events: none;
}
.pcc-hero-info {
    position: absolute;
    bottom: 20px;
    left: 28px;
    right: 28px;
    z-index: 2;
}
.pcc-hero-role {
    font-size: 11px;
    font-weight: 700;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.pcc-hero-name {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    margin: 0 0 6px !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.pcc-hero-terms {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.02em;
}
.pcc-hero-rainbow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E40303, #FF8C00, #FFED00, #008026, #24408E, #732982);
    z-index: 3;
}

/* Details below hero */
.pcc-hero-details {
    overflow: visible !important;
}
.pcc-modal-inner {
    padding: 24px 28px 28px !important;
}

/* Single scrollbar on the whole modal card, not individual sections */
.pcc-modal-content,
.modal-style.style-1 .pcc-modal-content {
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
/* Hide the outer modal item scrollbar */
.modal-style.style-1 .awsm-modal-item {
    overflow: hidden !important;
}

/* Bio */
.pcc-modal-bio {
    font-size: 15px !important;
    color: #4b5563 !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
}
.pcc-modal-bio p {
    margin: 0 0 12px !important;
    color: #4b5563 !important;
}
.pcc-modal-bio p:last-child {
    margin-bottom: 0 !important;
}

/* Footer — contact + social side by side */
.pcc-modal-footer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

/* Contact items */
.pcc-modal-contact {
    flex: 1;
}
.pcc-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}
.pcc-contact-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-width: 44px;
}
.pcc-contact-value {
    font-size: 13px;
    color: #1f2937;
    text-decoration: none;
}
a.pcc-contact-value {
    color: #7c3aed;
}
a.pcc-contact-value:hover {
    text-decoration: underline;
}

/* Social icons */
.pcc-modal-social {
    flex-shrink: 0;
    padding-top: 2px;
}
.pcc-modal-social .awsm-social-icons {
    display: flex !important;
    gap: 4px !important;
}
.pcc-modal-social .awsm-social-icons span a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    transition: background 0.2s, color 0.2s !important;
}
.pcc-modal-social .awsm-social-icons span a:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
}
.pcc-modal-social .awsm-social-icons span a i {
    font-size: 15px !important;
    color: inherit !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pcc-team-grid .awsm-grid-card {
        width: calc(33.33% - 11px) !important;
        max-width: calc(33.33% - 11px) !important;
        flex: 0 0 calc(33.33% - 11px) !important;
    }
}
@media (max-width: 768px) {
    .pcc-team-grid .awsm-grid-card {
        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px) !important;
    }
    .pcc-modal-main {
        flex-direction: column !important;
    }
    .pcc-hero-banner {
        max-height: 240px;
    }
    .pcc-hero-img img {
        height: 240px !important;
    }
    .pcc-hero-name {
        font-size: 22px !important;
    }
    .pcc-modal-inner {
        padding: 20px !important;
    }
    .pcc-modal-footer {
        flex-direction: column;
        gap: 12px;
    }
    .pcc-hero-details {
        max-height: 45vh !important;
    }
    .pcc-modal-inner {
        padding: 24px 20px !important;
    }
    .pcc-modal-name {
        font-size: 22px !important;
    }
    .pcc-card-name {
        font-size: 14px !important;
    }
}
@media (max-width: 480px) {
    .pcc-team-grid .awsm-grid-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pcc-team-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}
