/**
 * MP Logo Yönetimi - Front Office Responsive & Auto-Scaling CSS
 */

/* 1. HEADER MASAÜSTÜ LOGO */
.mp-header-gida .mp-gida-logo-img,
.mp-header-moda .mp-header-logo-img,
.mp-gida-col-logo img,
.mp-header-logo-link img,
.header .logo,
#header .logo,
#_desktop_logo img,
#_desktop_logo a img,
.header-logo img,
.site-logo img,
.navbar-brand img,
.mp-custom-header-logo {
    max-width: var(--mp-logo-hdr-w, 260px) !important;
    max-height: var(--mp-logo-hdr-h, 65px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast;
    transition: opacity 0.2s ease;
}

/* 2. HEADER MOBİL LOGO */
@media (max-width: 991px) {
    .mp-gida-mobile-logo-img,
    .mp-mobile-logo-img,
    .mp-gida-mobile-logo img,
    .mp-gida-mobile-logo a img,
    #_mobile_logo img,
    #_mobile_logo a img {
        max-width: var(--mp-logo-hdr-mob-w, 180px) !important;
        max-height: var(--mp-logo-hdr-mob-h, 48px) !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* 3. FOOTER LOGO */
.mp-gida-logo-card {
    max-width: calc(var(--mp-logo-ftr-w, 240px) + 36px) !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.mp-footer .mp-gida-logo-img,
.mp-gida-logo-card img,
.mp-footer-brand-col img,
.mp-footer-logo-img,
.mp-custom-footer-logo {
    max-width: var(--mp-logo-ftr-w, 240px) !important;
    max-height: var(--mp-logo-ftr-h, 70px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* 4. YÜKSEK ÇÖZÜNÜRLÜK (RETINA / HiDPI EKRANLAR İÇİN NETLİK) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mp-gida-logo-img,
    .mp-gida-mobile-logo-img,
    .mp-custom-header-logo,
    .mp-custom-footer-logo {
        image-rendering: auto;
    }
}
