/* TürkTeam Profil Sayfası (tt_profile eklentisi) */

.ttp {
    --ttp-red: #9b1b1b;
    --ttp-bar: linear-gradient(180deg, #8f1717 0%, #6e0f0f 48%, #520909 100%);
    --ttp-panel: #1d1d1d;
    --ttp-line: #272727;
    --ttp-muted: #8a8a8a;
    color: #dcdcdc;
}

/* ---------- Eylem düğmeleri ---------- */

.ttp_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 12px;
}

.ttp_actions a:link,
.ttp_actions a:visited {
    align-items: center;
    background: linear-gradient(180deg, #282828, #1e1e1e);
    border: 1px solid #0d0d0d;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #cfcfcf;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    padding: 8px 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.ttp_actions a i {
    color: #c62828;
}

.ttp_actions a:hover {
    background: var(--ttp-bar);
    color: #fff;
}

.ttp_actions a:hover i {
    color: #fff;
}

.ttp_actions a.ttp_following i {
    color: #9a9a9a;
}

/* ---------- Kapak ---------- */

.ttp_hero {
    background-color: #111;
    background-position: center;
    background-size: cover;
    border: 1px solid #0b0b0b;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    height: 240px;
    overflow: hidden;
    position: relative;
}

.ttp_hero:before {
    background:
        linear-gradient(0deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.35) 45%, rgba(10, 10, 10, 0) 70%),
        linear-gradient(90deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0) 55%);
    content: "";
    inset: 0;
    position: absolute;
}

.ttp_ribbon {
    align-items: center;
    background: var(--ttp-bar);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
    color: #fff;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.02em;
    padding: 0 14px 0 18px;
    position: absolute;
    right: 0;
    top: 22px;
    height: 30px;
    z-index: 1;
}

.ttp_ribbon span {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    padding: 2px 6px;
}

.ttp_hero_inner {
    align-items: flex-end;
    bottom: 22px;
    display: flex;
    gap: 18px;
    left: 28px;
    position: absolute;
    right: 28px;
    z-index: 1;
}

.ttp_avatar img {
    background: #111;
    border: 3px solid #161616;
    border-radius: 12px;
    box-shadow: 0 0 0 2px var(--ttp-red), 0 10px 24px rgba(0, 0, 0, 0.7);
    display: block;
    height: 124px;
    object-fit: cover;
    width: 124px;
}

.ttp_ident {
    min-width: 0;
    padding-bottom: 6px;
}

