/* ==========================================================================
   iddaa.com - Tam Mobil Uyumluluk Stilleri (Mobile Responsive Stylesheet)
   ========================================================================== */

/* 1. Global Viewport & Horizontal Scroll Kilidi */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
    background-color: #edf1f3 !important;
    -webkit-text-size-adjust: 100%;
}

#__next, main, .__className_11d237 {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
    background-color: #edf1f3 !important;
}

div[class*="bg-primary-600"],
div[class*="bg-primary"] {
    max-width: 100vw !important;
    width: 100% !important;
}

/* Masaüstünde container genişliğini koru */
@media (min-width: 992px) {
    .mx-auto {
        max-width: 1200px !important;
    }
}

/* Mobilde container %100 genişlik alsın */
@media (max-width: 991px) {
    div[class*="max-w-screen"],
    .mx-auto {
        max-width: 100% !important;
    }
}

footer, footer * {
    max-width: 100% !important;
    word-break: break-word !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. HEADER MOBİL UYUMLULUĞU (<= 991px) */
@media (max-width: 991px) {
    header .mx-auto {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Masaüstü giriş formunu mobilde gizle */
    header form {
        display: none !important;
    }

    /* Mobilde logo boyutu */
    header a[data-comp-name="header-logo"] img {
        height: 22px !important;
        width: auto !important;
        max-width: 120px !important;
    }

    /* Mobil Giriş Yap & Üye Ol butonları */
    .mobile-header-actions {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .mobile-header-btn-login {
        height: 32px;
        padding: 0 14px;
        border-radius: 4px;
        background: #ece430;
        color: #111;
        font-size: 12px;
        font-weight: 700;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .mobile-header-btn-register {
        height: 32px;
        padding: 0 14px;
        border-radius: 4px;
        background: #ffffff;
        color: #111;
        font-size: 12px;
        font-weight: 700;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
}

@media (min-width: 992px) {
    .mobile-header-actions {
        display: none !important;
    }
}

/* 3. İKİNCİ MENÜ & BÜLTEN KATEGORİLERİ MOBİL KAYDIRMA */
@media (max-width: 991px) {
    .m_mmw__8JEc9 {
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        display: flex !important;
        gap: 18px !important;
        padding: 0 12px !important;
        align-items: center !important;
    }
    .m_mmw__8JEc9::-webkit-scrollbar {
        display: none !important;
    }

    .m_bmc__SB2_D {
        overflow: hidden !important;
        max-width: 100vw !important;
    }

    .m_bmw__LeMq0 {
        overflow-x: auto !important;
        max-width: 100vw !important;
        padding: 0 10px !important;
        scrollbar-width: none !important;
    }
    .m_bmw__LeMq0::-webkit-scrollbar {
        display: none !important;
    }

    .m_bliw__tNLwN {
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        display: flex !important;
    }
    .m_bliw__tNLwN::-webkit-scrollbar {
        display: none !important;
    }
}

/* 4. HERO BANNER / SLIDER GENEL & MASAÜSTÜ (Arka planda beyaz boşluk kalmasını önler) */
.style_sliderWrapper__rzKcP {
    position: relative !important;
    width: 100% !important;
    height: 345px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background-color: #1a2226 !important;
}

.style_sliderWrapper__rzKcP .slick-slider,
.style_sliderWrapper__rzKcP .slick-list,
.style_sliderWrapper__rzKcP .slick-track {
    width: 100% !important;
    height: 100% !important;
}

.style_sliderWrapper__rzKcP .slick-slide {
    width: 100% !important;
    height: 100% !important;
    background-color: #1a2226 !important;
}

.style_sliderWrapper__rzKcP .slick-slide > div,
.style_sliderWrapper__rzKcP .slick-slide > div > div {
    width: 100% !important;
    height: 100% !important;
}

.style_sliderWrapper__rzKcP .slick-slide a[class*="absolute top-0"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.style_sliderWrapper__rzKcP .slick-slide a[class*="absolute top-0"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 4. HERO BANNER / SLIDER MOBİL */
@media (max-width: 991px) {
    /* 75% kolonunu mobilde %100 yap */
    div[class*="basis-[75%]"],
    div[class*="max-w-[75%]"] {
        max-width: 100% !important;
        flex: 1 1 100% !important;
        basis: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .style_sliderWrapper__rzKcP {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .slick-slider, .slick-list {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .slick-slide {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .slick-slide > div > div {
        height: 240px !important;
    }

    .slick-slide a[class*="absolute top-0"] {
        width: 100% !important;
        height: 240px !important;
    }

    .slick-slide a[class*="absolute top-0"] img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #hero-live-teams {
        font-size: 17px !important;
        line-height: 22px !important;
    }

    #hero-live-score {
        font-size: 18px !important;
    }

    #hero-live-minute {
        font-size: 15px !important;
    }

    a[href*="CANLI OYNA"], a:has(> text("CANLI OYNA")) {
        height: 38px !important;
        min-width: 140px !important;
        font-size: 15px !important;
        margin-top: 10px !important;
    }
}

/* 5. POPÜLER BAHİSLER VE CANLI KARTLARI */
@media (max-width: 991px) {
    /* Yatay kart containerları */
    .mt-2\.5.flex.gap-2\.5,
    div[class*="flex gap-2.5"] {
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 10px !important;
    }
    div[class*="flex gap-2.5"]::-webkit-scrollbar {
        display: none !important;
    }

    div[class*="w-[265px]"],
    div[class*="w-[268px]"] {
        flex-shrink: 0 !important;
        width: 260px !important;
    }
}

/* 6. GİRİŞ MODAL VE COMMON-DIALOG MOBİL */
@media (max-width: 576px) {
    #common-dialog {
        padding: 10px !important;
    }

    #login-modal-box {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 8px !important;
        padding-top: 12px !important;
    }

    #login-modal-box > div {
        padding: 14px 16px 20px !important;
    }

    #login-modal-box h4 {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }

    #login-modal-box input {
        height: 48px !important;
        font-size: 14px !important;
    }

    #close-dialog-btn {
        right: 15px !important;
        top: 15px !important;
    }
}

/* 7. ÜYE OL SAYFASI (uye-ol.php) MOBİL */
@media (max-width: 991px) {
    /* Sağ sütundaki görsel ve avantaj kutularını gizle */
    div.flex.w-\[433px\],
    div[class*="w-[433px]"] {
        display: none !important;
    }

    /* Ana beyaz kart */
    .my-5.flex.min-h-\[1055px\],
    div[class*="min-h-[1055px]"] {
        padding: 16px 14px 28px !important;
        min-height: auto !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    /* Stepper adımları */
    div[class*="h-[72px]"][class*="rounded-[51px]"] {
        width: 100% !important;
        height: auto !important;
        padding: 10px 8px !important;
        justify-content: space-around !important;
    }

    div[class*="w-[95px]"][class*="flex-col"] {
        width: auto !important;
        height: auto !important;
    }

    div[class*="h-0.5"][class*="w-[30px]"] {
        width: 14px !important;
        margin-left: 2px !important;
        margin-right: 2px !important;
        margin-bottom: 0 !important;
    }

    /* Form elemanları */
    #register-form {
        padding: 0 !important;
        width: 100% !important;
    }

    #register-form div[class*="sm:w-[523px]"],
    #register-form div[class*="w-[523px]"] {
        width: 100% !important;
    }

    /* Ad ve Soyad yan yana ise mobilde alt alta */
    div[class*="grid-cols-2"] {
        grid-template-columns: 1fr !important;
    }
}

/* 8. AKTİVASYON (sms.php) & ŞİFREMİ UNUTTUM MOBİL */
@media (max-width: 576px) {
    .act-wrap {
        padding: 24px 16px 36px !important;
    }

    .act-desc {
        font-size: 14px !important;
        line-height: 20px !important;
        margin-bottom: 22px !important;
    }

    #input-smsCode {
        height: 52px !important;
        font-size: 18px !important;
    }

    #btn-sms-submit {
        height: 48px !important;
        font-size: 16px !important;
        margin-top: 22px !important;
    }
}

/* 9. DOĞRULAMA YÜKLEME OVERLAY MOBİL */
@media (max-width: 480px) {
    .verify-modal {
        width: calc(100% - 32px) !important;
        max-width: 340px !important;
        padding: 28px 20px 24px !important;
        border-radius: 14px !important;
    }

    .verify-spinner-wrap {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 18px !important;
    }

    .verify-title {
        font-size: 17.5px !important;
    }

    .verify-subtitle {
        font-size: 13px !important;
        line-height: 18px !important;
        margin-bottom: 14px !important;
    }
}
