/* Cryptocurrency Logo Fixes and Styling */

/* Custom crypto icon system using data attributes */
.crypto-icon-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Litecoin */
.crypto-icon-symbol[data-coin="ltc"]::before {
    content: "Ł" !important;
    color: #345D9D;
}

/* XRP (Ripple) */
.crypto-icon-symbol[data-coin="xrp"]::before {
    content: "✕" !important;
    color: #23292F;
    font-size: 0.9em;
}

/* Bitcoin Cash */
.crypto-icon-symbol[data-coin="bch"]::before {
    content: "₿" !important;
    color: #8DC451;
}

/* Stellar Lumens (XLM) */
.crypto-icon-symbol[data-coin="xlm"]::before {
    content: "★" !important;
    color: #13C0EB;
}

/* Binance Coin */
.crypto-icon-symbol[data-coin="bnb"]::before {
    content: "⬢" !important;
    color: #F3BA2F;
}

/* Solana */
.crypto-icon-symbol[data-coin="sol"]::before {
    content: "◈" !important;
    color: #14F195;
}

/* Dogecoin */
.crypto-icon-symbol[data-coin="doge"]::before {
    content: "Ð" !important;
    color: #BA9F33;
}

/* Polkadot */
.crypto-icon-symbol[data-coin="dot"]::before {
    content: "●" !important;
    color: #E6007A;
}

/* USDT Stablecoin */
.crypto-icon-symbol[data-coin="usdt"]::before {
    content: "₮" !important;
    color: #26A17B;
}

/* USDC */
.crypto-icon-symbol[data-coin="usdc"]::before {
    content: "Ⓤ" !important;
    color: #2775CA;
}

/* Cardano */
.crypto-icon-symbol[data-coin="ada"]::before {
    content: "₳" !important;
    color: #0033A0;
}

/* Base styling for crypto icons */
.crypto-icon i,
.ticker-item i,
.trade-icon i,
.crypto-item i {
    font-style: normal !important;
    font-weight: 600 !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ethereum */
.fab.fa-ethereum::before,
.fa-ethereum::before {
    content: "Ξ" !important;
    font-size: 1.2em;
    font-weight: bold;
    color: inherit;
}

/* Bitcoin */
.fab.fa-bitcoin::before,
.fa-bitcoin::before {
    content: "₿" !important;
    font-size: 1.2em;
    font-weight: bold;
    color: inherit;
}

/* Generic coin styling */
.crypto-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.crypto-icon-wrapper i {
    font-size: 1.6rem;
}

/* Responsive sizing */
@media (max-width: 768px) {
    .crypto-icon-wrapper {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .crypto-icon-wrapper i {
        font-size: 1.2rem;
    }
}


/* Generic coin styling */
.crypto-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.crypto-icon-wrapper i {
    font-size: 1.6rem;
}

/* Responsive sizing */
@media (max-width: 768px) {
    .crypto-icon-wrapper {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .crypto-icon-wrapper i {
        font-size: 1.2rem;
    }
}
