/* 梵音音乐钱包 - 币种列表显示样式 */

/* 币种列表显示容器 */
.token-list-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.token-list-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* 币种列表头部 */
.token-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.token-list-header h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-list-header h3 i {
    color: #ffd700;
    font-size: 18px;
}

.token-list-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.token-list-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.empty-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
}

/* 币种列表内容 */
.token-list-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.token-list-content.visible {
    max-height: 500px;
    opacity: 1;
}

.token-list-content.hidden {
    max-height: 0;
    opacity: 0;
}

/* 币种网格 */
.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 15px 20px;
}

/* 币种卡片 */
.token-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.token-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.token-card.zero-balance {
    opacity: 0.6;
}

.token-card.zero-balance:hover {
    opacity: 0.8;
}

/* 币种卡片图标 */
.token-card-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    overflow: hidden;
}

.token-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.token-emoji {
    font-size: 24px;
    line-height: 1;
}

/* 币种卡片信息 */
.token-card-info {
    color: white;
}

.token-card-symbol {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.token-card-balance {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.token-card-value {
    font-size: 11px;
    opacity: 0.7;
}

/* 原生代币标识 */
.native-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #00e676;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

/* 币种列表操作 */
.token-list-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.token-action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.token-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.token-action-btn i {
    font-size: 12px;
}

/* 空状态样式 */
.token-list-display.empty {
    background: linear-gradient(135deg, #90a4ae 0%, #607d8b 100%);
}

.token-empty-content {
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.empty-text {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.empty-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.empty-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .token-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 12px 15px;
    }
    
    .token-card {
        padding: 10px 8px;
    }
    
    .token-card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 6px;
    }
    
    .token-emoji {
        font-size: 20px;
    }
    
    .token-card-symbol {
        font-size: 13px;
    }
    
    .token-card-balance {
        font-size: 11px;
    }
    
    .token-card-value {
        font-size: 10px;
    }
    
    .token-list-actions {
        flex-direction: column;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .token-action-btn {
        padding: 12px;
        font-size: 13px;
    }
    
    .token-list-header {
        padding: 12px 15px;
    }
    
    .token-list-header h3 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .token-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px 12px;
    }
    
    .token-card {
        padding: 8px 6px;
    }
    
    .token-card-icon {
        width: 32px;
        height: 32px;
    }
    
    .token-emoji {
        font-size: 18px;
    }
    
    .empty-icon {
        font-size: 40px;
    }
    
    .empty-text {
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.token-card {
    animation: fadeIn 0.3s ease;
}

.token-card:nth-child(1) { animation-delay: 0.1s; }
.token-card:nth-child(2) { animation-delay: 0.2s; }
.token-card:nth-child(3) { animation-delay: 0.3s; }
.token-card:nth-child(4) { animation-delay: 0.4s; }
.token-card:nth-child(5) { animation-delay: 0.5s; }
.token-card:nth-child(6) { animation-delay: 0.6s; }
.token-card:nth-child(7) { animation-delay: 0.7s; }
.token-card:nth-child(8) { animation-delay: 0.8s; }

/* 加载状态 */
.token-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    opacity: 0.7;
}

.token-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
