/* Styles pour les statistiques de cryptos personnalisées */

.crypto-stats-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card-bg);
}

.crypto-stats-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    color: white;
}

.crypto-stats-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.crypto-symbol {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 2px;
}

.crypto-current-price {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.price-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.price-change {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-change.positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

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

.crypto-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--section-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-section {
    background: var(--section-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.stats-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.stats-section.empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.stats-section.empty p {
    font-size: 1.1rem;
    margin: 0;
}

.holders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.holder-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.holder-item:hover {
    transform: translateX(5px);
}

.holder-rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    min-width: 40px;
}

.holder-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.holder-info {
    flex: 1;
}

.holder-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.holder-quantity {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.holder-value {
    font-weight: bold;
    color: var(--success-color);
}

.recent-trades-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.trade-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 3px solid;
}

.trade-item.buy {
    border-left-color: var(--success-color);
}

.trade-item.sell {
    border-left-color: var(--danger-color);
}

.trade-icon {
    font-size: 1.5rem;
}

.trade-info {
    flex: 1;
}

.trade-user {
    font-weight: 600;
    margin-bottom: 3px;
}

.trade-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.trade-details {
    text-align: right;
}

.trade-action {
    font-weight: 600;
    margin-bottom: 3px;
}

.trade-quantity {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.trade-price {
    font-weight: bold;
    color: var(--accent-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
}

/* Bouton de stats dans le market */
.stats-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-left: 10px;
}

.stats-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.stats-button:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .crypto-stats-modal {
        max-width: 95%;
        padding: 15px;
    }
    
    .crypto-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .holder-item {
        flex-wrap: wrap;
    }
    
    .holder-value {
        width: 100%;
        text-align: left;
        margin-top: 5px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .crypto-stats-header h2 {
        font-size: 1.5rem;
    }
    
    .crypto-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .price-value {
        font-size: 1.2rem;
    }
}

