/* ============================================================
   profile.css — Публичные профили участников
   Команда InIProject
   ============================================================ */

/* ===== Каталог ===== */
.profile__catalog-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.profile__catalog-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-text);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 16px var(--accent-glow);
}
.profile__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0.6rem 0 0.2rem; }
.profile__tag {
    font-family: var(--font-mono); font-size: 0.66rem; color: var(--accent-hover);
    background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 10px; padding: 2px 8px;
}
.profile__catalog-open {
    display: block; margin-top: 0.7rem; font-family: var(--font-mono);
    font-size: 0.72rem; color: var(--accent-text); opacity: 0.75; transition: opacity 0.2s;
}
.profile__catalog-card:hover .profile__catalog-open { opacity: 1; }

/* ===== Страница участника ===== */
.profile__back {
    display: inline-block; font-family: var(--font-mono); font-size: 0.8rem;
    color: var(--text-muted); text-decoration: none; margin-bottom: 1.6rem; transition: color 0.2s;
}
.profile__back:hover { color: var(--accent-text); }

.profile__hero {
    display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
    padding: 1.6rem; background: var(--bg-terminal);
    border: 1px solid rgba(var(--accent-rgb), 0.2); border-radius: var(--card-radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4), 0 0 5px var(--accent-glow);
}
.profile__avatar-wrap { flex-shrink: 0; }
.profile__avatar {
    position: relative; width: 110px; height: 110px; border-radius: 50%;
    overflow: visible; border: 2px solid rgba(var(--accent-rgb), 0.4);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
}
.profile__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile__emoji { font-size: 3rem; line-height: 1; }
.profile__head { flex: 1; min-width: 200px; }
.profile__name { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; margin: 0 0 0.2rem; }
.profile__role { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.5rem; }
.profile__head-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.profile__nowplaying {
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-hover);
    background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 10px; padding: 3px 10px;
}
.profile__nowplaying--online { color: #27C93F; background: rgba(39, 201, 63, 0.08); border-color: rgba(39, 201, 63, 0.2); }
.profile__badges { display: flex; flex-wrap: wrap; gap: 6px; }

.profile__bio { color: var(--text-secondary); margin: 1.2rem 0 0; line-height: 1.7; }
.profile__links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.profile__link {
    font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-secondary);
    text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px; padding: 0.45rem 0.9rem; transition: all 0.2s;
}
.profile__link:hover { border-color: var(--accent-text); color: var(--accent-text); }

.profile__stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem; margin: 1.4rem 0;
}
.profile__stat {
    background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px; padding: 1rem; text-align: center;
}
.profile__stat b { display: block; font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent-hover); }
.profile__stat span { font-size: 0.72rem; color: var(--text-muted); }

.profile__section-title { font-family: var(--font-mono); font-size: 1.1rem; margin: 2rem 0 1rem; }
.profile__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .profile__cols { grid-template-columns: 1fr; gap: 0; } }

.profile__skill { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.profile__skill-name { font-family: var(--font-mono); font-size: 0.74rem; width: 90px; flex-shrink: 0; color: var(--text-secondary); }
.profile__skill-bar { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 3px; overflow: hidden; }
.profile__skill-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.profile__skill--learning .profile__skill-fill { background: var(--text-muted); }
.profile__skill-pct { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); width: 34px; text-align: right; }
.profile__learning-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin: 0.8rem 0 0.5rem; }

.profile__repos { display: flex; flex-direction: column; gap: 0.5rem; }
.profile__repo {
    display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
    background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px; padding: 0.6rem 0.9rem; text-decoration: none; transition: border-color 0.2s;
}
.profile__repo:hover { border-color: var(--accent-text); }
.profile__repo-name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-primary); }
.profile__repo-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }

.profile__projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.profile__project {
    background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px; padding: 1rem; transition: border-color 0.2s;
}
.profile__project:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.profile__project-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.profile__project-icon { font-size: 1.2rem; }
.profile__project-title { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; }
.profile__project-desc { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.6; margin: 0 0 0.7rem; }
.profile__project-foot { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.profile__project-stars { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.profile__project-link { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-text); text-decoration: none; }
.profile__project-link:hover { color: var(--accent-hover); }

.profile__games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
.profile__game { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); }
.profile__game img { width: 100%; display: block; }
.profile__game-hours {
    position: absolute; bottom: 0; right: 0; font-family: var(--font-mono); font-size: 0.66rem;
    color: #fff; background: rgba(0, 0, 0, 0.75); padding: 2px 7px; border-top-left-radius: 6px;
}

