/* ========================================
   MARKET ASSETS STYLES
   Стили блока криптовалют/активов
   ======================================== */

/* === CONTAINER === */

.market-assets {
    border-radius: 24px;
    padding: 16px 20px;
    background: rgba(15, 21, 26, 0.8);
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    width: 100%;
}

.market-assets h3 {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: white;
    margin: 0;
}

/* === ASSETS LIST === */

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

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #182027;
    border-radius: 20px;
}

/* === ASSET LEFT SIDE === */

.asset-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, #1a4060 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-icon {
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.crypto-icon-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* No assets message */
.no-assets {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--grey);
}

.no-assets p {
    margin: 0;
    font-size: 14px;
}

.asset-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-fullname {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: white;
}

.asset-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.asset-name,
.asset-price-usd {
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    color: var(--grey);
}

.asset-dot {
    font-size: 8px;
    color: var(--grey);
}

/* === ASSET RIGHT SIDE === */

.asset-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.asset-amount {
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    color: white;
    text-align: right;
}

.asset-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 12px;
    line-height: 100%;
    text-align: right;
}

.asset-change.up { color: var(--green); }
.asset-change.down { color: var(--red-2); }

.change-arrow { font-size: 8px; }
.change-value { font-size: 12px; }


/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .market-assets {
        padding: 14px 18px;
    }
    
    .market-assets h3 {
        font-size: 22px;
        line-height: 30px;
    }
    
    .assets-list {
        gap: 10px;
    }
    
    .asset-item {
        padding: 14px 18px;
    }
    
    .asset-left {
        gap: 10px;
    }
    
    .asset-icon {
        width: 36px;
        height: 36px;
    }
    
    .crypto-icon {
        font-size: 13px;
    }
    
    .crypto-icon-img {
        width: 36px;
        height: 36px;
    }
    
    .asset-fullname {
        font-size: 15px;
    }
    
    .asset-name,
    .asset-price-usd {
        font-size: 11px;
    }
    
    .asset-change {
        font-size: 11px;
    }
    
    .change-value {
        font-size: 11px;
    }
    
    .no-assets {
        padding: 32px 16px;
    }
    
    .no-assets p {
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .market-assets {
        padding: 12px 16px;
        border-radius: 20px;
    }
    
    .market-assets h3 {
        font-size: 20px;
        line-height: 28px;
    }
    
    .assets-list {
        gap: 8px;
    }
    
    .asset-item {
        padding: 12px 16px;
        border-radius: 16px;
    }
    
    .asset-left {
        gap: 10px;
    }
    
    .asset-icon {
        width: 32px;
        height: 32px;
    }
    
    .crypto-icon {
        font-size: 12px;
    }
    
    .crypto-icon-img {
        width: 32px;
        height: 32px;
    }
    
    .asset-info {
        gap: 3px;
    }
    
    .asset-fullname {
        font-size: 14px;
        line-height: 18px;
    }
    
    .asset-meta {
        gap: 5px;
    }
    
    .asset-name,
    .asset-price-usd {
        font-size: 11px;
    }
    
    .asset-dot {
        font-size: 7px;
    }
    
    .asset-right {
        gap: 3px;
    }
    
    .asset-amount {
        font-size: 13px;
    }
    
    .asset-change {
        font-size: 11px;
    }
    
    .change-arrow {
        font-size: 7px;
    }
    
    .change-value {
        font-size: 11px;
    }
    
    .no-assets {
        padding: 28px 14px;
    }
    
    .no-assets p {
        font-size: 13px;
    }
}
