/* =========================================================
   TEAM SECTION
========================================================= */

.team-section {
    background:
        radial-gradient(circle at top left, rgba(16, 77, 61, 0.06), transparent 35%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.06), transparent 35%),
        #f7faf9;
}


/* Background Decorations */

.team-bg-circle {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(2px);
}

.team-bg-circle-one {
    width: 280px;
    height: 280px;
    background: rgba(34, 197, 94, 0.06);
    top: 80px;
    left: -150px;
}

.team-bg-circle-two {
    width: 340px;
    height: 340px;
    background: rgba(16, 77, 61, 0.05);
    right: -180px;
    bottom: 100px;
}


/* =========================================================
   SEARCH BOX
========================================================= */

.team-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06);
}

.team-search-input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #f8fafc;
    color: #374151;
    outline: none;
    font-size: 14px;
    transition: all 0.25s ease;
}

.team-search-input:focus {
    background: #ffffff;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08);
}

.team-search-btn {
    height: 50px;
    padding: 0 24px;
    border-radius: 13px;
    background: #104d3d;
    color: white;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.team-search-btn:hover {
    background: #0c3f32;
    transform: translateY(-1px);
}

.team-count-box {
    height: 50px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 13px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
    font-size: 13px;
}


/* =========================================================
   TEAM CARD
========================================================= */

.team-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.045);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-7px);
    border-color: #bbf7d0;
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.10);
}

.team-card-top {
    height: 5px;
}


/* =========================================================
   AVATAR
========================================================= */

.team-avatar-wrap {
    width: 112px;
    height: 112px;
    margin: 0 auto;
    position: relative;
}

.team-avatar {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f0fdf4;
    background: #f3f4f6;
    transition: transform 0.35s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

.team-online-dot {
    position: absolute;
    right: 4px;
    bottom: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid white;
}


/* =========================================================
   TEXT
========================================================= */

.team-name {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
    color: #1f2937;
}

.team-role {
    display: inline-flex;
    align-items: center;
    margin-top: 9px;
    padding: 5px 11px;
    border-radius: 999px;
    border-width: 1px;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   MINI INFO
========================================================= */

.team-mini-info {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-mini-info > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.team-mini-info > div > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0fdf4;
    font-size: 15px;
}

.team-mini-info small {
    display: block;
    font-size: 9px;
    color: #9ca3af;
    margin-bottom: 1px;
}

.team-mini-info p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.4;
}


/* =========================================================
   VIEW PROFILE BUTTON
========================================================= */

.view-profile-btn {
    width: 100%;
    height: 43px;
    margin-top: 18px;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.view-profile-btn span {
    transition: transform 0.25s ease;
}

.view-profile-btn:hover {
    background: #104d3d;
    border-color: #104d3d;
    color: white;
}

.view-profile-btn:hover span {
    transform: translateX(4px);
}


/* =========================================================
   STATISTICS
========================================================= */

.team-stats {
    margin-top: 45px;
    padding: 25px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(135deg, #104d3d, #176b52);
    border-radius: 22px;
    color: white;
    box-shadow: 0 18px 40px rgba(16, 77, 61, 0.18);
}

.team-stats div {
    text-align: center;
    padding: 5px 20px;
}

.team-stats div + div {
    border-left: 1px solid rgba(255,255,255,0.18);
}

.team-stats strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
}

.team-stats span {
    display: block;
    margin-top: 3px;
    color: #d1fae5;
    font-size: 12px;
}


/* =========================================================
   NO RESULT
========================================================= */

.no-result-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0fdf4;
    font-size: 25px;
}


/* =========================================================
   PROFILE MODAL
========================================================= */

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.profile-modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(7px);
}

.modal-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.profile-modal-box {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    animation: modalOpen 0.3s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Modal Close */

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.16);
    color: white;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: white;
    color: #104d3d;
}


/* Modal Header */

.modal-header {
    padding: 35px 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: white;
    background: linear-gradient(135deg, #104d3d, #1b7659);
    border-radius: 24px 24px 0 0;
}

.modal-image-wrap {
    width: 120px;
    height: 120px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
}

.modal-small-title {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #bbf7d0;
    margin-bottom: 5px;
}

.modal-name {
    font-size: 23px;
    line-height: 1.3;
    font-weight: 900;
}

.modal-role {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 11px;
    font-weight: 700;
}


/* Modal Body */

.modal-body {
    padding: 22px;
    display: grid;
    gap: 12px;
}

.modal-info-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.modal-info-card > span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border-radius: 11px;
    font-size: 17px;
}

.modal-info-card small {
    display: block;
    color: #9ca3af;
    font-size: 9px;
    margin-bottom: 2px;
}

.modal-info-card strong,
.modal-info-card a {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.modal-info-card a:hover {
    color: #15803d;
}


/* Modal Footer */

.modal-footer {
    padding: 0 22px 22px;
    display: flex;
    gap: 10px;
}

.modal-call-btn,
.modal-done-btn {
    height: 46px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.modal-call-btn {
    background: #104d3d;
    color: white;
}

.modal-call-btn:hover {
    background: #0c3f32;
}

.modal-done-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.modal-done-btn:hover {
    background: #e2e8f0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    .team-search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
    }

    .team-search-btn {
        width: 100%;
    }

    .team-count-box {
        width: 100%;
    }

    .team-stats {
        margin-top: 30px;
        padding: 20px 8px;
    }

    .team-stats div {
        padding: 4px 8px;
    }

    .team-stats strong {
        font-size: 22px;
    }

    .team-stats span {
        font-size: 10px;
    }

    .modal-wrapper {
        padding: 12px;
    }

    .profile-modal-box {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .modal-header {
        padding: 30px 20px 25px;
        border-radius: 20px 20px 0 0;
    }

    .modal-image-wrap {
        width: 100px;
        height: 100px;
    }

    .modal-name {
        font-size: 20px;
    }

    .modal-body {
        padding: 17px;
    }

    .modal-footer {
        padding: 0 17px 17px;
    }
}


@media (max-width: 380px) {

    .team-stats strong {
        font-size: 19px;
    }

    .team-stats span {
        font-size: 9px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-call-btn,
    .modal-done-btn {
        width: 100%;
    }

}


/* =========================================================
   BODY LOCK WHEN MODAL OPEN
========================================================= */

body.modal-open {
    overflow: hidden;
}