/*
* Filename: profile.css
* Directory: /www/css/
* File path: /www/css/profile.css
* Description: Stiler kun for den nye profilsiden.
*/

.profile-container {
    max-width: 960px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f9f9f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-header-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
}

.profile-email {
    color: #777;
    margin: 0;
}

.profile-member-since {
    font-size: 0.9rem;
    color: #999;
    margin-top: 5px;
}

.profile-badge.owner {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Tabs --- */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 2rem;
}
.tab-link {
    padding: 1rem 2rem;
    color: #7f8c8d;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.tab-link:hover { color: var(--color-primary); }
.tab-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* --- Innhold --- */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.avatar-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.avatar-item img {
    border-radius: 4px;
    border: 1px solid #eee;
}