/* forum_profile.css — Profil utilizator forum */

.fp-wrap { padding-bottom: 3rem; }

.fp-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    align-items: start;
    margin-top: 1.5rem;
}
@media (max-width: 720px) {
    .fp-layout { grid-template-columns: 1fr; }
}

/* ── Sidebar card ── */
.fp-card {
    background: #1a2332;
    border: 1px solid #2a3a4a;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 80px;
}

.fp-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.fp-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fp-avatar-letter {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.fp-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 .5rem;
}

.fp-role-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: .03em;
}
.fp-badge--mec    { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.fp-badge--client { background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.fp-badge--admin  { background: rgba(251,191,36,.12); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }

.fp-since {
    font-size: .8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-bottom: 1.25rem;
}
.fp-since i { color: #475569; }

/* Stats grid */
.fp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2a3a4a;
}
.fp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
}
.fp-stat strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
}
.fp-stat span {
    font-size: .7rem;
    color: #64748b;
    text-align: center;
}
.fp-stat--best strong { color: #34d399; }
.fp-stat--best span   { color: #34d399; opacity: .8; }
.fp-stat--best span i { font-size: .65rem; }

/* Actions */
.fp-actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.fp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .65rem 1rem;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    font-family: inherit;
    border: none;
}
.fp-btn:hover { opacity: .85; transform: translateY(-1px); }
.fp-btn--msg   { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; }
.fp-btn--edit  { background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.fp-btn--ghost { background: rgba(148,163,184,.08); color: #94a3b8; border: 1px solid #2a3a4a; font-size: .82rem; }
.fp-btn--back  { background: transparent; color: #64748b; font-size: .83rem; }

/* ── Main content ── */
.fp-main { display: flex; flex-direction: column; gap: 1.5rem; }

.fp-section {
    background: #1a2332;
    border: 1px solid #2a3a4a;
    border-radius: 12px;
    overflow: hidden;
}
.fp-section__title {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.25rem;
    font-size: .95rem;
    font-weight: 700;
    color: #94a3b8;
    border-bottom: 1px solid #2a3a4a;
    margin: 0;
    background: rgba(0,0,0,.1);
}
.fp-section__title i { color: #3b82f6; }
.fp-section__count {
    margin-left: auto;
    background: rgba(59,130,246,.12);
    color: #60a5fa;
    font-size: .75rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-weight: 700;
}

.fp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2rem;
    color: #475569;
    font-size: .88rem;
}
.fp-empty i { font-size: 1.5rem; }

/* Topics list */
.fp-topics-list { display: flex; flex-direction: column; }
.fp-topic-row {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #1e2d3d;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.fp-topic-row:last-child { border-bottom: none; }
.fp-topic-row:hover { background: rgba(59,130,246,.05); }
.fp-topic-row--closed { opacity: .7; }

.fp-topic-row__icon {
    width: 32px;
    height: 32px;
    background: rgba(59,130,246,.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: .9rem;
    flex-shrink: 0;
}
.fp-topic-row__body { flex: 1; min-width: 0; }
.fp-topic-row__title {
    font-size: .9rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.fp-topic-row__meta {
    display: flex;
    gap: .85rem;
    font-size: .75rem;
    color: #64748b;
    margin-top: .2rem;
    flex-wrap: wrap;
}
.fp-topic-row__meta i { margin-right: .2rem; }
.fp-topic-row__counts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .2rem;
    font-size: .75rem;
    color: #64748b;
    flex-shrink: 0;
}
.fp-topic-row__counts i { margin-right: .2rem; }

/* Replies list */
.fp-replies-list { display: flex; flex-direction: column; }
.fp-reply-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid #1e2d3d;
    text-decoration: none;
    transition: background .15s;
    position: relative;
}
.fp-reply-row:last-child { border-bottom: none; }
.fp-reply-row:hover { background: rgba(59,130,246,.05); }
.fp-reply-row--best { border-left: 3px solid #34d399; padding-left: calc(1.25rem - 3px); }

.fp-reply-best-badge {
    font-size: .72rem;
    font-weight: 700;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .1rem;
}
.fp-reply-row__topic {
    font-size: .82rem;
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
}
.fp-reply-row__topic i { font-size: .75rem; }
.fp-reply-row__snippet {
    font-size: .88rem;
    color: #94a3b8;
    line-height: 1.5;
}
.fp-reply-row__meta {
    font-size: .75rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* See all link */
.fp-see-all {
    padding: .75rem 1.25rem;
    border-top: 1px solid #2a3a4a;
    text-align: center;
}
.fp-see-all-link {
    font-size: .83rem;
    color: #60a5fa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.fp-see-all-link:hover { text-decoration: underline; }

/* ── Badge-uri showcase ─────────────────────────────────────── */
.fp-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
    padding: 1rem 1.25rem;
}

.fp-badge-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: 10px;
    border: 1px solid #2a3a4a;
    background: rgba(0,0,0,.15);
    position: relative;
    transition: border-color .15s;
}

.fp-badge-card--earned {
    border-color: color-mix(in srgb, var(--badge-color, #60a5fa) 35%, transparent);
    background: color-mix(in srgb, var(--badge-color, #60a5fa) 6%, #0f1923);
}
.fp-badge-card--locked { opacity: .55; }

.fp-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    background: rgba(148,163,184,.1);
    color: #475569;
}
.fp-badge-card--earned .fp-badge-icon {
    background: color-mix(in srgb, var(--badge-color) 18%, transparent);
    color: var(--badge-color);
}

.fp-badge-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.fp-badge-info strong {
    font-size: .85rem;
    color: #e2e8f0;
    line-height: 1.2;
}
.fp-badge-card--locked .fp-badge-info strong { color: #64748b; }
.fp-badge-info span {
    font-size: .74rem;
    color: #475569;
    line-height: 1.4;
}
.fp-badge-info small {
    font-size: .7rem;
    color: #475569;
    margin-top: .1rem;
}

.fp-badge-progress {
    height: 3px;
    background: #1e2d3d;
    border-radius: 999px;
    overflow: hidden;
    margin-top: .35rem;
}
.fp-badge-progress__bar {
    height: 100%;
    background: #3b82f6;
    border-radius: 999px;
    transition: width .3s ease;
}

.fp-badge-check {
    position: absolute;
    top: .5rem;
    right: .6rem;
    font-size: .65rem;
    color: var(--badge-color, #34d399);
    opacity: .7;
}
