/* Trading Visuals and Chart Styles */

/* Trading Chart Container */
.trading-chart-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 450px;
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.08) 0%, rgba(229, 57, 53, 0.05) 100%);
    border-radius: 16px;
    border: 2px solid rgba(0, 51, 153, 0.3);
    overflow: hidden;
    margin: 50px auto;
    box-shadow: 0 20px 60px rgba(0, 51, 153, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.trading-chart-container:hover {
    border-color: rgba(229, 57, 53, 0.4);
    box-shadow: 0 25px 75px rgba(0, 51, 153, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* SVG Chart Styles */
.trading-chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(0, 51, 153, 0.3));
}

.chart-area {
    fill: url(#areaGradient);
    opacity: 0.4;
    filter: drop-shadow(0 2px 4px rgba(0, 51, 153, 0.1));
}

.chart-grid {
    stroke: rgba(0, 51, 153, 0.1);
    stroke-width: 1;
}

.chart-label {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    fill: var(--text-light);
}

/* Animated Chart Line */
.chart-line-animated {
    animation: drawLine 3s ease-out forwards;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* Hero Section Chart Enhancement */
.hero-content .trading-chart-container {
    margin-top: 60px;
    margin-bottom: 0;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Trading Pattern Background */
.trading-pattern-bg {
    position: relative;
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(0, 51, 153, 0.03) 0px,
            rgba(0, 51, 153, 0.03) 1px,
            transparent 1px,
            transparent 20px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(0, 51, 153, 0.03) 0px,
            rgba(0, 51, 153, 0.03) 1px,
            transparent 1px,
            transparent 20px
        );
}

/* Candlestick Chart */
.candlestick-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 8px;
    padding: 20px;
    background: rgba(0, 51, 153, 0.02);
    border-radius: 8px;
    margin: 20px 0;
}

.candlestick {
    position: relative;
    width: 30px;
    background: linear-gradient(to bottom, #E53935, #E53935);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.candlestick.bullish {
    background: linear-gradient(to bottom, #28a745, #28a745);
}

.candlestick:hover {
    transform: scaleY(1.1);
    box-shadow: 0 0 10px rgba(0, 51, 153, 0.3);
}

.candlestick-wick {
    position: absolute;
    width: 1px;
    background: currentColor;
    left: 50%;
    transform: translateX(-50%);
}

/* Market Data Ticker */
.market-ticker {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(0, 51, 153, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    margin: 15px 0;
    overflow-x: auto;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.ticker-symbol {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 14px;
}

.ticker-price {
    font-size: 12px;
    color: var(--text-light);
}

.ticker-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

.ticker-change.positive {
    color: #28a745;
}

.ticker-change.negative {
    color: #E53935;
}

/* Trading Indicator Badges */
.trading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 51, 153, 0.1);
    border: 1px solid rgba(0, 51, 153, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
}

.trading-indicator.bullish {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.trading-indicator.bearish {
    background: rgba(229, 57, 53, 0.1);
    border-color: rgba(229, 57, 53, 0.3);
    color: #E53935;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Trading Tool Icon Styles */
.trading-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.1), rgba(229, 57, 53, 0.05));
    border: 2px solid rgba(0, 51, 153, 0.2);
    border-radius: 12px;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.trading-tool-icon:hover {
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.15), rgba(229, 57, 53, 0.1));
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* Chart Animation */
.chart-animate {
    animation: chartFadeIn 0.8s ease-out;
}

@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .trading-chart-container {
        height: 200px;
    }

    .candlestick-chart {
        height: 150px;
    }

    .candlestick {
        width: 20px;
    }

    .market-ticker {
        gap: 10px;
    }

    .ticker-item {
        min-width: 80px;
    }
}

