/* ============================================================
   AIMON FOOTER - Variante 2C Compatto
   File: static/css/footer.css

   Layout: footer full-width sotto entrambe le sidebar
   Le sidebar si fermano sopra il footer tramite footer.js
   Bordo top sfumato bilaterale (opacità centro 80%)
   ============================================================ */

/* ============================================================
   1. FOOTER WRAPPER
   ============================================================ */

.aimon-footer {
    position: relative;
    clear: both;
    background: #ffffff;
    width: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 10;
}

/* ============================================================
   2. BORDO TOP SFUMATO BILATERALE
   ============================================================ */

.aimon-footer-topbar {
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(127, 119, 221, 0)    0%,
        rgba(127, 119, 221, 0.80) 50%,
        rgba(127, 119, 221, 0)    100%
    );
}

/* ============================================================
   3. CONTENITORE INTERNO
   ============================================================ */

.aimon-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 24px;
}

/* ============================================================
   4. BRAND INLINE (nella prima colonna)
   ============================================================ */

.aimon-footer-brand-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.aimon-footer-brand-icon {
    width: 22px;
    height: 22px;
    background: #7F77DD;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aimon-footer-brand-icon i {
    font-size: 13px;
    color: #ffffff;
}

.aimon-footer-brand-name {
    font-size: 13px;
    font-weight: 500;
    color: #3C3489;
}

/* ============================================================
   5. GRIGLIA 4 COLONNE
   ============================================================ */

.aimon-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 22px;
    margin-bottom: 14px;
}

.aimon-footer-col {
    min-width: 0;
}

.aimon-footer-desc {
    font-size: 11px;
    color: #5F5E5A;
    margin: 0;
    line-height: 1.5;
}

.aimon-footer-desc strong {
    color: #3C3489;
    font-weight: 500;
}

