/**
 * Profile Page Styles - BeatByte
 */

#profile-view {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.profile-container {
    background: var(--panel);
    border-radius: 16px;
    padding: 32px;
    margin-top: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.profile-title h1 {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 700;
}

.profile-title .username {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 8px 0;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.user {
    background: rgba(123, 47, 247, 0.2);
    color: var(--accent1);
}

.role-badge.musician {
    background: rgba(0, 255, 200, 0.2);
    color: #00ffc8;
}

.role-badge.admin {
    background: rgba(255, 100, 0, 0.2);
    color: #ff6400;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Sections */
.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.profile-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.profile-section h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* Form Styles */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 85px; /* Consistent height for alignment */
}

.form-group label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    border-radius: 8px;
    color: #eee;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group small {
    font-size: 11px;
    color: var(--muted);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #eee;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.profile-form .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.profile-form .btn.primary {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: white;
    box-shadow: 0 4px 16px rgba(123, 47, 247, 0.3);
}

.profile-form .btn.primary:hover {
    box-shadow: 0 6px 24px rgba(123, 47, 247, 0.5);
    transform: translateY(-1px);
}

.profile-form .btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-form .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        padding: 20px;
    }
}
