@import url("tt_profile.css");
/* TurKTeamV2 profile: loaded after the shared tt_profile layout. */
.ttp_v2 {
    --ttp-red: #b31414;
    --ttp-bar: var(--v2-thead-bg);
    --ttp-panel: #1c1c1c;
    --ttp-line: #292929;
    --ttp-muted: #999;
    container: ttprofile / inline-size;
    color: #e6e6e6;
    font-size: 12px;
}

.ttp_v2 .ttp_actions { gap: 5px; margin-bottom: 10px; }
.ttp_v2 .ttp_actions a:link,
.ttp_v2 .ttp_actions a:visited {
    background: linear-gradient(#2b2b2b, #1b1b1b);
    border: 1px solid #050505;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #d4d4d4;
    font-size: 11px;
    font-weight: bold;
    padding: 7px 10px;
    text-shadow: 0 1px 0 #000;
}
.ttp_v2 .ttp_actions a:hover {
    background: linear-gradient(#8a1a1a, #5a0d0d);
    border-color: #2a0303;
    color: #fff;
}
.ttp_v2 .ttp_actions a i { color: #b31414; }
.ttp_v2 .ttp_actions a:hover i { color: #fff; }
.ttp_v2 .ttp_actions a.ttp_following i { color: #999; }
.ttp_v2 .ttp_actions a:focus-visible,
.ttp_v2 .ttp_tabs a:focus-visible,
.ttp_v2 a.ttp_mini:focus-visible { outline: 2px solid #ec3737; outline-offset: 2px; }

.ttp_v2 .ttp_hero {
    border: 1px solid #0c0c0c;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .03);
    height: 220px;
}
.ttp_v2 .ttp_hero_inner { bottom: 20px; gap: 18px; left: 22px; right: 22px; }
.ttp_v2 .ttp_avatar { flex: none; }
.ttp_v2 .ttp_avatar img {
    border: 4px solid #0b0b0b;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #333, 0 5px 14px rgba(0, 0, 0, .5);
    height: 108px;
    width: 108px;
}
.ttp_v2 .ttp_name { font-size: 26px; overflow-wrap: anywhere; }
.ttp_v2 .ttp_title { font-size: 12px; overflow-wrap: anywhere; }
.ttp_v2 .ttp_ribbon {
    background: linear-gradient(#252525, #151515);
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    clip-path: none;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    height: auto;
    min-height: 28px;
    padding: 5px 9px;
    right: 12px;
    top: 12px;
    font-size: 10px;
    overflow-wrap: anywhere;
}
.ttp_v2 .ttp_ribbon > i { color: #b31414; }

.ttp_v2 .ttp_grid {
    gap: 12px;
    grid-template-columns: 240px minmax(0, 1fr) 260px;
    margin-top: 12px;
}
.ttp_v2 .ttp_left,
.ttp_v2 .ttp_main,
.ttp_v2 .ttp_right { min-width: 0; }
.ttp_v2 .ttp_right { display: block; grid-column: auto; }
#content .ttp_v2 .ttp_frame {
	position: relative;
	aspect-ratio: 16 / 9;
	height: auto;
	max-height: 168px;
}
#content .ttp_v2 .ttp_frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
}
#content .ttp_v2 .ttp_gif img { max-height: 168px; width: 100%; object-fit: cover; }
.ttp_v2 .ttp_box,
.ttp_v2 .ttp_box.tta_profile {
    background: #1c1c1c;
    border: 1px solid #0c0c0c;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    margin-bottom: 12px;
}
.ttp_v2 .ttp_head {
    align-items: center;
    background: var(--v2-thead-bg);
    border-bottom: 1px solid #161616;
    border-radius: 2px 2px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
    display: flex;
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    font-size: 11px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px #000;
}
.ttp_v2 .ttp_head > strong { line-height: 1.4; }
.ttp_v2 .ttp_head::after { display: none; }
.ttp_v2 .ttp_head.tta_profile_heading { gap: 6px; line-height: 1.4; }
.ttp_v2 .tta_profile_heading h2 { font-size: 11px; }
.ttp_v2 .tta_profile_heading > a { flex: none; text-transform: none; }
.ttp_v2 .ttp_info li,
.ttp_v2 .ttp_people li { padding: 9px 10px; }
.ttp_v2 .ttp_info li:nth-child(even) { background: #1a1a1a; }
.ttp_v2 .ttp_info li > span { flex: 0 1 auto; }
.ttp_v2 .ttp_info li > b { flex: 0 1 auto; overflow-wrap: anywhere; }
.ttp_v2 .ttp_info li b .ttp_on { color: #3fc35a; }
.ttp_v2 .ttp_info li b .ttp_off { color: #999; }
.ttp_v2 .ttp_info li b .ttp_warn { color: #ff6b6b; }
.ttp_v2 .ttp_info li b .ttp_loc,
.ttp_v2 .ttp_info li b .ttp_loc a { color: #aaa; }
.ttp_v2 .ttp_online,
.ttp_v2 .ttp_tabs { background: #151515; }
.ttp_v2 .ttp_online { border-top: 1px solid #0b0b0b; }
.ttp_v2 .ttp_contact a i,
.ttp_v2 .ttp_group i,
.ttp_v2 .ttp_total i { color: #b31414; }
.ttp_v2 .ttp_contact a { overflow-wrap: anywhere; }
.ttp_v2 a.ttp_mini { background: #121212; border: 1px solid #333; border-radius: 3px; }
.ttp_v2 a.ttp_mini:hover { background: #6e1313; color: #fff; }
.ttp_v2 .ttp_score > div { padding: 14px 8px; }
.ttp_v2 .ttp_stats > div { min-width: 0; padding: 14px 6px; overflow-wrap: anywhere; }
.ttp_v2 .ttp_stats b { font-size: 18px; }
.ttp_v2 .ttp_stats span { font-size: 11px; }
.ttp_v2 .ttp_group { background: #151515; border-color: #303030; font-size: 12px; max-width: 100%; box-sizing: border-box; }
.ttp_v2 .ttp_group_img { background: none; }
.ttp_v2 .ttp_group_img img { max-width: 100%; height: auto; object-fit: contain; }
.ttp_v2 .ttp_sig { padding: 12px; overflow-wrap: anywhere; }
.ttp_v2 .ttp_sig img { max-width: 100%; height: auto; }
.ttp_v2 .ttp_fields .tborder,
.ttp_v2 .ttp_main > .tborder { margin-bottom: 12px !important; }
.ttp_v2 .ttp_fields .tborder { table-layout: fixed; overflow-wrap: anywhere; }
.ttp_v2 .ttp_fields .tborder img { max-width: 100%; height: auto; }
.ttp_v2 .ttp_tabs a:link,
.ttp_v2 .ttp_tabs a:visited { padding: 9px 5px; font-size: 11px; }
.ttp_v2 .ttp_tabs a.active { box-shadow: inset 0 -2px 0 #b31414; }
.ttp_v2 .ttp_pav { flex: none; }
.ttp_v2 .ttp_pav img { border-radius: 3px; }
.ttp_v2 .ttp_pname { overflow-wrap: anywhere; }
.ttp_v2 .ttp_people li:hover { background: #242424; }
.ttp_v2 .ttp_total { background: #151515; font-size: 11px; padding: 9px 10px; }
.ttp_v2 .ttc_profile_body { gap: 12px; padding: 12px; }
.ttp_v2 .ttc_level { width: 54px; height: 54px; flex-basis: 54px; background: linear-gradient(#252525, #151515); border-color: #444; }

/* Use the profile's available space, including the forum's fixed-width shell. */
@container ttprofile (max-width: 1000px) {
    .ttp_v2 .ttp_grid { grid-template-columns: 240px minmax(0, 1fr); }
    .ttp_v2 .ttp_right { display: grid; gap: 12px; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .ttp_v2 .ttp_right .ttp_box { margin-bottom: 0; }
}
@container ttprofile (max-width: 650px) {
    .ttp_v2 .ttp_grid { grid-template-columns: minmax(0, 1fr); }
    .ttp_v2 .ttp_right { grid-template-columns: minmax(0, 1fr); }
    .ttp_v2 .ttp_hero { height: 205px; }
    .ttp_v2 .ttp_hero_inner { bottom: 16px; gap: 12px; left: 14px; right: 14px; }
    .ttp_v2 .ttp_avatar img { width: 76px; height: 76px; }
    .ttp_v2 .ttp_name { font-size: 22px; }
    .ttp_v2 .ttp_stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ttp_v2 .ttp_stats > div:nth-child(3) { border-left: 0; }
    .ttp_v2 .ttp_stats > div:nth-child(n+3) { border-top: 1px solid var(--ttp-line); }
}

/* Older browsers retain a usable layout when container queries are unavailable. */
@supports not (container-type: inline-size) {
    @media (max-width: 1250px) {
        .ttp_v2 .ttp_grid { grid-template-columns: minmax(0, 1fr); }
        .ttp_v2 .ttp_right { display: block; }
    }
    @media (max-width: 700px) {
        .ttp_v2 .ttp_hero_inner { gap: 12px; left: 14px; right: 14px; }
        .ttp_v2 .ttp_avatar img { width: 76px; height: 76px; }
        .ttp_v2 .ttp_name { font-size: 22px; }
    }
}

/* Hover card and profile chrome sit on the body, not inside #content. */
.tooltip-content:has(.ttp_tip) {
    background: #161616;
    border: 1px solid #111;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .65);
    color: #e6e6e6;
    padding: 0;
}
.ttp_v2 .ttp_avatar .avatar {
    background: none;
    height: auto;
    width: auto;
}
.ttp_v2 .ttp_name,
.ttp_v2 .ttp_name a {
    color: #fff;
}
.ttp_v2 .ttp_actions .buttonGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.ttp_v2 .ttp_actions .button,
.ttp_v2 .ttp_actions a.button {
    background: linear-gradient(#2b2b2b, #1b1b1b) !important;
    border: 1px solid #050505 !important;
    border-radius: 3px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
    color: #d4d4d4 !important;
    font-size: 12px !important;
    height: auto !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    padding: 8px 14px !important;
    text-transform: none !important;
}
.ttp_v2 .ttp_actions .button:hover,
.ttp_v2 .ttp_actions a.button:hover {
    background: linear-gradient(180deg, #8f1717 0%, #6e0f0f 48%, #520909 100%) !important;
    color: #fff !important;
}
.tooltip.tooltip--member:has(.ttp_tip) {
    width: 340px;
    max-width: calc(100vw - 16px);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}
.ttp_tip { width: 100%; max-width: none; box-sizing: border-box; }
.ttp_tip .ttp_hero { height: 112px; border: 0; border-radius: 0; box-shadow: none; }
.ttp_tip .ttp_hero_inner { bottom: 10px; gap: 10px; left: 12px; right: 12px; }
.ttp_tip .ttp_avatar img { border-radius: 8px; height: 58px; width: 58px; }
.ttp_tip .ttp_name { font-size: 16px; margin: 0 0 2px; }
.ttp_tip .ttp_title { font-size: 12px; }
.ttp_tip .ttp_stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ttp_tip .ttp_actions { margin: 0; padding: 8px 10px 10px; }
.ttp_tip_tools { position: absolute; right: 8px; top: 8px; z-index: 2; }
.ttp_v2 .userBanner {
    background: #151515;
    border: 1px solid #303030;
    color: #eee;
}
.ttp_v2 .block-tabHeader {
    background: #151515;
    border: 1px solid #0c0c0c;
    border-radius: 3px;
    margin-top: 12px;
}
.ttp_v2 .tabs-tab { color: #bbb; }
.ttp_v2 .tabs-tab.is-active {
    box-shadow: inset 0 -2px 0 #b31414;
    color: #fff;
}

.ttp .ttc_cosmetics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.ttp .ttc_icon,
.ttp .ttc_name { width: 22px; height: 22px; object-fit: contain; }
.ttp .ttc_xp { color: #c8c8c8; font-size: 12px; }
.ttp_groups .tt_awards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}
.ttp_groups .tt_award img { width: 46px; height: 46px; object-fit: contain; }
.ttp_groups .tt_award_more { color: #eee; font-weight: 700; }
