/* Profile Page - Simplified and Optimized */

.profile-wrapper {
    width: 100%;
    min-height: calc(100vh - 40px);
    padding: 20px 40px;
}

.profile-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Header */
.profile-header {
    text-align: center;
    padding: 20px 0 40px;
}

.profile-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* States - consolidated */
.profile-loading,
.profile-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.profile-error {
    background-color: var(--third);
    border-radius: 8px;
    border: 1px solid rgba(255, 70, 70, 0.3);
}

.profile-loading p,
.profile-error p {
    font-size: 16px;
    margin: 0;
    color: var(--secondary);
}

.profile-error h3 {
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

/* Profile Content */
.profile-content {
    background-color: var(--third);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.profile-header-info {
    padding: 30px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.profile-username {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 10px;
}

.profile-role {
    font-size: 14px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile List - simplified */
.profile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.profile-list-item:last-child { border-bottom: none; }

.profile-list-item:hover {
    background-color: var(--overlay-light);
}

.profile-list-label {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
}

.profile-list-value {
    color: var(--primary);
    font-size: 14px;
    text-align: right;
    word-break: break-word;
    flex: 1;
    margin-left: 20px;
}

.profile-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: var(--overlay-light);
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-wrapper { padding: 15px 20px; }
    .profile-title { font-size: 24px; }
    .profile-header { padding: 15px 0 30px; }
    .profile-header-info { padding: 20px; }
    .profile-username { font-size: 20px; }
    
    .profile-list-item {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .profile-list-label { min-width: auto; }
    .profile-list-value { text-align: left; margin-left: 0; }
}