/* ══════════════════════════════════════════════════════════════
   Blockchain Single Page — blockspot.io
   Scoped under .bs-bc-* prefix.
   ══════════════════════════════════════════════════════════════ */

/* ── Mobile Sticky Section Nav ── */
.bs-bc-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    height: 44px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transform: translateY(-100%);
    transition: transform 0.2s ease;
}

.bs-bc-nav--visible {
    transform: translateY(0);
}

.bs-bc-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
}

.bs-bc-nav-links::-webkit-scrollbar {
    display: none;
}

.bs-bc-nav-link {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: #9b9894;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.bs-bc-nav-link--active {
    color: #111318;
    border-bottom-color: #3b82f6;
}

@media (max-width: 767px) {
    .bs-bc-nav {
        display: flex;
    }
}

/* ── Header Section ── */
.bs-bc-header {
    margin: 0 0 28px;
}

.bs-bc-h1-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 8px;
}

.bs-bc-header-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.bs-bc-h1 {
    font-size: 26px;
    font-weight: 600;
    color: #111318;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.bs-bc-subtitle {
    font-size: 15px;
    color: #6b6966;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 0 20px;
}

/* ── Network Pills ── */
.bs-bc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

a.bs-bc-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    padding: 6px 14px;
    background: #f6f5f3;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    transition: border-color 0.2s;
}

a.bs-bc-pill:hover {
    border-color: #3b82f6;
}

.bs-bc-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
}

.bs-bc-pill-key {
    color: #9b9894;
    font-weight: 400;
}

.bs-bc-pill-val {
    font-weight: 500;
    color: #111318;
}

a.bs-bc-pill:visited .bs-bc-pill-val {
    color: #111318;
}

/* ── Two-Column Card Layout ── */
.bs-bc-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 28px;
}

.bs-bc-cards--no-coin {
    grid-template-columns: 1fr;
}

/* ── Shared Card Block ── */
.bs-bc-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 24px;
}

.bs-bc-block-title {
    font-size: 16px;
    font-weight: 700;
    color: #111318;
    margin: 0 0 16px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ── Native Coin Block ── */
.bs-bc-coin-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.bs-bc-coin-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.bs-bc-coin-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2e38;
    color: #8b8fa3;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.bs-bc-coin-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bs-bc-coin-name {
    font-size: 15px;
    font-weight: 600;
    color: #111318;
}

.bs-bc-coin-ticker {
    font-size: 11px;
    color: #9b9894;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.bs-bc-coin-metric-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bs-bc-coin-metric-price .bs-change {
    font-size: 11px;
    padding: 2px 7px;
}

.bs-bc-coin-metrics {
    display: flex;
    gap: 16px;
    margin: 0 0 12px;
}