.aimon-footer-col-title {
    font-size: 10px;
    font-weight: 500;
    color: #3C3489;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aimon-footer-link {
    display: block;
    font-size: 12px;
    color: #5F5E5A;
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.aimon-footer-link:hover {
    color: #7F77DD;
    text-decoration: none;
}

/* ============================================================
   6. RIGA FINALE: copyright + disclaimer
   ============================================================ */

.aimon-footer-bottom {
    border-top: 1px solid rgba(127, 119, 221, 0.12);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.aimon-footer-copyright {
    font-size: 10px;
    color: #888780;
}

.aimon-footer-disclaimer {
    font-size: 10px;
    color: #888780;
    font-style: italic;
}

/* ============================================================
   7. RESPONSIVE
   ============================================================ */

/* Tablet: 2 colonne */
@media (max-width: 1200px) {
    .aimon-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .aimon-footer-col-about {
        grid-column: 1 / -1;
    }
}

/* Mobile: 1 colonna */
@media (max-width: 768px) {
    .aimon-footer-inner {
        padding: 16px 18px;
    }

    .aimon-footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .aimon-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* === AIMON-PATCH-BG-FINAL: background sfumato + glass UI consolidato === */
/* Consolidato il 20260616_173526 - sostituisce tutti i blocchi v9 -> v9.17 */

/* -------------------------------------------------------------
   1. BODY Â· sfumatura lineare verticale che scorre col contenuto
   ------------------------------------------------------------- */
html body {
    background-color: #FCFBFE !important;
    background-image:
        linear-gradient(180deg,
            rgba(139, 126, 227, 0.22) 0%,
            rgba(83, 74, 183, 0.30) 30%,
            rgba(139, 126, 227, 0.28) 60%,
            rgba(74, 222, 128, 0.18) 100%) !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    min-height: 100vh !important;
}

/* -------------------------------------------------------------
   2. BODY::before Â· aloni laterali fissi in viewport
   ------------------------------------------------------------- */
html body::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background-image:
        radial-gradient(ellipse 55% 80% at 0% 50%, rgba(139, 126, 227, 0.22), transparent 60%),
        radial-gradient(ellipse 55% 80% at 100% 50%, rgba(83, 74, 183, 0.20), transparent 60%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

/* -------------------------------------------------------------
   3. MAIN CONTENT Â· trasparente (sfumatura body filtra)
   ------------------------------------------------------------- */
html body .aimon-main-content {
    background-color: transparent !important;
    background: transparent !important;
    margin-left: 165px !important;
}
html body .aimon-main-content.has-right-sidebar {
    margin-right: 260px !important;
}

/* -------------------------------------------------------------
   4. SIDEBAR SX Â· glassmorphism + larghezza ridotta + fit-content
   ------------------------------------------------------------- */
html body .aimon-sidebar {
    width: 165px !important;
    height: fit-content !important;
    max-height: calc(100vh - 90px) !important;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border-right: 1px solid rgba(83, 74, 183, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 1px 0 4px rgba(83, 74, 183, 0.05) !important;
}

/* -------------------------------------------------------------
   5. SIDEBAR DX Â· glassmorphism + larghezza ridotta + fit-content
   ------------------------------------------------------------- */
html body .aimon-right-sidebar {
    width: 260px !important;
    height: fit-content !important;
    max-height: calc(100vh - 90px) !important;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border-left: 1px solid rgba(83, 74, 183, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: -1px 0 4px rgba(83, 74, 183, 0.05) !important;
}

/* -------------------------------------------------------------
   6. HEADER Â· glassmorphism leggero
   ------------------------------------------------------------- */
html body .aimon-header {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* -------------------------------------------------------------
   7. SECTION PRINCIPALI Â· glass al 40% + bordo viola
   ------------------------------------------------------------- */
html body .market-overview-section,
html body .regime-section,
html body .liquidity-section,
html body .top-assets-section {
    background: rgba(255, 255, 255, 0.40) !important;
    background-color: rgba(255, 255, 255, 0.40) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(83, 74, 183, 0.08) !important;
    border: 1px solid rgba(83, 74, 183, 0.25) !important;
    border-radius: 12px !important;
}

/* -------------------------------------------------------------
   8. CONTAINER INTERNI Â· ancora piu trasparenti
   ------------------------------------------------------------- */
html body .section-header-bar,
html body .regime-main-container {
    background: rgba(255, 255, 255, 0.35) !important;
    background-color: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(83, 74, 183, 0.15) !important;
}

/* -------------------------------------------------------------
   9. TOP ASSETS Â· grid wrapper trasparente
   ------------------------------------------------------------- */
html body .top-assets-grid,
html body .top-assets-section .top-assets-grid {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 992px) {
    html body .top-assets-grid { grid-template-columns: 1fr !important; }
}

/* -------------------------------------------------------------
   10. TOP ASSETS Â· pane (le 2 sub-card Stocks/Crypto)
   ------------------------------------------------------------- */
html body .top-asset-pane {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(83, 74, 183, 0.15) !important;
    box-shadow: 0 2px 8px rgba(83, 74, 183, 0.05) !important;
    border-radius: 14px !important;
    padding: 1rem 1.25rem !important;
    overflow: hidden;
}

html body .top-asset-pane-header {
    background: transparent !important;
    margin-bottom: 0.5rem;
    padding: 0;
    border: none;
}
html body .top-asset-pane-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--violet-deepest, #3C3489);
    margin: 0;
    display: flex;
    align-items: center;
}
html body .top-asset-pane-title .card-title-icon {
    width: 22px;
    height: 22px;
}
html body .top-asset-pane-body {
    background: transparent !important;
    padding: 0;
}

/* -------------------------------------------------------------
   11. TOP ASSETS Â· trasparenza forzata elementi interni
   (assets-table-header aveva linear-gradient grigio nascosto)
   ------------------------------------------------------------- */
html body .top-asset-pane .assets-table-header,
html body .top-asset-pane .assets-table-body,
html body .top-asset-pane .assets-header-row,
html body .top-asset-pane .assets-header-row-with-rank,
html body .top-asset-pane .aimon-card-header,
html body .top-asset-pane .aimon-card-body {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Decorazioni top-1/2/3 piu sottili sul background trasparente */
html body .top-asset-pane .assets-table-body .aimon-asset-item.top-1-row::before,
html body .top-asset-pane .assets-table-body .aimon-asset-item.top-2-row::before,
html body .top-asset-pane .assets-table-body .aimon-asset-item.top-3-row::before {
    opacity: 0.45 !important;
}

/* -------------------------------------------------------------
   12. TOP ASSETS Â· header bar e spaziatura
   ------------------------------------------------------------- */
html body .top-assets-header {
    margin-bottom: 1rem !important;
}
html body .top-assets-section {
    padding: 1rem 1.25rem !important;
    margin-bottom: 4rem !important;
    overflow: hidden;
}

/* -------------------------------------------------------------
   13. FOOTER Â· glass semi-trasparente
   ------------------------------------------------------------- */
html body .aimon-footer,
html body footer.aimon-footer,
html body footer {
    background: rgba(255, 255, 255, 0.40) !important;
    background-color: rgba(255, 255, 255, 0.40) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-top: 1px solid rgba(83, 74, 183, 0.20) !important;
    margin-top: 3rem !important;
}

/* === /AIMON-PATCH-BG-FINAL === */
