/* static/css/trends.css - Refactored for Bootstrap 5 */

/* ========================================
   BUY/SELL VOLUME CHART
   ======================================== */
.volume-chart-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

.volume-chart-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.volume-bar {
    display: flex;
    height: 28px;
    width: 100%;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    background-color: var(--border-color);
}

.buy-segment,
.sell-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.4s ease-in-out;
}

.buy-segment {
    background-color: #4ade80;
}

.sell-segment {
    background-color: #f87171;
}

.percentage-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.volume-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.volume-label-item .value {
    font-size: 1.25rem;
    font-weight: 600;
}

.volume-label-item .label {
    font-size: 0.8rem;
    color: var(--text-muted-color);
}

.volume-label-item.sells {
    text-align: right;
}

/* ========================================
   DEEP DIVE HEADER
   ======================================== */
.deep-dive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.deep-dive-header .section-title {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.deep-dive-header .form-select {
    max-width: 280px;
    flex-grow: 1;
}

/* ========================================
   SIGNIFICANT TRADES
   ======================================== */
.significant-trades-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    height: 300px;
    overflow-y: auto;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.trade-item:last-child {
    border-bottom: none;
}

.trade-item:hover {
    background-color: rgba(88, 166, 255, 0.1);
}

.trade-value {
    font-weight: 500;
    white-space: nowrap;
    margin-left: 1rem;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 767.98px) {
    .volume-chart-card {
        padding: 1rem;
    }

    .volume-chart-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .volume-bar {
        height: 24px;
    }

    .percentage-label {
        font-size: 0.75rem;
    }

    .volume-label-item .value {
        font-size: 1.1rem;
    }

    .volume-label-item .label {
        font-size: 0.75rem;
    }

    .significant-trades-card {
        height: 250px;
        padding: 0.25rem;
    }

    .trade-item {
        padding: 0.5rem;
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .trade-value {
        margin-left: 0;
    }

    .deep-dive-header {
        flex-direction: column;
        align-items: stretch;
    }

    .deep-dive-header .form-select {
        max-width: 100%;
    }
}