/* MakroLight frontend fixes v2 - 2026-07-06
   - Responsive footer Instagram card
   - Prevent inherited fixed heights/max-heights from clipping the card
   - AOS/hash target first-paint visibility safety
*/

/* High-specificity reset: the original footer CSS can apply fixed height/max-height
   rules to anchors. These resets keep the Instagram card content-sized. */
footer .ml-instagram-card-fix,
footer a.ml-instagram-card-fix {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    align-content: center !important;
    gap: 14px !important;

    width: 100% !important;
    max-width: 390px !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 86px !important;
    max-height: none !important;

    margin: 20px 0 0 !important;
    padding: 14px 16px !important;

    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;

    border: 1px solid rgba(255, 196, 0, 0.30) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.10), rgba(255, 255, 255, 0.025)) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;

    text-decoration: none !important;
    line-height: normal !important;
    transform: none;
}

footer .ml-instagram-card-fix:hover {
    border-color: rgba(255, 196, 0, 0.58) !important;
    transform: translateY(-2px) !important;
}

footer .ml-instagram-card-fix__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;

    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;

    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #ffc400 !important;
    color: #111111 !important;
    font-size: 25px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

footer .ml-instagram-card-fix__icon i {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: 1 !important;
}

footer .ml-instagram-card-fix__content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 0 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

footer .ml-instagram-card-fix__label,
footer .ml-instagram-card-fix__username,
footer .ml-instagram-card-fix__text {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    transform: none !important;
}

footer .ml-instagram-card-fix__label {
    display: block !important;
    margin: 0 0 4px !important;
    color: #ffc400 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    overflow: visible !important;
}

footer .ml-instagram-card-fix__username {
    display: block !important;
    margin: 0 0 5px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

footer .ml-instagram-card-fix__text {
    display: block !important;
    margin: 0 !important;
    color: #a8a8a8 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    overflow: visible !important;
}

/* Tablet: use the complete available column width. */
@media (max-width: 991.98px) {
    footer .ml-instagram-card-fix,
    footer a.ml-instagram-card-fix {
        max-width: 100% !important;
        grid-template-columns: 52px minmax(0, 1fr) !important;
        min-height: 80px !important;
        gap: 12px !important;
        padding: 13px 14px !important;
    }

    footer .ml-instagram-card-fix__icon {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        font-size: 23px !important;
    }
}

/* Phone: compact but still two-column; text remains readable and wraps safely. */
@media (max-width: 575.98px) {
    footer .ml-instagram-card-fix,
    footer a.ml-instagram-card-fix {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        gap: 11px !important;
        min-height: 74px !important;
        margin-top: 16px !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }

    footer .ml-instagram-card-fix__icon {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        max-width: 46px !important;
        max-height: 46px !important;
        font-size: 21px !important;
    }

    footer .ml-instagram-card-fix__label {
        font-size: 9px !important;
        letter-spacing: 0.12em !important;
    }

    footer .ml-instagram-card-fix__username {
        font-size: 14px !important;
    }

    footer .ml-instagram-card-fix__text {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
}

/* Very narrow screens: stack the icon and content to avoid squeezing the username. */
@media (max-width: 359.98px) {
    footer .ml-instagram-card-fix,
    footer a.ml-instagram-card-fix {
        grid-template-columns: 1fr !important;
        justify-items: start !important;
        gap: 10px !important;
    }
}

/* AOS/hash first-paint visibility fix. */
[data-aos].ml-force-visible,
[data-aos].ml-hash-target-visible,
.ml-hash-target-visible [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
    footer .ml-instagram-card-fix,
    [data-aos] {
        transition: none !important;
        animation: none !important;
    }
}


/* Stable in-page navigation: browser anchor jumps respect the fixed header height. */
#home,
#urunler,
#kategoriler,
#urun-arama,
#uygulamalar,
#referanslar,
#hakkimizda,
#iletisim {
    scroll-margin-top: 88px;
}
