/* ══════════════════════════════════════════════════════════════
   Coin Tab Navigation — blockspot.io
   Shared across main coin page and tab sub-pages.
   Scoped under .bs-coin-tab-nav prefix.
   ══════════════════════════════════════════════════════════════ */

/* View transitions disabled: Elementor's JS init runs during the fade-in window,
   making the FOUC layout shift visible. Without a transition the swap is instant
   and the FOUC is imperceptible. */

/* ── Tab Nav Bar ──
   Styling values match the original Elementor icon-list widget (element
   d8cd0ae) whose CSS lives in uploads/elementor/css/post-161481.css:
   font-size 17px / weight 500 / color #171717. Active underline uses the
   existing .menu a.active rule (4px black bar under the active link). */
.bs-coin-tab-nav {
    margin: 30px 0 0;  /* Matches Elementor element-79e6d5f `--margin-top:30px` */
}

.bs-coin-tab-nav__list {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bs-coin-tab-nav__list::-webkit-scrollbar {
    display: none;
}

.bs-coin-tab-nav__item {
    flex-shrink: 0;
    position: relative;
}

/* The `:link` / `:visited` / `:hover` / `:active` selectors below are required
   to outspecify the theme's global `.single a:link { color:#2B7BB9 }` rule in
   style.css:70 (specificity 0,2,1). On the price-prediction sub-page this file
   loads before style.min.css (enqueued at template_redirect, before wp_head),
   so a source-order tie would lose. Adding the `.bs-coin-tab-nav` ancestor
   bumps us to 0,3,1, which wins regardless of load order. */
.bs-coin-tab-nav a.bs-coin-tab-nav__link,
.bs-coin-tab-nav a.bs-coin-tab-nav__link:link,
.bs-coin-tab-nav a.bs-coin-tab-nav__link:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    font-size: 17px;
    font-weight: 500;
    color: #171717;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s;
}

.bs-coin-tab-nav a.bs-coin-tab-nav__link:hover,
.bs-coin-tab-nav a.bs-coin-tab-nav__link:active,
.bs-coin-tab-nav a.bs-coin-tab-nav__link:focus {
    color: #171717;
    text-decoration: none;
}

/* Hover underline — matches .menu a:hover:before in style.css */
.bs-coin-tab-nav__link:hover::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-color: #000;
}

/* Active tab underline — matches .menu a.active:before */
.bs-coin-tab-nav__item--active .bs-coin-tab-nav__link::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-color: #000;
}

/* ── Icons ── */
.bs-coin-tab-nav__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.bs-coin-tab-nav__icon svg {
    width: 16px;
    height: 16px;
}

/* ── CTA pill buttons (Price Prediction, Get Verified) ──
   Selectors are scoped with `a` + `:link/:visited` to outspecify the global
   `a:link { color:#2B7BB9 }` rule in style.css:51 (matches the underline-tab
   pattern above). No !important needed. */
