/**
 * BA Team Pro - Professional Styles
 * Version 1.0.0
 */

/* ============================================
   CARD STYLES
   ============================================ */
.ba-team-pro-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.ba-team-pro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

/* Image */
.ba-team-pro-img {
    margin-bottom: 20px;
    position: relative;
}

.ba-team-pro-img img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #eef2f6;
    transition: all 0.3s ease;
}

.ba-team-pro-card:hover .ba-team-pro-img img {
    border-color: #e63946;
    transform: scale(1.02);
}

/* Name */
.ba-team-pro-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Designation */
.ba-team-pro-designation {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

/* Button */
.ba-team-pro-btn {
    display: inline-block;
    background: #e63946;
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ba-team-pro-btn:hover {
    background: #c1121f;
    transform: translateY(-2px);
}

/* ============================================
   POPUP MODAL STYLES
   ============================================ */
.ba-team-pro-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.ba-team-pro-popup.active {
    display: flex !important;
}

.ba-team-pro-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.ba-team-pro-popup-content {
    position: relative;
    background: #ffffff;
    width: 650px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    z-index: 10;
    animation: popupFadeIn 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Popup Scrollbar */
.ba-team-pro-popup-content::-webkit-scrollbar {
    width: 6px;
}

.ba-team-pro-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.ba-team-pro-popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Popup Close Button */
.ba-team-pro-popup-close {
    position: sticky;
    top: 15px;
    right: 15px;
    float: right;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    margin: 15px;
    transition: all 0.2s ease;
}

.ba-team-pro-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Popup Header */
.ba-team-pro-popup-header {
    display: flex;
    gap: 25px;
    padding: 30px 30px 20px;
    flex-wrap: wrap;
    clear: both;
}

.ba-team-pro-popup-avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e63946;
}

.ba-team-pro-popup-info {
    flex: 1;
}

.ba-team-pro-popup-info h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.ba-team-pro-popup-designation {
    font-size: 16px;
    color: #e63946;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.ba-team-pro-popup-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.ba-team-pro-popup-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7f8c8d;
}

.ba-team-pro-popup-details span i {
    color: #e63946;
    width: 16px;
}

/* Popup Bio - Mobile mein bhi show hoga */
.ba-team-pro-popup-bio {
    padding: 0 30px 20px;
    line-height: 1.7;
    color: #555;
    font-size: 15px;
}

.ba-team-pro-popup-bio p {
    margin: 0 0 12px;
}

.ba-team-pro-popup-bio p:last-child {
    margin-bottom: 0;
}

/* Popup Social Links */
.ba-team-pro-popup-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 30px 30px;
    border-top: 1px solid #eef2f6;
    margin-top: 10px;
}

.ba-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f2f5;
    border-radius: 50%;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ba-social-link:hover {
    transform: translateY(-3px);
}

.ba-social-link.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.ba-social-link.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.ba-social-link.linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.ba-social-link.instagram:hover {
    background: #e4405f;
    color: #fff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* Tablet */
@media (max-width: 1024px) {
    .ba-team-pro-popup-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ba-team-pro-popup-avatar {
        text-align: center;
    }
    
    .ba-team-pro-popup-details {
        justify-content: center;
    }
    
    .ba-team-pro-popup-info {
        text-align: center;
    }
}

/* Mobile - Bio show hoga */
@media (max-width: 767px) {
    .ba-team-pro-card {
        padding: 20px 15px;
    }
    
    .ba-team-pro-img img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .ba-team-pro-name {
        font-size: 18px;
    }
    
    .ba-team-pro-designation {
        font-size: 13px;
    }
    
    .ba-team-pro-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    /* Popup Mobile */
    .ba-team-pro-popup-content {
        max-width: 95%;
    }
    
    .ba-team-pro-popup-header {
        padding: 20px 20px 15px;
    }
    
    .ba-team-pro-popup-info h2 {
        font-size: 20px;
    }
    
    .ba-team-pro-popup-designation {
        font-size: 14px;
    }
    
    .ba-team-pro-popup-bio {
        padding: 0 20px 15px;
        font-size: 14px;
    }
    
    .ba-team-pro-popup-details {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .ba-team-pro-popup-social {
        padding: 15px 20px 20px;
    }
    
    .ba-team-pro-popup-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 18px;
        margin: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ba-team-pro-popup-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .ba-team-pro-popup-info h2 {
        font-size: 18px;
    }
    
    .ba-team-pro-popup-designation {
        font-size: 13px;
    }
    
    .ba-team-pro-popup-details span {
        font-size: 11px;
    }
    
    .ba-team-pro-popup-bio {
        font-size: 13px;
    }
}

/* Body no scroll when popup open */
body.popup-open {
    overflow: hidden;
}

/* Loading State */
.ba-team-pro-popup.loading .ba-team-pro-popup-content {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}