/* Vibrant Metric Icons for Token Preview */

/* Enhanced metrics container */
.token-metric-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

/* Base metric icon styling */
.metric-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Inner icon container for glow effects */
.icon-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Make SVG icons stand out */
.icon-inner svg {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
    z-index: 3;
    position: relative;
}

/* Specific colored backgrounds for each icon type */
.metric-icon.supply {
    background: linear-gradient(135deg, #3badfb, #576fe6);
    box-shadow: 0 0 15px rgba(59, 173, 227, 0.7);
}

.metric-icon.supply::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
    z-index: 1;
}

.metric-icon.decimals {
    background: linear-gradient(135deg, #ff69b4, #d14bcd);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
}

.metric-icon.decimals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
    z-index: 1;
}

.metric-icon.transactions, 
.metric-icon.fee {
    background: linear-gradient(135deg, #14f195, #1b9c85);
    box-shadow: 0 0 15px rgba(20, 241, 149, 0.7);
}

.metric-icon.transactions::before,
.metric-icon.fee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
    z-index: 1;
}

/* Slightly animated glow effect on hover */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.metric-icon:hover {
    animation: pulse-glow 2s infinite ease-in-out;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .metric-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        margin-right: 10px;
    }
    
    .icon-inner svg {
        width: 18px;
        height: 18px;
    }
}

/* Enhance metric details for better contrast with icons */
.metric-details {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.metric-value {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
