/* Cryptocurrency Prices Section CSS - Card-based Design */

#crypto-live-prices {
    position: relative;
}

/* Card Styling */
#crypto-live-prices .crypto-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

#crypto-live-prices .crypto-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(13, 62, 126, 0.15);
}

.dark #crypto-live-prices .crypto-card {
    background: rgba(30, 41, 59, 0.95);
}

.dark #crypto-live-prices .crypto-card:hover {
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.25);
}

/* Mini Chart Styling */
#crypto-live-prices .mini-chart {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

#crypto-live-prices .crypto-card:hover .mini-chart {
    border-color: rgba(13, 62, 126, 0.2);
    box-shadow: 0 0 10px rgba(13, 62, 126, 0.1);
}

.dark #crypto-live-prices .mini-chart {
    border-color: rgba(71, 85, 105, 0.3);
    background: rgba(51, 65, 85, 0.5);
}

.dark #crypto-live-prices .crypto-card:hover .mini-chart {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Price Update Animation */
#crypto-live-prices .price-updated {
    animation: priceFlash 1s ease-in-out;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
}

@keyframes priceFlash {
    0% { 
        background-color: rgba(34, 197, 94, 0.2);
        transform: scale(1.05);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
    }
}

/* Button Styling */
#crypto-live-prices .crypto-buy-btn,
#crypto-live-prices .crypto-sell-btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

#crypto-live-prices .crypto-buy-btn::before,
#crypto-live-prices .crypto-sell-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#crypto-live-prices .crypto-buy-btn:hover::before,
#crypto-live-prices .crypto-sell-btn:hover::before {
    left: 100%;
}

#crypto-live-prices .crypto-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#crypto-live-prices .crypto-sell-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Action Buttons */
#crypto-live-prices .crypto-show-all-btn,
#crypto-live-prices .crypto-portfolio-btn {
    position: relative;
    overflow: hidden;
}

#crypto-live-prices .crypto-show-all-btn::before,
#crypto-live-prices .crypto-portfolio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#crypto-live-prices .crypto-show-all-btn:hover::before,
#crypto-live-prices .crypto-portfolio-btn:hover::before {
    left: 100%;
}

/* Loading States */
#crypto-live-prices .crypto-loading {
    opacity: 0.6;
    pointer-events: none;
}

#crypto-live-prices .crypto-loading .mini-chart {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.dark #crypto-live-prices .crypto-loading .mini-chart {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Icon Styling */
#crypto-live-prices .crypto-card img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

#crypto-live-prices .crypto-card:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Typography */
#crypto-live-prices .crypto-card h3 {
    font-weight: 700;
    line-height: 1.2;
}

#crypto-live-prices .crypto-card p[data-crypto] {
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

/* Update Indicator */
#crypto-live-prices #crypto-last-update {
    color: #0d3e7e;
    font-weight: 700;
}

.dark #crypto-live-prices #crypto-last-update {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    #crypto-live-prices .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    #crypto-live-prices .crypto-card {
        padding: 1rem;
    }
    
    #crypto-live-prices .crypto-card h3 {
        font-size: 0.75rem;
    }
    
    #crypto-live-prices .crypto-card p[data-crypto] {
        font-size: 1rem;
    }
    
    #crypto-live-prices .mini-chart {
        width: 40px;
        height: 24px;
    }
    
    #crypto-live-prices .crypto-buy-btn,
    #crypto-live-prices .crypto-sell-btn {
        font-size: 0.625rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 480px) {
    #crypto-live-prices .grid {
        grid-template-columns: 1fr;
    }
    
    #crypto-live-prices .crypto-card {
        max-width: 100%;
    }
}

/* Performance Indicators */
#crypto-live-prices .performance-up {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
}

#crypto-live-prices .performance-down {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
}

.dark #crypto-live-prices .performance-up {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
}

.dark #crypto-live-prices .performance-down {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
}

/* Notification Styles */
.crypto-notification {
    z-index: 9999;
    max-width: 400px;
}

.crypto-notification .border-green-500 {
    border-left-color: #22c55e;
}

.crypto-notification .border-red-500 {
    border-left-color: #ef4444;
}

.crypto-notification .border-blue-500 {
    border-left-color: #3b82f6;
}