/* Simple Freelancer Profile Modal Styles */
.freelancer-profile-popup {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-popup-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 24px;
    padding-top: 15px;
    padding-bottom: 15px;
    gap: 12px;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.profile-popup-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    padding-top: 15px;
    padding-bottom: 15px;
    gap: 12px;
    width: 100%;
    background: #ffffff;
}

.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.close-icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-icon-btn:hover {
    background: #e0e0e0;
}

.close-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
}

.close-icon-wrapper i {
    font-size: 12px;
    color: #666;
}

.popup-section-title {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    text-align: left;
    width: 100%;
}

.popup-freelancer-location-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.popup-freelancer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.popup-freelancer-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.popup-freelancer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-freelancer-name {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.popup-freelancer-expertise {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.popup-freelancer-location {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
}

.popup-freelancer-location i {
    margin-right: 6px;
    font-size: 12px;
    color: #999;
}

.popup-freelancer-rate {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #ff4c4b;
    background: #fff5f5;
    padding: 3px 16px;
    border-radius: 20px;
    border: 1px solid #ffe0e0;
}

.popup-freelancer-skills {
    width: 100%;
}

.popup-freelancer-skills h5 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.skills-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 6px 14px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #495057;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.popup-description-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-freelancer-desc {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    position: relative;
}

.view-profile-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    width: 100%;
    background: #ff4c4b;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.view-profile-btn:hover {
    background: #e63e3d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 76, 75, 0.3);
}

.profile-modal-content {
    border-radius: 16px;
    border: none;
    width: 500px;
    max-width: 95%;
    margin: 0 auto;
}

.modal-body {
    padding: 0 !important;
}

@media (max-width: 767px) {
    .freelancer-profile-popup {
        border-radius: 16px;
    }

    .profile-popup-left,
    .profile-popup-right {
        padding: 20px;
    }

    .profile-popup-left {
        padding-bottom: 16px;
    }

    .profile-popup-right {
        padding-top: 16px;
        gap: 16px;
    }

    .popup-freelancer-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 4px;
    }

    .popup-freelancer-name {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .popup-freelancer-expertise {
        font-size: 13px;
    }

    .popup-freelancer-location {
        font-size: 13px;
        padding: 6px 12px;
    }

    .popup-freelancer-rate {
        font-size: 16px;
        padding: 6px 12px;
    }

    .popup-freelancer-skills h5 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .skills-tag-container {
        gap: 6px;
    }

    .skill-tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .popup-freelancer-desc {
        font-size: 14px;
        line-height: 1.5;
    }

    .view-profile-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .profile-modal-content {
        border-radius: 16px;
        max-width: 95%;
        margin: 15px auto;
    }

    .popup-section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
}

/* Tablet responsive styles */
@media (max-width: 991px) and (min-width: 768px) {
    .freelancer-profile-popup {
        border-radius: 32px;
    }

    .profile-popup-left,
    .profile-popup-right {
        padding: 30px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .popup-freelancer-desc {
        width: 95%;
        font-size: 13px;
        line-height: 1.5;
    }

    .profile-modal-content {
        border-radius: 32px;
        max-width: 90%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .freelancer-profile-popup {
        border-radius: 12px;
    }

    .profile-popup-left,
    .profile-popup-right {
        padding: 16px;
    }

    .popup-freelancer-avatar {
        width: 60px !important;
        height: 60px !important;
    }

    .popup-freelancer-name {
        font-size: 16px !important;
    }

    .popup-freelancer-expertise {
        font-size: 12px !important;
    }

    .popup-freelancer-location,
    .popup-freelancer-rate {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }

    .popup-freelancer-desc {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .skill-tag {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    .view-profile-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    .profile-modal-content {
        border-radius: 12px;
        margin: 10px auto;
    }

    .popup-close-btn {
        top: 8px;
        right: 8px;
    }

    .close-icon-btn {
        width: 28px !important;
        height: 28px !important;
    }

    .popup-section-title {
        font-size: 14px !important;
    }
}

/* Improve modal backdrop on mobile */
@media (max-width: 767px) {
    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-dialog-centered {
        min-height: calc(100vh - 20px);
    }
}

.freelance-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    position: relative;
    width: fit-content;
    overflow: hidden;
}

.freelance-zoom-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.freelance-zoom-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.freelance-zoom-btn i {
    font-size: 12px;
    color: #6c757d;
    transition: color 0.2s ease;
}

.freelance-zoom-btn:hover i {
    color: #495057;
}

.zoom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.zoom-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.freelance-zoom-btn:hover .zoom-icon img {
    opacity: 1;
}

.freelance-zoom-btn .btn-text {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    transition: color 0.2s ease;
}

.freelance-zoom-btn:hover .btn-text {
    color: #495057;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .freelance-zoom-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .zoom-icon {
        width: 14px;
        height: 14px;
    }

    .freelance-zoom-btn .btn-text {
        font-size: 10px;
    }
}

/* Alternative: Icon-only version with better visual cues */
.freelance-zoom-btn.icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    position: relative;
}

.freelance-zoom-btn.icon-only:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
}

.freelance-zoom-btn.icon-only::before {
    content: "👁";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    opacity: 0.8;
}

.freelance-zoom-btn.icon-only .zoom-icon {
    display: none;
}

.freelance-zoom-btn.icon-only .btn-text {
    display: none;
}