/* ===== Участник не найден (в стиле 404 сайта) ===== */
.profile__notfound {
    position: relative; overflow: hidden; border-radius: var(--card-radius);
    border: 1px solid rgba(var(--accent-rgb), 0.2); background: var(--bg-terminal);
    padding: 2.6rem 1.5rem; text-align: center; min-height: 420px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4), 0 0 5px var(--accent-glow);
}
.profile__nf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.45; z-index: 0; }
.profile__notfound > *:not(.profile__nf-canvas) { position: relative; z-index: 1; }
.profile__nf-code {
    font-family: var(--font-mono); font-size: 4rem; font-weight: 700; color: var(--accent-text);
    line-height: 1; letter-spacing: 0.05em; text-shadow: 0 0 30px var(--accent-glow);
}
.profile__nf-title {
    font-family: var(--font-mono); font-size: 1.05rem; text-transform: uppercase;
    letter-spacing: 0.35em; color: var(--text-secondary); margin-top: 14px;
}
.profile__nf-cursor {
    display: inline-block; width: 0.6em; height: 1.1em; background: var(--accent);
    vertical-align: text-bottom; margin-left: 6px; animation: profileBlink 1s step-start infinite;
}
@keyframes profileBlink { 50% { opacity: 0; } }
.profile__nf-sub { color: var(--text-secondary); font-size: 0.9rem; margin-top: 10px; }
.profile__nf-term {
    margin: 28px auto 0; width: 100%; max-width: 520px; background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; overflow: hidden;
    text-align: left; font-family: var(--font-mono); font-size: 0.8rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.profile__nf-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.profile__nf-dot { width: 11px; height: 11px; border-radius: 50%; }
.profile__nf-dot--r { background: #FF5F57; }
.profile__nf-dot--y { background: #FEBC2E; }
.profile__nf-dot--g { background: #28C840; }
.profile__nf-path { margin-left: 8px; color: var(--text-muted); font-size: 0.72rem; }
.profile__nf-body { padding: 16px 18px; line-height: 1.9; }
.profile__nf-body p { margin: 0 0 4px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile__nf-prompt { color: var(--accent-hover); }
.profile__nf-err { color: var(--accent-hover); }
.profile__nf-ok { color: #28C840; }
.profile__nf-dim { color: var(--text-muted); }
.profile__nf-cursor-line::after { content: "▊"; color: var(--accent-text); animation: profileBlink 1s step-start infinite; }
.profile__notfound .btn-accent { margin-top: 28px; }

/* ===== Адаптив (мобильные) ===== */
@media (max-width: 560px) {
    .profile__hero {
        flex-direction: column; text-align: center; align-items: center; padding: 1.3rem;
    }
    .profile__head { min-width: 0; }
    .profile__head-row, .profile__badges, .profile__links { justify-content: center; }
    .profile__name { font-size: 1.5rem; }
    .profile__avatar { width: 92px; height: 92px; }
    .profile__stats { grid-template-columns: repeat(2, 1fr); }
    .profile__skill-name { width: 68px; font-size: 0.68rem; }
    .profile__projects { grid-template-columns: 1fr; }
    .profile__repo { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .profile__section-title { font-size: 1rem; }
}

/* Steam-блок в профиле */
.profile__steam-head { margin-bottom: 0.8rem; }
.profile__steam-status { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); }
.profile__steam-status--on { color: #27C93F; }
.profile__steam-status--playing { color: var(--accent-hover); }
.profile__steam-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.profile__steam-stat { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 0.8rem; text-align: center; }
.profile__steam-stat b { display: block; font-family: var(--font-mono); font-size: 1.05rem; color: var(--accent-hover); }
.profile__steam-stat span { font-size: 0.66rem; color: var(--text-muted); }
.profile__steam-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); margin: 0.8rem 0 0.5rem; }
