/**
 * TheCoinsPost v2 — Markets Table & Coin Page Tabs
 */

.tcp-markets-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--surface-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.tcp-markets-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.tcp-markets-table-wrap th:first-child,
.tcp-markets-table-wrap td:first-child {
    position: sticky;
    left: 0;
    background: var(--surface-card);
    z-index: 2;
}

/* Top 5 Cryptocurrencies Sidebar List */
.tcp-top-coins-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tcp-top-coins-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 13px;
}

.tcp-top-coins-list li:last-child {
    border-bottom: 0;
}

.tcp-top-coins-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.tcp-top-coins-list .tcp-coin-price-col {
    text-align: right;
}

.tcp-top-coins-list .tcp-coin-price {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.tcp-top-coins-list .tcp-coin-chg {
    font-size: 11px;
    font-weight: 600;
}

.tcp-top-coins-list .tcp-coin-chg.is-up { color: var(--signal-positive); }
.tcp-top-coins-list .tcp-coin-chg.is-down { color: var(--signal-negative); }

/* Coin Page Tabs (About coin | News | Tools) */
.tcp-coin-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    overflow-x: auto;
}

.tcp-coin-tab-btn {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--surface-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tcp-coin-tab-btn.is-active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.tcp-coin-tab-panel {
    display: none;
}

.tcp-coin-tab-panel.is-active {
    display: block;
}
