/* Profile Modal Styles */
.profile-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-modal.show {
    opacity: 1;
}

.profile-modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 212, 255, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: cover;
    background-position: center;
    border-radius: 20px 20px 0 0;
}

.profile-info-wrapper {
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -60px;
    position: relative;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 48px;
    border: 4px solid var(--surface);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    object-fit: cover;
}

.btn-edit-profile {
    padding: 10px 24px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.btn-edit-profile:hover {
    background: var(--border);
}

.profile-details {
    padding: 20px 24px 24px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.profile-bio {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dim);
    margin: 12px 0 20px;
}

.profile-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.stat-item span {
    font-size: 13px;
    color: var(--text-dim);
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-meta p {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Profile Settings */
.settings-form {
    padding: 24px;
}

.pfp-upload-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-upload-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.current-banner {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.empty-banner {
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-weight: 600;
}

.current-pfp {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 32px;
}

.current-pfp-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.btn-upload {
    padding: 10px 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upload:hover {
    background: var(--border);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    .profile-modal-content {
        max-width: 95%;
        border-radius: 16px;
    }

    .profile-banner {
        height: 150px;
    }

    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .profile-stats {
        gap: 16px;
    }
}