/* Investment Insights Widget Styles */

.insights-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Daily Brief */
.insights-brief {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.brief-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.brief-header h4 {
    margin: 0;
    color: #00d4ff;
    font-size: 18px;
    font-weight: 600;
}

.brief-date {
    color: #999;
    font-size: 14px;
}

.brief-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.brief-stat {
    text-align: center;
}

.brief-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 5px;
}

.brief-stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabs */
.insights-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.5) rgba(255, 255, 255, 0.1);
}

.insights-tabs::-webkit-scrollbar {
    height: 6px;
}

.insights-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.insights-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

.insights-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.8);
}

.insights-tab {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    color: #a0aec0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.insights-tab:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

.insights-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Content */
.insights-content {
    min-height: 400px;
}

.insights-list {
    display: grid;
    gap: 15px;
}

/* Insight Cards */
.insight-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.insight-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.insight-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-badge.high,
.insight-badge.critical {
    background: rgba(255, 51, 51, 0.2);
    color: #ff3333;
    border: 1px solid #ff3333;
}

.insight-badge.medium,
.insight-badge.moderate {
    background: rgba(255, 184, 0, 0.2);
    color: #ffb800;
    border: 1px solid #ffb800;
}

.insight-badge.low,
.insight-badge.fair {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.insight-badge.excellent,
.insight-badge.good {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.insight-type {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.insight-manager {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.insight-description {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 12px;
    line-height: 1.5;
}

.insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-aum {
    font-size: 13px;
    color: #00d4ff;
    font-weight: 600;
}

/* Risk Specific */
.risk-percentage {
    font-size: 20px;
    font-weight: 700;
    color: #ff3333;
}

.risk-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.risk-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffb800, #ff3333);
    transition: width 0.5s ease;
}

/* Hidden Gems Specific */
.gem-badge {
    font-size: 24px;
}

.gem-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gem-metric {
    text-align: center;
}

.gem-metric-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.gem-metric-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #00d4ff;
}

/* Smart Money Specific */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.size-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.size-badge.mega {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.size-badge.large {
    background: rgba(124, 58, 237, 0.2);
    color: #7c3aed;
    border: 1px solid #7c3aed;
}

.size-badge.mid {
    background: rgba(255, 184, 0, 0.2);
    color: #ffb800;
    border: 1px solid #ffb800;
}

.smart-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.smart-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
}

.smart-metric-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.smart-metric-value {
    font-size: 16px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 4px;
}

.smart-metric-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.activity-indicator {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.activity-indicator.active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.activity-indicator.moderate {
    background: rgba(255, 184, 0, 0.2);
    color: #ffb800;
    border: 1px solid #ffb800;
}

/* Empty State */
.insights-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .insights-tabs {
        gap: 6px;
        margin-bottom: 15px;
    }

    .insights-tab {
        font-size: 11px;
        padding: 8px 12px;
    }

    .brief-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .brief-stat-value {
        font-size: 20px;
    }

    .gem-metrics,
    .smart-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .insight-card {
        padding: 15px;
    }

    .insight-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Tablet responsive */
@media (max-width: 992px) and (min-width: 769px) {
    .insights-tab {
        padding: 10px 14px;
        font-size: 12px;
    }

    .brief-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}
