/*
============================================================
FİYATOMATİK
UI-A6.4-E8B
EXACT MINIMAL DASHBOARD OVERRIDE

Purpose:
- remove runtime E1 hero
- remove runtime E1 trust strip
- preserve E6 engine cards/icons
- compact footer
- desktop-first clean presentation
============================================================
*/


/* ========================================================
   1. REMOVE LARGE RUNTIME HERO — EXACT SELECTOR
   ======================================================== */

html body .ft-e1-hero {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}


/* ========================================================
   2. REMOVE RUNTIME TRUST STRIP — EXACT SELECTOR
   ======================================================== */

html body .ft-e1-trust {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}


/* ========================================================
   3. REMOVE EMPTY MAIN GAP
   Static <main> is currently empty.
   ======================================================== */

html body main {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ========================================================
   4. ENGINE AREA
   Keep the actual working 10-engine dashboard.
   ======================================================== */

html body .ft-engine-section {
    margin-top: 0 !important;
    padding-top: 28px !important;
    padding-bottom: 34px !important;
}

html body .ft-engine-section > .ft-shell {
    margin-top: 0 !important;
}

html body .ft-engine-grid {
    margin-bottom: 0 !important;
}


/* ========================================================
   5. COMPACT FOOTER
   Remove the oversized presentation.
   ======================================================== */

html body .ft-footer {
    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
    border-top: 1px solid #e8edf3 !important;

    box-shadow: none !important;
}


/* Main footer row */

html body .ft-footer .ft-footer-grid {
    min-height: 0 !important;

    display: grid !important;
    grid-template-columns:
        minmax(240px, 1.35fr)
        repeat(3, minmax(150px, 0.75fr)) !important;

    align-items: center !important;

    gap: 28px !important;

    padding-top: 22px !important;
    padding-bottom: 22px !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* Brand */

html body .ft-footer .ft-footer-brand {
    margin: 0 !important;
    padding: 0 !important;
}

html body .ft-footer .ft-brand-footer {
    margin: 0 !important;
}

html body .ft-footer .ft-brand-mark {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;

    border-radius: 12px !important;
}

html body .ft-footer .ft-brand-copy strong {
    font-size: 16px !important;
    line-height: 1.15 !important;
}

html body .ft-footer .ft-brand-copy small {
    margin-top: 2px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}


/*
The explanatory paragraph duplicates information already
shown elsewhere. Hide it to keep footer compact.
*/

html body .ft-footer .ft-footer-brand > p {
    display: none !important;
}


/* Footer value columns */

html body .ft-footer .ft-footer-value {
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .ft-footer .ft-footer-value strong {
    display: block !important;

    margin: 0 0 4px !important;

    font-size: 12px !important;
    line-height: 1.25 !important;

    color: #111827 !important;
}

html body .ft-footer .ft-footer-value span {
    display: block !important;

    margin: 0 !important;

    font-size: 11px !important;
    line-height: 1.4 !important;

    color: #7a8493 !important;
}


/* Bottom footer */

html body .ft-footer .ft-footer-bottom {
    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;

    padding-top: 9px !important;
    padding-bottom: 9px !important;

    border-top: 1px solid #eef1f5 !important;

    background: #ffffff !important;
}

html body .ft-footer .ft-footer-bottom .ft-shell {
    min-height: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

html body .ft-footer .ft-footer-bottom span,
html body .ft-footer .ft-footer-bottom strong {
    margin: 0 !important;

    font-size: 10px !important;
    line-height: 1.3 !important;

    color: #7b8492 !important;
}


/* ========================================================
   6. DESKTOP CLEANUP
   ======================================================== */

@media (min-width: 1000px) {

    html body .ft-engine-section {
        padding-top: 26px !important;
        padding-bottom: 30px !important;
    }

}


/* ========================================================
   7. SAFE SMALL-SCREEN FALLBACK
   ======================================================== */

@media (max-width: 900px) {

    html body .ft-footer .ft-footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 18px !important;

        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

}

@media (max-width: 620px) {

    html body .ft-footer .ft-footer-grid {
        grid-template-columns: 1fr !important;
    }

    html body .ft-footer .ft-footer-bottom .ft-shell {
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

}
