/* Market Page */
.market-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.subtitle {
    margin: 0.5rem 0 0 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

.asset-selector {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    background: #1e293b;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 250px;
}

/* Market Overview */
.market-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.price-card {
    background: #0f1629;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 2rem;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.asset-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.asset-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.asset-symbol {
    font-size: 0.875rem;
    color: #64748b;
    font-family: 'Courier New', monospace;
}

.price-main {
    text-align: right;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-change {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
}

.price-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.price-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.price-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
}

/* Indicators Grid */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.indicator-card {
    background: #0f1629;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.indicator-card:hover {
    transform: translateY(-2px);
    border-color: #6366f1;
}

.indicator-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.indicator-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

.indicator-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
}

.indicator-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.indicator-value.positive {
    color: #10b981;
}

.indicator-value.negative {
    color: #ef4444;
}

.indicator-value.overbought {
    color: #ef4444;
}

.indicator-value.oversold {
    color: #10b981;
}

.indicator-value.neutral {
    color: #f59e0b;
}

.indicator-status {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.indicator-status.overbought {
    color: #ef4444;
}

.indicator-status.oversold {
    color: #10b981;
}

/* Chart Section */
.chart-section {
    background: #0f1629;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.time-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    background: transparent;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-btn:hover {
    background: #1a1f3a;
    border-color: #6366f1;
}

.time-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.chart-container {
    height: 400px;
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .asset-selector {
        width: 100%;
    }
    
    .price-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .price-main {
        text-align: left;
    }
    
    .price-stats {
        grid-template-columns: 1fr;
    }
    
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
}