.bs-bc-coin-metric {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bs-bc-coin-metric-label {
    font-size: 11px;
    color: #9b9894;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.bs-bc-coin-metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    font-variant-numeric: tabular-nums;
}

a.bs-bc-coin-link {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

a.bs-bc-coin-link:hover {
    text-decoration: underline;
}

/* ── Statistics Block ── */
.bs-bc-stat-hero {
    margin: 0 0 14px;
}

.bs-bc-stat-hero-value {
    font-size: 26px;
    font-weight: 600;
    color: #111318;
    letter-spacing: -0.4px;
    font-variant-numeric: tabular-nums;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
}

.bs-bc-stat-hero-label {
    font-size: 11px;
    color: #9b9894;
    font-weight: 500;
}

.bs-bc-stat-list {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.bs-bc-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
}

.bs-bc-stat-row-label {
    font-size: 13px;
    color: #6b6966;
}

.bs-bc-stat-row-value {
    font-size: 13px;
    font-weight: 600;
    color: #111318;
    font-variant-numeric: tabular-nums;
}

/* ── Stats: Two-Column Layout (stat rows + top tokens) ── */
.bs-bc-stat-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.bs-bc-stat-columns .bs-bc-stat-list {
    border-top: none;
    padding-top: 0;
}

.bs-bc-top-tokens {
    border-left: 1px solid #e2e8f0;
    padding-left: 20px;
}

.bs-bc-top-tokens-label {
    font-size: 11px;
    color: #9b9894;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 8px;
}

.bs-bc-top-token-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.bs-bc-top-token-rank {
    font-size: 11px;
    color: #9b9894;
    font-weight: 500;
    width: 14px;
    flex-shrink: 0;
    text-align: right;
}

.bs-bc-top-token-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.bs-bc-top-token-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2a2e38;
    color: #8b8fa3;
    font-size: 9px;
    font-weight: 600;
    flex-shrink: 0;
}

.bs-bc-top-token-info {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

a.bs-bc-top-token-name {
    font-size: 13px;
    font-weight: 600;
    color: #111318;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.bs-bc-top-token-name:hover {
    color: #3b82f6;
}

span.bs-bc-top-token-name {
    font-size: 13px;
    font-weight: 600;
    color: #111318;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-bc-top-token-ticker {
    font-size: 11px;
    color: #9b9894;
    flex-shrink: 0;
}

.bs-bc-top-token-mcap {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Growth Chart (inside block) ── */
.bs-bc-growth-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 130px;
}

.bs-bc-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
    cursor: default;
}

.bs-bc-bar-val {
    font-size: 10px;
    font-weight: 500;
    color: #374151;
    font-variant-numeric: tabular-nums;
}

.bs-bc-bar {
    width: 100%;
    max-width: 32px;
    background: #3b82f6;
    border-radius: 3px 3px 1px 1px;
    min-height: 2px;
    opacity: 0.45;
    transition: opacity 0.15s;
}

.bs-bc-bar-col:hover .bs-bc-bar {
    opacity: 0.85;
}

.bs-bc-bar-label {
    font-size: 10px;
    color: #9b9894;
    font-weight: 500;
}

/* ── About Block ── */
.bs-bc-about-text {
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0;
}

/* ── Related Blockchains Section ── */
.bs-bc-related {
    border-top: 1px solid #e2e8f0;
    margin-top: 32px;
    padding-top: 28px;
}

.bs-bc-related-header {
    margin-bottom: 20px;
}

.bs-bc-related-title {
    font-size: 20px;
    font-weight: 700;
    color: #111318;
    margin: 0 0 6px;
    line-height: 1.3;
}

.bs-bc-related-subtitle {
    font-size: 14px;
    color: #6b6966;
    margin: 0;
    line-height: 1.5;
}

.bs-bc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

a.bs-bc-related-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

a.bs-bc-related-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.bs-bc-related-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bs-bc-related-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.bs-bc-related-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2a2e38;
    color: #8b8fa3;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.bs-bc-related-card-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.bs-bc-related-name {
    font-size: 14px;
    font-weight: 600;
    color: #111318;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.bs-bc-related-card:visited .bs-bc-related-name {
    color: #111318;
}

.bs-bc-related-proof {
    font-size: 11px;
    color: #9b9894;
}

.bs-bc-related-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.bs-bc-related-metric {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bs-bc-related-metric--price {
    align-items: flex-end;
}

.bs-bc-related-metric-value {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bs-bc-related-metric-label {
    font-size: 11px;
    color: #9b9894;
    font-weight: 500;
}

.bs-bc-related-card-bottom .bs-change {
    font-size: 11px;
    padding: 2px 7px;
}

a.bs-bc-related-viewall {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
}

a.bs-bc-related-viewall:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bs-bc-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .bs-bc-related-grid {
        grid-template-columns: 1fr;
    }

    .bs-bc-related-card-top {
        flex: 1;
    }

    a.bs-bc-related-card {
        flex-direction: row;
        align-items: center;
        padding: 14px;
    }

    .bs-bc-related-card-bottom {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        flex-shrink: 0;
    }

    .bs-bc-related-metric--price {
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }

    .bs-bc-header-logo {
        width: 36px;
        height: 36px;
    }

    .bs-bc-h1-row {
        gap: 10px;
    }

    .bs-bc-h1 {
        font-size: 22px;
    }

    .bs-bc-subtitle {
        font-size: 14px;
    }

    a.bs-bc-pill {
        font-size: 12px;
        padding: 5px 12px;
    }

    .bs-bc-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bs-bc-block {
        padding: 18px 16px;
    }

    .bs-bc-coin-price {
        font-size: 20px;
    }

    .bs-bc-coin-metrics {
        flex-direction: column;
        gap: 8px;
    }

    .bs-bc-stat-hero-value {
        font-size: 22px;
    }

    .bs-bc-stat-columns {
        grid-template-columns: 1fr;
        gap: 10px 0;
    }

    .bs-bc-top-tokens {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 10px;
    }

    .bs-bc-growth-chart {
        height: 100px;
        gap: 2px;
    }

    .bs-bc-bar-val {
        font-size: 8px;
    }

    .bs-bc-bar-label {
        font-size: 8px;
    }

    .bs-bc-bar {
        max-width: 24px;
    }
}
