/* Modern Profile Modal Styles */
.modal-profile {
    background: linear-gradient(135deg, #0f1b3d, #182b56, #1a336b);
    border: 1px solid rgba(78, 204, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(78, 204, 255, 0.4);
    transition: all 0.3s ease;
    padding: 30px 25px;
}

.modal-profile .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.modal-profile .avatar-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(78, 204, 255, 0.8), rgba(192, 84, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 10px rgba(78, 204, 255, 0.4);
}

.modal-profile .avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #1a1a2e;
    display: block;
}

.modal-profile h2 {
    background: linear-gradient(to right, #4eceff, #c054ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    font-weight: 600;
    margin: 5px 0;
    letter-spacing: 1px;
    font-size: 24px;
}

.modal-profile .data-container {
    margin: 20px 0;
}

.modal-profile p {
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(30, 48, 93, 0.6);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.modal-profile p:hover {
    background: rgba(40, 65, 126, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-profile p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, rgba(78, 204, 255, 0.8), rgba(192, 84, 255, 0.8));
    border-radius: 3px 0 0 3px;
    opacity: 0.9;
}

.modal-profile p::after {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.modal-profile p span {
    color: rgba(255, 255, 255, 0.85);
    margin-left: auto;
    padding-left: 10px;
    text-align: right;
}

/* Bind button styles */
.modal-profile p span button {
    background: linear-gradient(135deg, rgba(78, 204, 255, 0.9), rgba(192, 84, 255, 0.9));
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-profile p span button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(78, 204, 255, 1), rgba(192, 84, 255, 1));
}

.modal-profile p span button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button hover effect */
.modal-profile p span button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.modal-profile p span button:hover::after {
    left: 100%;
}

/* Logout button */
.modal-profile button#logout {
    background: linear-gradient(135deg, #d9365e, #b23256);
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    width: auto;
    margin-top: 25px;
    margin-left: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: block;
}

.modal-profile button#logout:hover {
    background: linear-gradient(135deg, #e84370, #c93a61);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.modal-profile button#logout:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button hover effect */
.modal-profile button#logout::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.modal-profile button#logout:hover::after {
    left: 100%;
}

/* Close button */
.modal-profile .close-profile-button {
    background: rgba(30, 48, 93, 0.7);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px;
    right: 15px;
    border: 1px solid rgba(78, 204, 255, 0.3);
    transition: all 0.3s ease;
}

.modal-profile .close-profile-button:hover {
    background: rgba(78, 204, 255, 0.3);
    transform: rotate(90deg);
}

.modal-profile .close-profile-button svg {
    width: 16px;
    height: 16px;
    stroke: #4eceff;
}

/* Animation */
@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-profile.active {
    display: flex;
    flex-direction: column;
    animation: fadeInModal 0.4s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
    .modal-profile {
        width: 90%;
        max-width: 350px;
        padding: 25px 20px;
    }
    
    .modal-profile h2 {
        font-size: 20px;
    }
    
    .modal-profile .avatar-container {
        width: 84px;
        height: 84px;
    }
    
    .modal-profile .avatar {
        width: 80px;
        height: 80px;
    }
    
    .modal-profile p {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .modal-profile button#logout {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Username container with edit button */
.modal-profile .username-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.modal-profile .edit-username-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-profile .edit-username-button:hover {
    background: rgba(0, 219, 255, 0.15);
}

.modal-profile .edit-username-button svg {
    width: 16px;
    height: 16px;
    stroke: #00dbff;
}

/* Username edit modal */
.modal-edit-username {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-edit-username.active {
    display: flex;
    opacity: 1;
}

.modal-edit-username .edit-container {
    background: linear-gradient(135deg, #0f1b3d, #182b56, #1a336b);
    border: 1px solid rgba(78, 204, 255, 0.5);
    border-radius: 15px;
    padding: 20px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(78, 204, 255, 0.4);
}

.modal-edit-username h3 {
    background: linear-gradient(to right, #4eceff, #c054ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-edit-username input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: rgba(30, 48, 93, 0.6);
    border: 1px solid rgba(78, 204, 255, 0.3);
    color: white;
    font-size: 15px;
    margin-bottom: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.modal-edit-username input:focus {
    border-color: #00dbff;
    background-color: rgba(40, 65, 126, 0.7);
    box-shadow: 0 0 8px rgba(78, 204, 255, 0.3);
}

.modal-edit-username .button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-edit-username button {
    flex: 1;
    padding: 9px 0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-edit-username button.save {
    background: linear-gradient(135deg, rgba(78, 204, 255, 0.9), rgba(132, 124, 255, 0.9));
    color: #fff;
    border: none;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-edit-username button.save:hover {
    background: linear-gradient(135deg, rgba(78, 204, 255, 1), rgba(132, 124, 255, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.modal-edit-username button.save:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-edit-username button.save::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.modal-edit-username button.save:hover::after {
    left: 100%;
}

.modal-edit-username button.cancel {
    background: rgba(30, 48, 93, 0.7);
    color: #ffffff;
    border: 1px solid rgba(78, 204, 255, 0.3);
}

.modal-edit-username button.cancel:hover {
    background: rgba(40, 65, 126, 0.8);
    transform: translateY(-2px);
} 