/* Birdeye Token Stats — frontend styles */

.bts-widget {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 420px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e6edf3;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Header */
.bts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #21262d;
}

.bts-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bts-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bts-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bts-title-link {
    color: inherit;
    text-decoration: none;
}

.bts-title-link:hover {
    text-decoration: underline;
}

.bts-header-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e6edf3;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Stat boxes */
.bts-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.bts-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 12px 14px;
    background: #161b22;
    border-radius: 8px;
    border: 1px solid #21262d;
    transition: background 0.15s ease;
}

.bts-stat:hover {
    background: #1c2128;
}

.bts-label {
    font-size: 0.72rem;
    color: #8b949e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bts-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
    font-variant-numeric: tabular-nums;
}

/* Change indicators */
.bts-positive {
    color: #3fb950;
}

.bts-negative {
    color: #f85149;
}

/* Footer timestamp */
.bts-updated {
    margin: 0;
    font-size: 0.72rem;
    color: #484f58;
    text-align: right;
}

/* Loading overlay */
.bts-widget.bts-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error state */
.bts-error {
    color: #f85149;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .bts-widget {
        padding: 16px;
        max-width: 100%;
    }
}