.ttp_name {
    font-size: 30px;
    line-height: 1.1;
    margin: 0 0 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.ttp_name,
.ttp_name * {
    font-weight: 900;
}

.ttp_title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.ttp_title i {
    color: #f5b62a;
    margin-right: 3px;
}

.ttp_stars {
    line-height: 1;
    margin-top: 6px;
}

.ttp_stars img {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
}

.ttp_stars br {
    display: none;
}

/* ---------- Izgara ---------- */

.ttp_grid {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: 300px minmax(0, 1fr) 320px;
    margin-top: 14px;
}

.ttp_box {
    background: var(--ttp-panel);
    border: 1px solid #0b0b0b;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    margin-bottom: 14px;
    overflow: hidden;
}

.ttp_head {
    background: var(--ttp-bar);
    border-bottom: 1px solid #2a0202;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    height: 38px;
    line-height: 38px;
    overflow: hidden;
    padding: 0 14px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ttp_head:after {
    background: rgba(0, 0, 0, 0.22);
    content: "";
    height: 100%;
    position: absolute;
    right: -20px;
    top: 0;
    transform: skewX(-30deg);
    width: 38%;
}

/* ---------- Sol sütun ---------- */

.ttp_score {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ttp_score > div {
    padding: 18px 10px 14px;
    position: relative;
    text-align: center;
}

.ttp_score > div + div {
    border-left: 1px solid var(--ttp-line);
}

.ttp_score b {
    color: #f0f0f0;
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.ttp_score b.ttp_pos {
    color: #4cd964;
}

.ttp_score b.ttp_neg {
    color: #ff5252;
}

.ttp_score span {
    color: var(--ttp-muted);
    display: block;
    font-size: 11.5px;
    margin-bottom: 8px;
}

a.ttp_mini:link,
a.ttp_mini:visited {
    align-items: center;
    background: #2a2a2a;
    border-radius: 50%;
    color: #bbb;
    display: inline-flex;
    font-size: 12px;
    height: 24px;
    justify-content: center;
    width: 24px;
}

a.ttp_mini:hover {
    background: #8e1717;
    color: #fff;
}

.ttp_info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ttp_info li {
    align-items: center;
    border-bottom: 1px solid var(--ttp-line);
    display: flex;
    font-size: 12px;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 14px;
}

.ttp_info li span {
    color: var(--ttp-muted);
    flex: none;
}

.ttp_info li b,
.ttp_info li b * {
    color: #e8e8e8;
    font-weight: 400;
    min-width: 0;
    text-align: right;
}

.ttp_on {
    color: #4cd964;
    font-weight: 700;
}

.ttp_off {
    color: #8a8a8a;
}

.ttp_loc,
.ttp_loc a {
    color: #bdbdbd;
    font-size: 11px;
}

.ttp_warn {
    color: #ff6b6b;
    font-weight: 700;
}

.ttp_contact {
    border-bottom: 1px solid var(--ttp-line);
    display: flex;
    flex-wrap: wrap;
}

.ttp_contact a:link,
.ttp_contact a:visited {
    color: #dcdcdc;
    flex: 1;
    font-size: 12px;
    padding: 11px 10px;
    text-align: center;
}

.ttp_contact a + a {
    border-left: 1px solid var(--ttp-line);
}

.ttp_contact a i {
    color: #c62828;
    margin-right: 4px;
}

.ttp_contact a:hover {
    background: #232323;
    color: #fff;
}

.ttp_online {
    background: #171717;
    padding: 12px;
    text-align: center;
}

.ttp_online b {
    color: #f0f0f0;
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.ttp_online span {
    color: #777;
    font-size: 10.5px;
}

/* ---------- Orta sütun ---------- */

.ttp_stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ttp_stats > div {
    padding: 16px 8px;
    text-align: center;
}

.ttp_stats > div + div {
    border-left: 1px solid var(--ttp-line);
}

.ttp_stats b {
    color: #f4f4f4;
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.ttp_stats span {
    color: var(--ttp-muted);
    font-size: 11.5px;
}

.ttp_groups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 16px 14px;
}

.ttp_group {
    align-items: center;
    background: #151515;
    border: 1px solid #333;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    min-height: 30px;
    padding: 4px 14px;
}

.ttp_group i {
    color: #c62828;
}

.ttp_group_img {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.ttp_group_img img {
    display: block;
    max-height: 40px;
}

.ttp_sig {
    color: #cfcfcf;
    line-height: 1.6;
    padding: 16px;
}

.ttp_fields .tborder {
    margin-bottom: 14px !important;
}

.ttp_fields br {
    display: none;
}

.ttp_main > .tborder,
.ttp_main > br + .tborder {
    margin-bottom: 14px !important;
}

/* ---------- Sağ sütun ---------- */

.ttp_frame {
    aspect-ratio: 16 / 9;
    background: #000;
}

.ttp_frame iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.ttp_gif img {
    display: block;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

.ttp_tabs {
    background: #181818;
    border-bottom: 1px solid var(--ttp-line);
    display: flex;
}

.ttp_tabs a:link,
.ttp_tabs a:visited {
    color: #9a9a9a;
    flex: 1;
    font-size: 12px;
    font-weight: 700;
    padding: 11px 6px;
    text-align: center;
    transition: color 0.15s ease, box-shadow 0.15s ease;
}

.ttp_tabs a:hover {
    color: #fff;
}

.ttp_tabs a.active {
    box-shadow: inset 0 -2px 0 #e23b3b;
    color: #fff;
}

.ttp_people {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ttp_people li {
    align-items: center;
    border-bottom: 1px solid var(--ttp-line);
    display: flex;
    gap: 12px;
    padding: 9px 14px;
}

.ttp_people li:hover {
    background: #222;
}

.ttp_pav img {
    background: #111;
    border-radius: 6px;
    box-shadow: 0 0 0 1px #3a3a3a;
    display: block;
    height: 38px;
    object-fit: cover;
    width: 38px;
}

.ttp_people li > div {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.ttp_pname,
.ttp_pname * {
    font-size: 12.5px;
    font-weight: 700;
}

.ttp_people li span {
    color: #808080;
    font-size: 11px;
}

.ttp_people li.ttp_empty {
    color: #777;
    font-size: 12px;
    justify-content: center;
    padding: 18px 14px;
}

.ttp_total {
    color: #8a8a8a;
    font-size: 11.5px;
    padding: 10px 14px;
}

.ttp_total i {
    color: #c62828;
    margin-right: 4px;
}

/* ---------- Kullanıcı paneli ---------- */

.ttp_cover_preview {
    background-color: #111;
    background-position: center;
    background-size: cover;
    border: 1px solid #000;
    border-radius: 4px;
    height: 170px;
}

.ttp_gif_preview {
    border: 1px solid #000;
    border-radius: 4px;
    display: block;
    margin-top: 10px;
    max-height: 160px;
    max-width: 280px;
}

.ttp_remove {
    color: #bbb;
    display: block;
    font-size: 12px;
    margin-top: 8px;
}

/* ---------- Dar ekran ---------- */

@media (max-width: 1200px) {
    .ttp_grid {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .ttp_right {
        display: grid;
        gap: 14px;
        grid-column: 1 / -1;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .ttp_right .ttp_box {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .ttp_grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ttp_hero {
        height: 210px;
    }

    .ttp_hero_inner {
        bottom: 16px;
        gap: 12px;
        left: 14px;
        right: 14px;
    }

    .ttp_avatar img {
        border-radius: 10px;
        height: 84px;
        width: 84px;
    }

    .ttp_name {
        font-size: 22px;
    }

    .ttp_ribbon {
        top: 12px;
    }

    .ttp_stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ttp_stats > div:nth-child(3) {
        border-left: 0;
    }

    .ttp_stats > div:nth-child(n+3) {
        border-top: 1px solid var(--ttp-line);
    }

    .ttp_actions a:link,
    .ttp_actions a:visited {
        padding: 7px 10px;
    }
}

.ttp_info li b .ttp_on {
    font-weight: 700;
}
