/* =============================================
   Insights Markets Widget — Frontend: Compact Widget
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Widget Container ---- */
.imw-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.08);
    max-width: 100%;
}

/* ---- Dark Theme ---- */
.imw-theme-dark {
    background: #131722;
    color: #e0e3ef;
}

/* ---- Light Theme ---- */
.imw-theme-light {
    background: #fff;
    color: #131722;
    border-color: rgba(0,0,0,0.1);
}

/* ---- Widget Header ---- */
.imw-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
}
.imw-theme-dark .imw-widget__header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.imw-theme-light .imw-widget__header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.imw-widget__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.imw-widget__see-more {
    font-size: 0.82rem;
    font-weight: 500;
    color: #2962ff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.imw-widget__see-more:hover { opacity: 0.75; }

/* ---- Widget Body ---- */
.imw-widget__body {
    position: relative;
}

.imw-tv-container {
    width: 100%;
}

/* ---- Widget Footer ---- */
.imw-widget__footer {
    display: flex;
    justify-content: center;
    padding: 12px 20px;
}
.imw-theme-dark .imw-widget__footer {
    border-top: 1px solid rgba(255,255,255,0.06);
}
.imw-theme-light .imw-widget__footer {
    border-top: 1px solid rgba(0,0,0,0.08);
}

.imw-widget__full-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2962ff;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(41,98,255,0.3);
    border-radius: 20px;
    transition: all 0.2s;
}
.imw-widget__full-link:hover {
    background: rgba(41,98,255,0.1);
    border-color: #2962ff;
}
