/* Market Data Section Styles */
.market-data-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.market-section-title {
    color: #ffae11;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.market-scroll-container {
    margin-bottom: 50px;
}

.market-scroll-container:last-child {
    margin-bottom: 0;
}

.market-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px #ffae11;
    border-color: #ffae11;
}

.market-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 50%;
}

.crypto-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.crypto-name {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffae11, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #ffffff;
    text-transform: uppercase;
}

.market-card h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.market-card .price {
    color: #ffae11;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.market-card .change {
    font-size: 14px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.market-card .change.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.market-card .change.negative {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.market-card .change.neutral {
    color: #888;
    background: rgba(136, 136, 136, 0.1);
}

.market-card .market-cap {
    color: #888;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    display: block;
}

/* Swiper Customization */
.crypto-swiper,
.forex-swiper {
    padding: 20px 0;
    overflow: visible;
}

.crypto-swiper .swiper-slide,
.forex-swiper .swiper-slide {
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .market-section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .market-card {
        padding: 15px;
        height: 130px;
    }
    
    .market-card h4 {
        font-size: 14px;
    }
    
    .market-card .price {
        font-size: 16px;
    }
    
    .market-card .change {
        font-size: 12px;
    }
    
    .market-scroll-container {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .market-card {
        padding: 12px;
        height: 120px;
    }
    
    .market-card img {
        width: 30px;
        height: 30px;
        margin-bottom: 8px;
    }
    
    .market-card h4 {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .market-card .price {
        font-size: 14px;
    }
    
    .market-card .change {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* Animation for market data updates */
@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.market-card .price.updated {
    animation: priceUpdate 0.6s ease-in-out;
}

/* Loading state */
.market-card.loading {
    opacity: 0.7;
}

.market-card.loading .price::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}
