/*
 * SunucuRadar mobil footer ve canlı destek yoğunluk düzeni.
 *
 * Yalnız telefon genişliğinde ve ana sayfada etkindir.
 * Masaüstü footer ve sohbet paneli korunur.
 */

@media (max-width: 720px) {
    body:has(.home-hero) .sr-footer {
        margin-top: 12px;
        background:
            radial-gradient(
                circle at 18% 0%,
                rgba(34, 197, 94, .10),
                transparent 35%
            ),
            rgba(2, 6, 23, .96);
    }

    body:has(.home-hero) .sr-footer-inner {
        width: calc(100% - 24px);
        padding: 18px 0 14px;
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 14px 10px;
    }

    body:has(.home-hero) .sr-footer-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding-bottom: 12px;
        border-bottom:
            1px solid rgba(148, 163, 184, .12);
    }

    body:has(.home-hero) .sr-footer-logo {
        margin: 0;
        gap: 8px;
        font-size: 17px;
        white-space: nowrap;
    }

    body:has(.home-hero) .sr-footer-mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 13px;
        box-shadow:
            0 0 22px rgba(34, 197, 94, .24);
    }

    body:has(.home-hero) .sr-footer-brand > p {
        margin: 0;
        overflow: hidden;
        color: #aeb7c5;
        font-size: 10px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body:has(.home-hero) .sr-footer-disclaimer {
        display: none;
    }

    body:has(.home-hero) .sr-footer-col {
        min-width: 0;
    }

    body:has(.home-hero) .sr-footer-col h3 {
        margin: 0 0 7px;
        color: #f8fafc;
        font-size: 12px;
        line-height: 1.2;
    }

    body:has(.home-hero) .sr-footer-col a {
        margin: 0 0 6px;
        overflow: hidden;
        color: #86efac;
        font-size: 10px;
        font-weight: 750;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:has(.home-hero) .sr-footer-bottom {
        width: calc(100% - 24px);
        min-height: 0;
        padding: 10px 0 13px;
        display: block;
        color: #7f8a9a;
        font-size: 9px;
        line-height: 1.3;
        text-align: center;
    }

    body:has(.home-hero) .sr-footer-bottom span {
        display: block;
    }

    body:has(.home-hero) .sr-footer-bottom span:last-child {
        display: none;
    }

    body:has(.home-hero) .sr-live-chat {
        right: 12px !important;
        bottom: 12px !important;
    }

    body:has(.home-hero) .sr-live-chat-button {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 !important;
        display: grid !important;
        place-items: center !important;
        overflow: visible !important;
        border-radius: 17px !important;
    }

    body:has(.home-hero) .sr-live-chat-button::before {
        width: 34px !important;
        height: 34px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
    }

    body:has(.home-hero) .sr-live-chat-button > span:not(.sr-live-dot) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
    }

    body:has(.home-hero) .sr-live-chat-button .sr-live-dot {
        position: absolute !important;
        top: 5px !important;
        right: 5px !important;
        width: 9px !important;
        height: 9px !important;
        border:
            2px solid rgba(2, 6, 23, .92) !important;
    }

    body:has(.home-hero)
    .sr-live-chat[data-open="1"]
    .sr-live-chat-button {
        opacity: 0;
        pointer-events: none;
    }

    body:has(.home-hero) .sr-live-chat-panel {
        right: 0 !important;
        bottom: 0 !important;
        width: calc(100vw - 24px) !important;
        height:
            min(620px, calc(100vh - 86px)) !important;
        max-height: calc(100vh - 86px) !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 420px) {
    body:has(.home-hero) .sr-footer-inner {
        width: calc(100% - 18px);
        gap: 12px 7px;
    }

    body:has(.home-hero) .sr-footer-logo {
        font-size: 15px;
    }

    body:has(.home-hero) .sr-footer-brand > p {
        font-size: 9px;
    }

    body:has(.home-hero) .sr-footer-col h3 {
        font-size: 11px;
    }

    body:has(.home-hero) .sr-footer-col a {
        font-size: 9px;
    }

    body:has(.home-hero) .sr-footer-bottom {
        width: calc(100% - 18px);
    }

    body:has(.home-hero) .sr-live-chat-button {
        width: 50px !important;
        min-width: 50px !important;
        height: 50px !important;
        min-height: 50px !important;
        border-radius: 16px !important;
    }

    body:has(.home-hero) .sr-live-chat-button::before {
        width: 31px !important;
        height: 31px !important;
        border-radius: 10px !important;
    }
}

/* MOBILE_COMPACT_FOOTER_START */
/*
 * Mobil kompakt footer:
 * İçerik korunur, gereksiz dikey boşluk azaltılır.
 */
@media (max-width: 760px) {
    body:has(.home-hero) .sr-footer,
    body:has(.home-hero) footer {
        margin-top: 10px !important;
        padding-top: 16px !important;
        padding-bottom: 8px !important;
    }

    body:has(.home-hero) .sr-footer-inner,
    body:has(.home-hero) .footer-inner {
        width: calc(100% - 20px) !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    body:has(.home-hero) .sr-footer-brand,
    body:has(.home-hero) .footer-brand {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 9px !important;
        margin: 0 0 10px !important;
        padding: 0 0 10px !important;
    }

    body:has(.home-hero) .sr-footer-brand-logo,
    body:has(.home-hero) .footer-brand-logo,
    body:has(.home-hero) .sr-footer-mark {
        width: 43px !important;
        height: 43px !important;
        min-width: 43px !important;
        border-radius: 12px !important;
    }

    body:has(.home-hero) .sr-footer-logo {
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }

    body:has(.home-hero) .sr-footer-brand h2,
    body:has(.home-hero) .sr-footer-brand strong,
    body:has(.home-hero) .footer-brand h2,
    body:has(.home-hero) .footer-brand strong {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.05 !important;
    }

    body:has(.home-hero) .sr-footer-description,
    body:has(.home-hero) .footer-description,
    body:has(.home-hero) .sr-footer-brand p,
    body:has(.home-hero) .footer-brand p {
        display: -webkit-box !important;
        margin: 0 !important;
        overflow: hidden !important;
        color: #aeb7c6 !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body:has(.home-hero) .sr-footer-grid,
    body:has(.home-hero) .footer-grid,
    body:has(.home-hero) .sr-footer-links {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 10px 0 !important;
    }

    body:has(.home-hero) .sr-footer-column,
    body:has(.home-hero) .footer-column,
    body:has(.home-hero) .sr-footer-group {
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:has(.home-hero) .sr-footer-column h3,
    body:has(.home-hero) .footer-column h3,
    body:has(.home-hero) .sr-footer-group h3 {
        margin: 0 0 6px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
    }

    body:has(.home-hero) .sr-footer-column ul,
    body:has(.home-hero) .footer-column ul,
    body:has(.home-hero) .sr-footer-group ul {
        display: grid !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:has(.home-hero) .sr-footer-column a,
    body:has(.home-hero) .footer-column a,
    body:has(.home-hero) .sr-footer-group a {
        display: block !important;
        overflow: hidden !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body:has(.home-hero) .sr-footer-bottom,
    body:has(.home-hero) .footer-bottom,
    body:has(.home-hero) .sr-footer-copyright {
        margin-top: 8px !important;
        padding: 8px 0 2px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
}

@media (max-width: 420px) {
    body:has(.home-hero) .sr-footer,
    body:has(.home-hero) footer {
        padding-top: 13px !important;
    }

    body:has(.home-hero) .sr-footer-inner,
    body:has(.home-hero) .footer-inner {
        width: calc(100% - 16px) !important;
    }

    body:has(.home-hero) .sr-footer-grid,
    body:has(.home-hero) .footer-grid,
    body:has(.home-hero) .sr-footer-links {
        gap: 6px !important;
    }

    body:has(.home-hero) .sr-footer-column h3,
    body:has(.home-hero) .footer-column h3,
    body:has(.home-hero) .sr-footer-group h3 {
        font-size: 11px !important;
    }

    body:has(.home-hero) .sr-footer-column a,
    body:has(.home-hero) .footer-column a,
    body:has(.home-hero) .sr-footer-group a {
        font-size: 9px !important;
    }
}
/* MOBILE_COMPACT_FOOTER_END */
