/* Profile Header */
.anima-profile-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.anima-profile-header {
    position: relative;
    margin-bottom: var(--spacing-xl);
    background-color: var(--color-anima-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-anima-border);
}

.anima-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.anima-header-content {
    padding: var(--spacing-lg);
    display: flex;
    align-items: flex-end;
    margin-top: -60px;
    /* Pull up into cover */
    position: relative;
    gap: var(--spacing-lg);
}

.anima-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Circle or maybe Hexagon later? */
    border: 4px solid var(--color-anima-bg-card);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.level-badge-large {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: var(--color-anima-primary);
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-anima-bg-card);
}

.anima-user-info {
    flex-grow: 1;
    margin-bottom: var(--spacing-xs);
}

.user-name {
    margin: 0;
    font-size: 24px;
    font-family: var(--font-anima-headings);
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-badge {
    font-size: 10px;
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.user-handle {
    margin: 0;
    color: var(--color-anima-text-muted);
    font-size: 14px;
}

.anima-header-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Profile Nav */
.anima-profile-nav {
    display: flex;
    background-color: var(--color-anima-bg-card);
    border: 1px solid var(--color-anima-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
    overflow-x: auto;
}

.anima-profile-nav a {
    padding: 15px 20px;
    color: var(--color-anima-text-muted);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.anima-profile-nav a:hover,
.anima-profile-nav a.active {
    color: var(--color-anima-text-main);
}

.anima-profile-nav a.active {
    border-bottom-color: var(--color-anima-primary);
}

/* Updated Grid */
.anima-profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.profile-col-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.widget-bio p {
    color: var(--color-anima-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.user-meta-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-md);
    font-size: 13px;
    color: #aaa;
}

.user-meta-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Widget */
.widget-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-anima-text-main);
}

.stat-label {
    font-size: 12px;
    color: var(--color-anima-text-muted);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .anima-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
    }

    .anima-profile-grid {
        grid-template-columns: 1fr;
    }

    .anima-header-actions {
        width: 100%;
        justify-content: center;
    }
}