/* GANGS mobil duzeltmeleri (sadece telefon genisliginde). Masaustu gorunumune dokunmaz. */

/* =========================================================
   1) UST CUBUK: ev ikonu + yazi kalkar, mesajlar alta tasinir
   ========================================================= */
@media (max-width: 760px) {

    /* Logoya tiklayinca ana sayfaya gidiliyor; ev ikonu ve "GANGS" yazisi gereksiz */
    .mobile-brand strong,
    .profile-brand-text {
        display: none !important;
    }

    .site-mobile-home,
    .site-topbar-actions .site-mobile-home {
        display: none !important;
    }

    /* Profil sayfasindaki "Ana Sayfa" dugmesi (ikonlu) */
    .profile-home-link.profile-home-link-main:has(svg) {
        display: none !important;
    }

    /* Alt menusu olan sayfalarda mesajlar altta (Oyunlar yerine); ustte tekrar gerekmez */
    body:has(.mobile-nav) .site-topbar-actions .message-shortcut {
        display: none !important;
    }

    .site-topbar-actions {
        gap: 6px !important;
    }

    /* "<- Profile Don" yazisi: tasma yapmasin, kucuk yuvarlak ok dugmesi olsun */
    .profile-topbar {
        flex-wrap: nowrap !important;
        min-width: 0;
    }

    .profile-topbar .profile-home-link:not(:has(svg)) {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 0 !important;
        line-height: 0;
        overflow: hidden;
    }

    .profile-topbar .profile-home-link:not(:has(svg))::before {
        content: "\2190";
        font-size: 20px;
        line-height: 1;
        font-weight: 900;
    }

    /* Alt menu: ikonlar ve yazilar ayni boyda, duzgun */
    .mobile-nav a,
    .mobile-nav button {
        color: #8b919c;
    }

    .mobile-nav small {
        font-size: 10px !important;
        font-weight: 700;
        letter-spacing: .2px;
    }

    .mobile-nav .mobile-nav-svg-icon,
    .mobile-nav .mobile-live-chat-icon,
    .mobile-nav .mobile-profile-icon {
        width: 26px !important;
        height: 26px !important;
    }

    .mobile-nav .mobile-nav-svg-icon svg,
    .mobile-nav .mobile-live-chat-icon svg,
    .mobile-nav .mobile-profile-icon svg {
        width: 24px !important;
        height: 24px !important;
        stroke-width: 1.9 !important;
    }

    .mobile-nav .active,
    .mobile-nav .active small {
        color: #ffd21a !important;
    }

    .mobile-nav .mobile-messages-link {
        position: relative;
    }

    .mobile-nav-badge {
        position: absolute;
        top: 4px;
        left: calc(50% + 6px);
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #ff4967;
        color: #fff;
        font-size: 9px;
        font-weight: 900;
        line-height: 1;
        box-sizing: border-box;
    }

    .mobile-nav-badge[hidden] {
        display: none;
    }
}


/* =========================================================
   2) PROFIL: Mesaj Gonder / Profili Duzenle / Topluluk itibari kucuk
   ========================================================= */