.bs-coin-tab-nav a.bs-coin-tab-nav__link--cta,
.bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:link,
.bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:visited {
    background-color: #206389;
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:hover,
.bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:active,
.bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:focus {
    background-color: #1a557a;
    color: #fff;
}

/* Pills opt out of the underline (hover + active states). */
.bs-coin-tab-nav__link--cta:hover::before,
.bs-coin-tab-nav__item--active .bs-coin-tab-nav__link--cta::before {
    display: none;
}

.bs-coin-tab-nav__link--cta .bs-coin-tab-nav__icon svg {
    stroke: currentColor;
}

.bs-coin-tab-nav__ext {
    display: flex;
    align-items: center;
    opacity: 0.5;
}

.bs-coin-tab-nav__ext svg {
    width: 12px;
    height: 12px;
}

/* ── Dark mode ── */
/* Scoped with `a` + `:link/:visited` to outspecify the base rule at 0,3,1.
   Without the parent + pseudo-class chain the dark color (0,2,1) loses to #171717. */
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link,
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link:link,
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link:visited {
    color: #e4e4ed;
}

html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link:hover,
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link:active,
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link:focus {
    color: #fff;
    text-decoration: none;
}

html.bs-dark .bs-coin-tab-nav__link:hover::before,
html.bs-dark .bs-coin-tab-nav__item--active .bs-coin-tab-nav__link::before {
    background-color: #fff;
}

/* Dark-mode pill overrides — parent scoped to match raised specificity above. */
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link--cta,
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:link,
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:visited {
    color: #fff;
}

html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:hover,
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:active,
html.bs-dark .bs-coin-tab-nav a.bs-coin-tab-nav__link--cta:focus {
    background-color: #1a557a;
    color: #fff;
}

/* ── Price Prediction mobile banner (hidden on desktop) ── */
.bs-coin-pred-banner {
    display: none;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .bs-coin-tab-nav__list {
        gap: 16px;
    }

    .bs-coin-tab-nav__link {
        font-size: 14px;
        padding: 8px 0;
    }

    a.bs-coin-tab-nav__link--cta,
    a.bs-coin-tab-nav__link--cta:link,
    a.bs-coin-tab-nav__link--cta:visited {
        padding: 2px 10px;
    }

    .bs-coin-tab-nav__icon svg {
        width: 14px;
        height: 14px;
    }

    .bs-coin-tab-nav__item--pred-cta {
        display: none;
    }

    /* <a> is display:block — guaranteed full-width in any container context.
       Flex layout lives on __inner so the padding of the <a> is always
       part of its block width, never subject to flex sizing quirks. */
    .bs-coin-tab-nav + a.bs-coin-pred-banner,
    .bs-coin-tab-nav + a.bs-coin-pred-banner:link,
    .bs-coin-tab-nav + a.bs-coin-pred-banner:visited {
        display: block;
        margin-top: 12px;
        margin-left: 10px;
        margin-right: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
        padding-left: 16px;
        padding-right: 16px;
        background-color: #206389;
        color: #fff;
        border-radius: 8px;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

    .bs-coin-tab-nav + a.bs-coin-pred-banner:hover,
    .bs-coin-tab-nav + a.bs-coin-pred-banner:active,
    .bs-coin-tab-nav + a.bs-coin-pred-banner:focus {
        background-color: #1a557a;
        color: #fff;
        text-decoration: none;
    }

    .bs-coin-pred-banner__inner {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .bs-coin-pred-banner__body {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .bs-coin-pred-banner__title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 15px;
        font-weight: 600;
        color: #fff;
    }

    .bs-coin-pred-banner__sub {
        font-size: 12px;
        font-weight: 400;
        color: rgba(255,255,255,0.75);
    }

    .bs-coin-pred-banner__icon {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .bs-coin-pred-banner__icon svg {
        width: 16px;
        height: 16px;
        stroke: #fff;
    }

    .bs-coin-pred-banner__arrow {
        display: flex;
        align-items: center;
        margin-left: auto;
        flex-shrink: 0;
    }

    .bs-coin-pred-banner__arrow svg {
        width: 16px;
        height: 16px;
        stroke: rgba(255,255,255,0.7);
    }
}

/* Dark mode — no media query needed; display:none on desktop makes these inert. */
html.bs-dark .bs-coin-tab-nav + a.bs-coin-pred-banner,
html.bs-dark .bs-coin-tab-nav + a.bs-coin-pred-banner:link,
html.bs-dark .bs-coin-tab-nav + a.bs-coin-pred-banner:visited {
    background-color: #0d2d40;
    border: 1px solid #206389;
    color: #fff;
}

html.bs-dark .bs-coin-tab-nav + a.bs-coin-pred-banner:hover,
html.bs-dark .bs-coin-tab-nav + a.bs-coin-pred-banner:active,
html.bs-dark .bs-coin-tab-nav + a.bs-coin-pred-banner:focus {
    background-color: #0a2233;
    color: #fff;
}
