/* ============================================================
   Elite Team Plugin — Frontend Styles
   Author: SeyiDev | Version: 1.0.0
   ============================================================ */

/* ── Reset / Base ── */
.etp-gallery-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Grid ── */
.etp-gallery-wrapper .etp-grid {
    width: 100%;
}

/* ── Card ── */
.etp-gallery-wrapper .etp-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.etp-gallery-wrapper .etp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* ── Photo ── */
.etp-gallery-wrapper .etp-card-photo {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.etp-gallery-wrapper .etp-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.etp-gallery-wrapper .etp-card:hover .etp-card-photo img {
    transform: scale(1.05);
}

.etp-gallery-wrapper .etp-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.18));
    pointer-events: none;
}

.etp-gallery-wrapper .etp-photo-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #e94560 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.etp-gallery-wrapper .etp-photo-placeholder span {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    opacity: 0.9;
}

/* ── Card Body ── */
.etp-gallery-wrapper .etp-card-body {
    padding: 22px 20px 24px;
    text-align: center;
}

.etp-gallery-wrapper .etp-member-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    line-height: 1.3;
}

.etp-gallery-wrapper .etp-member-designation {
    font-size: 13px;
    color: #e94560;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ── Button ── */
.etp-gallery-wrapper .etp-know-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e94560;
    color: #ffffff;
    border: none;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.etp-gallery-wrapper .etp-know-more:hover {
    filter: brightness(0.88);
    transform: scale(1.04);
}

.etp-gallery-wrapper .etp-know-more::after {
    content: "→";
    font-size: 15px;
}

/* ── Modal Overlay ── */
.etp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,20,0.65);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.etp-modal-overlay.etp-open {
    display: flex;
    animation: etpFadeIn 0.25s ease;
}

@keyframes etpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal Box ── */
.etp-modal-overlay .etp-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    animation: etpSlideUp 0.3s ease;
}

@keyframes etpSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.etp-modal-overlay .etp-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(0,0,0,0.08);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.etp-modal-overlay .etp-modal-close:hover {
    background: rgba(0,0,0,0.16);
}

/* ── Modal Inner ── */
.etp-modal-overlay .etp-modal-inner {
    display: flex;
    gap: 0;
}

.etp-modal-overlay .etp-modal-photo-wrap {
    width: 42%;
    min-height: 260px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
}

.etp-modal-overlay .etp-modal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.etp-modal-overlay .etp-modal-info {
    flex: 1;
    padding: 36px 32px 36px 30px;
}

.etp-modal-overlay .etp-modal-member-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.3;
}

.etp-modal-overlay .etp-modal-member-designation {
    font-size: 13px;
    font-weight: 600;
    color: #e94560;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.etp-modal-overlay .etp-modal-divider {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin-bottom: 18px;
}

.etp-modal-overlay .etp-modal-bio-text {
    font-size: 15px;
    line-height: 1.75;
    color: #555;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .etp-gallery-wrapper .etp-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .etp-gallery-wrapper .etp-card {
        flex-basis: calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
    }
}

@media (max-width: 560px) {
    .etp-gallery-wrapper .etp-grid {
        grid-template-columns: 1fr !important;
    }
    .etp-gallery-wrapper .etp-card {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
    .etp-modal-overlay .etp-modal-inner {
        flex-direction: column;
    }
    .etp-modal-overlay .etp-modal-photo-wrap {
        width: 100%;
        min-height: 220px;
        border-radius: 16px 16px 0 0;
    }
    .etp-modal-overlay .etp-modal-info {
        padding: 24px 22px;
    }
}

/* ── Error ── */
.etp-error {
    padding: 12px 16px;
    background: #fff3f3;
    border-left: 4px solid #e94560;
    color: #cc0000;
    border-radius: 4px;
}
