/**
 * @fileoverview User Component Styles for Rantii
 * @author retoor <retoor@molodetz.nl>
 * @description Styles for user profile and related components
 * @keywords css, user, profile, avatar, styles
 */

user-profile {
    display: block;
}

.profile-loading,
.profile-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    gap: var(--spacing-md);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.profile-header .back-btn {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
}

.profile-header .back-btn:hover {
    color: var(--color-text);
    background-color: var(--color-surface-hover);
}

.profile-info {
    text-align: center;
}

.profile-username {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
}

.profile-score {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-upvote);
}

.profile-details {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

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

.detail-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--color-text);
}

.detail-link {
    color: var(--color-link);
}

.profile-content {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
}

.content-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
}

.content-tabs .tab {
    flex: 1;
    padding: var(--spacing-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    text-align: center;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.content-tabs .tab:hover {
    color: var(--color-text);
}

.content-tabs .tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.content-panel {
    padding: var(--spacing-md);
}

.rants-list,
.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.empty-message {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--color-text-secondary);
}

.profile-comment {
    padding: var(--spacing-md);
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-comment:hover {
    background-color: var(--color-bg-tertiary);
}

.profile-comment .comment-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}
