/* CoinRemark Crypto Spotlight Styles - Normal Mode */

.crypto-spotlight {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    color: #212529;
    max-width: 100%;
    overflow: hidden;
}

.crypto-spotlight-small {
    padding: 16px;
    max-width: 300px;
}

.crypto-spotlight-large {
    padding: 32px;
    max-width: 600px;
}

/* Basic Info Section */
.crypto-spotlight-basic {
    margin-bottom: 24px;
}

.crypto-spotlight-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.crypto-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
    border: 2px solid #e9ecef;
}

.crypto-info {
    flex: 1;
}

.crypto-name {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Hanken';
}

.crypto-symbol {
    display: block;
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 500;
}

.crypto-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #4CAF50;
}

.price-change {
    font-size: 16px;
    font-weight: 400;
    padding: 8px 24px;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
    font-family: 'Cascadia Mono';
}

.price-change.positive {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.price-change.negative {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

/* Detailed Info Section */
.crypto-spotlight-detailed {
    border-top: 1px solid #dee2e6;
    padding-top: 24px;
}

.detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.detail-value.positive {
    color: #4CAF50;
}

.detail-value.negative {
    color: #F44336;
}

.ath-change {
    font-size: 12px;
    margin-left: 8px;
}

/* Sparkline Container */
.sparkline-container {
    margin: 20px 0;
    padding: 16px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.sparkline-container .detail-label {
    margin-bottom: 8px;
    display: block;
}

/* Crypto Description */
.crypto-description {
    margin-top: 20px;
    padding: 16px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.crypto-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
}

/* Error State */
.crypto-spotlight-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #F44336;
    border-radius: 8px;
    padding: 16px;
    color: #F44336;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .crypto-spotlight {
        padding: 16px;
        margin: 16px 0;
    }

    .crypto-spotlight-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .crypto-logo {
        width: 40px;
        height: 40px;
    }

    .crypto-name {
        font-size: 20px;
    }

    .price-value {
        font-size: 28px;
    }

    .detailed-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .crypto-spotlight {
        padding: 12px;
    }

    .crypto-name {
        font-size: 18px;
    }

    .price-value {
        font-size: 24px;
    }

    .crypto-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .price-change {
        align-self: flex-end;
    }
}

/* Loading Animation - Skeleton only */
.crypto-spotlight.loading {
    /* Removed overlay styles to show skeleton loading */
}

/* Loading Placeholder Styles */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
    min-height: 1em;
    display: inline-block;
    min-width: 60px;
}

.crypto-logo.loading-placeholder {
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: none;
}

.crypto-description.loading-placeholder {
    background: #f0f0f0;
    border-left: 4px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    animation: none;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Dark mode loading placeholders */
.darkmode--activated .loading-placeholder {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

.darkmode--activated .crypto-logo.loading-placeholder {
    background: #2a2a2a;
    border: 2px solid #A3FF00;
}

.darkmode--activated .crypto-description.loading-placeholder {
    background: #2a2a2a;
    border-left: 4px solid #A3FF00;
}

/* Crypto Note */
.crypto-note {
    margin-top: 16px;
    text-align: center;
}

.crypto-note small {
    color: #6c757d;
    font-size: 11px;
    opacity: 0.7;
}

/* Dark Mode Styles */
.darkmode--activated .crypto-spotlight {
    background: linear-gradient(135deg, #152401 0%, #051403 100%);
    border: 1px solid #A3FF00;
    box-shadow: 0 8px 32px rgba(163, 255, 0, 0.1);
    color: #e9fbdf;
}

.darkmode--activated .price-value {
    color: #A3FF00;
}

.darkmode--activated .crypto-spotlight-detailed {
    border-top: 1px solid #D4FF87;
}

.darkmode--activated .crypto-symbol {
    color: #D4FF87;
}

.darkmode--activated .detail-label {
    color: #D4FF87;
}

.darkmode--activated .detail-value {
    color: #e9fbdf;
}

.darkmode--activated .crypto-description p {
    color: #D4FF87;
}

.darkmode--activated .crypto-description {
    border-left: 4px solid #A3FF00;
}

.darkmode--activated .crypto-note small {
    color: #D4FF87;
}

.darkmode--activated .crypto-spotlight.loading::after {
    background: rgba(5, 20, 3, 0.8);
}