/* Market Infographic Styles */
.market-infographic-section {
    background: linear-gradient(135deg, 
        rgba(22, 25, 31, 0.95) 0%, 
        rgba(30, 35, 45, 0.95) 50%, 
        rgba(22, 25, 31, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.market-infographic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 255, 157, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 162, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Market Header Styles */
.market-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.market-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.market-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.15), rgba(0, 162, 255, 0.15));
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.market-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
    animation: pulse-glow 2s infinite;
}

.pulse-indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.market-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        var(--primary-color) 30%, 
        var(--accent-color) 70%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 157, 0.3);
    position: relative;
}

.market-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.8;
}

.market-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.market-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.market-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.market-card:hover::before {
    opacity: 1;
}

.market-card.crypto-card:hover::before {
    background: linear-gradient(90deg, transparent, #ff9500, transparent);
}

.market-card.stock-card:hover::before {
    background: linear-gradient(90deg, transparent, #00a2ff, transparent);
}

.market-card.commodity-card:hover::before {
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.market-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.crypto-icon i {
    font-size: 24px;
}

.crypto-icon span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.bitcoin-icon i {
    color: #f7931a;
}

.ethereum-icon i {
    color: #627eea;
}

.stock-icon,
.commodity-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stock-icon i,
.commodity-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.stock-icon span,
.commodity-icon span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.market-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

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

.price-change.positive::before {
    content: '↗';
    font-size: 12px;
}

.price-change.negative::before {
    content: '↘';
    font-size: 12px;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

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

.status-indicator.live {
    background-color: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

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

.status-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-chart {
    height: 40px;
    margin-top: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mini-chart canvas {
    width: 100%;
    height: 100%;
}

.market-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.powered-by {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .market-infographic-section {
        padding: 40px 0;
    }
    
    .market-header {
        margin-bottom: 40px;
    }
    
    .market-title-section {
        gap: 12px;
    }
    
    .market-badge {
        padding: 6px 16px;
        font-size: 0.7rem;
    }
    
    .market-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .market-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* Tablet - 2 cards per row */
@media (max-width: 900px) {
    .market-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile - 1 card per row */
@media (max-width: 768px) {
    .market-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .market-card {
        padding: 20px;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .market-footer {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .infographic-header h2 {
        font-size: 1.8rem;
    }
    
    .market-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .market-card {
        padding: 16px;
    }
    
    .price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.market-card {
    animation: fadeInUp 0.6s ease forwards;
}

.market-card:nth-child(1) { animation-delay: 0.1s; }
.market-card:nth-child(2) { animation-delay: 0.2s; }
.market-card:nth-child(3) { animation-delay: 0.3s; }
.market-card:nth-child(4) { animation-delay: 0.4s; }
.market-card:nth-child(5) { animation-delay: 0.5s; }
.market-card:nth-child(6) { animation-delay: 0.6s; }
