/* ===== Public User Profile ===== */

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

/* --- Header Panel --- */
.user-profile__header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.user-profile__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c4a24e 0%, #a37e2c 100%);
    color: #0a0a0f;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.user-profile__avatar:has(img) {
    background: none;
}

.user-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile__info {
    flex: 1;
    min-width: 0;
}

.user-profile__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #e0ddd5);
    margin: 0 0 0.25rem;
}

/* --- Meta Line --- */
.user-profile__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-dimmed, #7a7870);
    margin-bottom: 0.5rem;
}

.user-profile__username {
    color: var(--gold, #c4a24e);
}

.user-profile__separator {
    opacity: 0.5;
}

.user-profile__meta-icon {
    vertical-align: -2px;
    opacity: 0.7;
    margin-right: 1px;
}

/* --- Social Links --- */
.user-profile__social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.user-profile__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-dimmed, #7a7870);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color, #252830);
    transition: color 0.2s, border-color 0.2s;
}

.user-profile__social-link:hover {
    color: var(--text-primary, #e0ddd5);
    border-color: var(--text-dimmed, #7a7870);
}

.user-profile__social-link--twitch:hover {
    color: #9146ff;
    border-color: #9146ff;
}

.user-profile__social-link--youtube:hover {
    color: #ff0000;
    border-color: #ff0000;
}

/* Twitch Live indicator */
.user-profile__social-link--live {
    color: #9146ff;
    border-color: #9146ff;
}

.user-profile__live-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Bio --- */
.user-profile__bio {
    font-size: 0.9rem;
    color: var(--text-secondary, #b0ada5);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    white-space: pre-line;
}

.user-profile__bio:empty {
    display: none;
}

/* --- Right Actions (Follow + Share) --- */
.user-profile__right-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: center;
    flex-shrink: 0;
}

/* --- Share Button --- */
.user-profile__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    background: transparent;
    border: 1px solid var(--border-color, #252830);
    border-radius: 4px;
    color: var(--text-dimmed, #7a7870);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-body, system-ui, sans-serif);
    transition: all 0.2s;
}

.user-profile__share-btn svg {
    width: 14px;
    height: 14px;
}

.user-profile__share-btn:hover {
    border-color: var(--gold, #c4a24e);
    color: var(--gold, #c4a24e);
}

/* --- Actions (Follow + Counts) --- */
.user-profile__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-dimmed, #7a7870);
}

.user-profile__follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold, #c4a24e);
    background: var(--gold, #c4a24e);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-profile__follow-btn:hover {
    opacity: 0.85;
}

.user-profile__follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-profile__follow-btn--unfollow {
    background: transparent;
    color: var(--text-dimmed, #7a7870);
    border-color: var(--border-color, #252830);
    font-weight: 400;
}

.user-profile__follow-btn--unfollow:hover {
    color: var(--text-secondary, #b0ada5);
    border-color: var(--text-dimmed, #7a7870);
}

/* --- Clickable author links in build cards --- */
a.build-card__author {
    color: var(--text-dimmed, #7a7870);
    text-decoration: none;
    transition: color 0.2s;
}

a.build-card__author:hover {
    color: var(--gold, #c4a24e);
    text-decoration: underline;
}

/* ===== Fishing Profile Tab ===== */

.fishing-profile-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted, #7a7870);
    font-style: italic;
}

.fishing-profile-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #1a1c22;
    border: 1px solid #252830;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.fishing-profile-stats__item {
    background: #13151a;
    padding: 0.6rem 0.5rem;
    text-align: center;
}

.fishing-profile-stats__label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #7a7870);
    margin-bottom: 0.2rem;
}

.fishing-profile-stats__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #e0ddd5);
    font-variant-numeric: tabular-nums;
}

.fishing-profile-collection__title {
    font-family: 'OldFenris', serif;
    font-size: 1.1rem;
    color: var(--text-primary, #e0ddd5);
    margin: 0 0 0.75rem;
}

.fishing-profile-collection-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .user-profile__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-profile__meta {
        justify-content: center;
    }

    .user-profile__social {
        justify-content: center;
    }

    .user-profile__actions {
        justify-content: center;
    }

    .user-profile__right-actions {
        flex-direction: row;
        justify-content: center;
    }

    .user-profile__avatar {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .fishing-profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .fishing-profile-collection-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .fishing-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .fishing-profile-collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
