/* ========================================
   PROFILE SCREEN STYLES
   ======================================== */

.profile-screen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #141414;
    animation: fadeIn 0.5s ease-out;
}

.profile-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.profile-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw;
    max-width: 80%;
}

.profile-card-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    width: 15vw;
    max-width: 200px;
    min-width: 120px;
}

.profile-card-group:hover .profile-avatar-wrapper {
    border-color: white;
}

.profile-card-group:hover .profile-name {
    color: white;
}

.profile-card-group.active-profile .profile-avatar-wrapper {
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.profile-card-group.active-profile .profile-name {
    color: white;
    font-weight: bold;
}

.profile-avatar-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid transparent;
    transition: border-color 0.2s;
    position: relative;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    color: #808080;
    font-size: 1.3vw;
    text-align: center;
    transition: color 0.2s;
}

.add-profile-icon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: grey;
    font-size: 5vw;
    transition: all 0.2s;
}

.profile-card-group:hover .add-profile-icon {
    background: #e5e5e5;
    color: #000;
}

/* Modal Styles for Profiles */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.profile-modal-content {
    background: #141414;
    padding: 40px 50px;
    max-width: 500px;
    width: 100%;
    text-align: left;
}

.profile-modal-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
}

.profile-input-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-input-avatar {
    width: 100px;
    height: 100px;
    border-radius: 4px;
}

.profile-text-input {
    background: #666;
    border: none;
    padding: 10px 15px;
    color: white;
    font-size: 1.2rem;
    width: 100%;
    outline: none;
}

.profile-modal-actions {
    display: flex;
    gap: 20px;
}

/* Button Styles */
.btn-profile-save {
    background: linear-gradient(45deg, #e50914 0%, #b20710 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    flex: 1;
    /* Distribute space evenly */
    text-align: center;
}

.btn-profile-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
}

.btn-profile-cancel {
    background: transparent;
    border: 1px solid #808080;
    color: #808080;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-profile-cancel:hover {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-profile-delete {
    background: transparent;
    border: 1px solid #e50914;
    color: #e50914;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-profile-delete:hover {
    background: #e50914;
    color: white;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-manage-profiles:hover {
    color: white !important;
    border-color: white !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}