/* HC Galeri · Teşekkür ikonu ve dosya bilgileri v4 */

/* Önceki teşekkür öğesi varsa yalnızca v4 öğesi gösterilir. */
.stage-utility-cluster > .stage-thanks-form:not(.stage-thanks-form-v4),
.stage-utility-cluster > .stage-thanks-login:not(.stage-thanks-login-v4),
.stage-utility-cluster > .stage-thanks-owner:not(.stage-thanks-owner-v4) {
    display: none !important;
}

.stage-utility-cluster {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.stage-utility-cluster > .stage-thanks-form-v4,
.stage-utility-cluster > .stage-thanks-login-v4,
.stage-utility-cluster > .stage-thanks-owner-v4,
.stage-utility-cluster > .stage-info-hover,
.stage-utility-cluster > .stage-expand {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

.stage-utility-cluster > .stage-thanks-form-v4,
.stage-utility-cluster > .stage-thanks-login-v4,
.stage-utility-cluster > .stage-thanks-owner-v4 {
    order: 1;
}

.stage-utility-cluster > .stage-info-hover {
    order: 2;
}

.stage-utility-cluster > .stage-expand {
    order: 3;
}

.stage-thanks-form-v4 {
    display: inline-flex;
}

.stage-thanks-button-v4 {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    border-radius: 11px;
    background: linear-gradient(135deg, #ff9a52 0%, #ff4f9a 50%, #8c5cff 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(255, 79, 154, .30) !important;
    cursor: pointer;
}

.stage-thanks-button-v4:hover,
.stage-thanks-button-v4:focus-visible {
    color: #fff !important;
    filter: saturate(1.12) brightness(1.07);
    transform: translateY(-1px);
}

.stage-thanks-button-v4.is-thanked,
.stage-thanks-button-v4:disabled,
.stage-thanks-owner-v4 {
    opacity: .62;
    cursor: not-allowed;
    filter: grayscale(.16);
}

.stage-thanks-button-v4 .icon {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.stage-thanks-count-v4 {
    position: absolute;
    top: -7px;
    right: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: #151827;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

/* Dosya bilgileri yatay kaydırmaz; satır dolunca aşağı kayar. */
.detail-file-strip {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    overflow: visible !important;
}

.detail-file-strip dl {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
    white-space: normal !important;
    scrollbar-width: none !important;
}

.detail-file-strip dl::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.detail-file-strip dl > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: center !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    gap: 2px !important;
    padding: 7px 9px !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 8px !important;
    background: var(--surface-2) !important;
    white-space: normal !important;
}

.detail-file-strip dt,
.detail-file-strip dd {
    min-width: 0 !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

@media (max-width: 680px) {
    .stage-utility-cluster {
        right: 10px !important;
        bottom: 10px !important;
        gap: 6px !important;
    }

    .stage-thanks-button-v4 {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .detail-file-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .detail-file-strip h2 {
        justify-self: start;
    }

    .detail-file-strip dl {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 420px) {
    .detail-file-strip dl {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