@media (max-width: 640px) {

    .profile-actions {
        gap: 8px !important;
    }

    .profile-actions .profile-edit-button,
    .profile-actions .profile-message-button {
        min-height: 36px !important;
        height: 36px !important;
        padding: 0 12px !important;
        gap: 7px !important;
        border-radius: 12px !important;
        font-size: 12.5px !important;
        font-weight: 800 !important;
    }

    .profile-actions .profile-message-button-icon {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    .profile-actions .profile-message-button-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .profile-actions .profile-message-button-arrow {
        display: none !important;
    }

    .profile-actions .profile-reputation-link {
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 6px 12px 6px 10px !important;
        gap: 9px !important;
        border-radius: 12px !important;
    }

    .profile-actions .profile-reputation-link-icon svg {
        width: 26px !important;
        height: 29px !important;
    }

    .profile-actions .profile-reputation-link-text strong {
        font-size: 15px !important;
        line-height: 1.1 !important;
    }

    .profile-actions .profile-reputation-link-text small {
        font-size: 9.5px !important;
    }
}


/* =========================================================
   3) GONDERI KARTI ve SABIT GONDERI: alt cubuk tasmasin, baslik duzgun
   ========================================================= */
@media (max-width: 640px) {

    .post-footer,
    .profile-post-footer {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .post-footer .gx-react,
    .profile-post-footer .gx-react {
        flex: 0 1 auto;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        min-width: 0;
    }

    .post-footer .gx-main-btn,
    .profile-post-footer .gx-main-btn {
        padding: 5px 9px !important;
        gap: 5px !important;
    }

    .post-footer .gx-main-btn .post-reaction-emoji .reaction-svg-icon,
    .profile-post-footer .gx-main-btn .post-reaction-emoji .reaction-svg-icon {
        width: 16px !important;
        height: 16px !important;
    }

    .post-footer .gx-main-label,
    .profile-post-footer .gx-main-label {
        font-size: 11px !important;
    }

    .post-footer .gx-react-summary,
    .profile-post-footer .gx-react-summary {
        gap: 4px !important;
    }

    .post-footer .gx-react-stack .reaction-svg-icon,
    .profile-post-footer .gx-react-stack .reaction-svg-icon {
        width: 15px !important;
        height: 15px !important;
        margin-left: -4px;
    }

    .post-footer .gx-react-total,
    .profile-post-footer .gx-react-total {
        font-size: 11px !important;
    }

    .post-footer .post-comment-count,
    .profile-post-footer .post-comment-count {
        flex: 0 0 auto;
        margin-left: auto;
        padding: 5px 9px !important;
        gap: 5px !important;
        font-size: 11px !important;
        white-space: nowrap;
    }

    .post-footer .post-comment-count .gx-ico,
    .profile-post-footer .post-comment-count .gx-ico {
        width: 15px !important;
        height: 15px !important;
    }

    .post-footer .post-save-form,
    .profile-post-footer .post-save-form {
        flex: 0 0 auto;
        margin: 0;
    }

    .post-footer .post-save-button,
    .profile-post-footer .post-save-button {
        padding: 5px 8px !important;
    }

    .post-footer .post-save-button .gx-ico,
    .profile-post-footer .post-save-button .gx-ico {
        width: 16px !important;
        height: 16px !important;
    }

    /* Kart ust kismi: albüm etiketi kisalir, "..." menusu sikismaz */
    .post-header-actions {
        flex: 0 0 auto;
        gap: 6px !important;
        align-items: center !important;
    }

    .post-album-badge {
        max-width: 132px !important;
        padding: 4px 8px 4px 5px !important;
        gap: 6px !important;
    }

    .post-album-badge-icon {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    .post-album-badge-name small {
        display: none !important;
    }

    .post-album-badge-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px !important;
    }

    /* Sabitlenmis gonderi cercevesi: kenar bosluklari kucuk */
    .profile-pinned-post-section {
        padding: 10px !important;
    }

    .profile-pinned-post-card .profile-post-card,
    .profile-pinned-post-card .post-card {
        padding: 12px !important;
    }
}


/* =========================================================
   4) YORUMLAR ve CEVAPLAR: ic ice cevaplar daralmasin, gif kucuk
   ========================================================= */
@media (max-width: 640px) {

    .post-comment-item {
        gap: 6px !important;
    }

    .post-comment-item > .avatar {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
    }

    .post-comment-content {
        padding: 8px 9px !important;
    }

    .post-comment-head {
        gap: 4px 6px !important;
    }

    /* Cevap kutulari: soldaki girinti az, ikinci seviyeden sonra hic girinti yok */
    .comment-replies {
        margin-left: 4px !important;
        padding-left: 8px !important;
    }

    .comment-replies .comment-replies {
        margin-left: 0 !important;
        padding-left: 6px !important;
        border-left-color: rgba(255, 255, 255, .08) !important;
    }

    .comment-replies .comment-replies .comment-replies {
        padding-left: 0 !important;
        border-left: 0 !important;
    }

    .comment-reply-item {
        margin-top: 8px !important;
    }

    .comment-reply-item .post-comment-item > .avatar {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    .comment-actions {
        gap: 6px !important;
    }

    .comment-reply-form {
        gap: 5px !important;
    }

    /* Yorumlardaki GIF'ler daha kucuk */
    .comment-gif-media {
        max-width: min(210px, 72%) !important;
        margin-top: 6px !important;
    }

    .comment-gif-media img {
        max-height: 150px !important;
    }

    .weekly-comment-gif-media {
        max-width: min(210px, 72%) !important;
    }

    .weekly-comment-gif-media img {
        max-height: 150px !important;
    }
}

/* =========================================================
   5) "Albumlere Don" dugmesi (album sayfasi): site genelindeki pill stiliyle uyumlu
   ========================================================= */
.profile-topbar .profile-albums-back svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #ffd21a;
}

@media (max-width: 760px) {
    /* Telefonda sadece ikon (yuvarlak), yazi gizli */
    .profile-topbar .profile-albums-back {
        flex: 0 0 auto;
        width: 40px;
        min-height: 40px !important;
        height: 40px;
        padding: 0 !important;
        gap: 0 !important;
        justify-content: center;
        border-radius: 50% !important;
        font-size: 0 !important;
    }

    .profile-topbar .profile-albums-back svg {
        width: 20px;
        height: 20px;
    }

    .profile-topbar .profile-albums-back span {
        display: none;
    }
}


/* =========================================================
   6) PROFIL > ALBUMLER (telefon): kartlar tam genislik, modern gorunum
   ========================================================= */
@media (max-width: 700px) {

    .profile-albums {
        gap: 14px !important;
    }

    /* Her oyun grubu kendi kutusunda */
    .profile-albums .profile-album-group {
        padding: 14px !important;
        gap: 12px !important;
        border: 1px solid #242932 !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, .025);
    }

    .profile-albums .profile-album-group + .profile-album-group {
        padding-top: 14px !important;
    }

    .profile-albums .profile-album-group-name {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px !important;
    }

    .profile-albums .profile-album-group-name img {
        height: 30px;
        width: auto;
        max-width: 64px;
        object-fit: contain;
    }

    .profile-albums .profile-album-group-head span {
        font-size: 11.5px !important;
    }

    /* Tek kart tam genislige yayilir; birden fazlaysa iki sutun */
    .profile-albums .profile-album-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }

    .profile-albums .profile-album-card {
        border-radius: 14px !important;
        background: #101216;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .32);
    }

    .profile-albums .profile-album-card:active {
        transform: scale(.985);
    }

    .profile-albums .profile-album-collage {
        aspect-ratio: 4 / 3 !important;
    }

    .profile-albums .profile-album-grid .profile-album-card:only-child .profile-album-collage {
        aspect-ratio: 16 / 10 !important;
    }

    .profile-albums .profile-album-card-info {
        padding: 11px 13px 13px !important;
        gap: 3px !important;
    }

    .profile-albums .profile-album-card-info strong {
        font-size: 14px !important;
    }

    .profile-albums .profile-album-card-info span,
    .profile-albums .profile-album-card-info small {
        font-size: 11px !important;
    }
}


/* =========================================================
   7) KAYDIRMA CUBUGU (masaustu): siteye uygun koyu zemin + soluk altin
   ========================================================= */
@media (min-width: 761px) and (hover: hover) {
    html,
    body,
    * {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 210, 26, .88) #0b0c0f;
    }
}