/* Team Member Popup Styles - Modern Glassmorphic Design */

:root {
    --tmp-primary: #0073aa;
    --tmp-overlay: rgba(0, 0, 0, 0.85);
    --tmp-glass-bg: rgba(255, 255, 255, 0.1);
    --tmp-border: rgba(255, 255, 255, 0.18);
}

/* Overlay */
.tmp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--tmp-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tmp-popup-overlay.tmp-active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.tmp-popup {
    position: relative;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--tmp-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tmp-popup-overlay.tmp-active .tmp-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close Button */
.tmp-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tmp-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tmp-popup-close::before,
.tmp-popup-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.tmp-popup-close::before {
    transform: rotate(45deg);
}

.tmp-popup-close::after {
    transform: rotate(-45deg);
}

/* Popup Header */
.tmp-popup-header {
    padding: 40px 40px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tmp-popup-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tmp-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmp-popup-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tmp-popup-position {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
}

/* Popup Body */
.tmp-popup-body {
    padding: 30px 40px 40px;
    max-height: calc(90vh - 250px);
    overflow-y: auto;
    color: #fff;
}

/* Custom Scrollbar */
.tmp-popup-body::-webkit-scrollbar {
    width: 8px;
}

.tmp-popup-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.tmp-popup-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.tmp-popup-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content Styling */
.tmp-popup-content {
    line-height: 1.8;
    font-size: 15px;
}

.tmp-popup-content p {
    margin: 0 0 15px;
}

.tmp-popup-content p:last-child {
    margin-bottom: 0;
}

.tmp-popup-content h1,
.tmp-popup-content h2,
.tmp-popup-content h3,
.tmp-popup-content h4,
.tmp-popup-content h5,
.tmp-popup-content h6 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.tmp-popup-content ul,
.tmp-popup-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.tmp-popup-content li {
    margin-bottom: 8px;
}

.tmp-popup-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.tmp-popup-content strong {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tmp-popup {
        max-width: 95%;
        border-radius: 20px;
    }

    .tmp-popup-header {
        padding: 30px 25px 20px;
    }

    .tmp-popup-image {
        width: 100px;
        height: 100px;
    }

    .tmp-popup-name {
        font-size: 24px;
    }

    .tmp-popup-position {
        font-size: 14px;
    }

    .tmp-popup-body {
        padding: 25px;
    }

    .tmp-popup-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .tmp-popup {
        max-height: 95vh;
    }

    .tmp-popup-header {
        padding: 25px 20px 15px;
    }

    .tmp-popup-image {
        width: 90px;
        height: 90px;
    }

    .tmp-popup-name {
        font-size: 22px;
    }

    .tmp-popup-body {
        padding: 20px;
        max-height: calc(95vh - 200px);
    }

    .tmp-popup-content {
        font-size: 14px;
    }
}

/* Prevent body scroll when popup is open */
body.tmp-popup-open {
    overflow: hidden;
}