/* static/css/news.css additions */
/* 1) Clickable card style & hover */

:root {
    --base-orange: #FF9500
}

.news-card {
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover,
.news-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

/* 2) Ensure full-height cards in grid for equal footers */
.h-100 {
    height: 100%;
}

/* 3) Info-row tweak (if needed) */
.info-row {
    font-size: .9rem;
}

/* 4) Tag link styling (inherits color vars) */
.tag-link {
    margin-left: .5rem;
    text-decoration: none;
}

.tag-link:hover {
    text-decoration: underline;
}

.news-card {
    cursor: pointer;
}

.navbar-brand img {
    margin-right: 0.125rem;
}


/*!* ――― Web-App Sticky Navbar ――― *!*/
/*.navbar {*/
/*    position: sticky;*/
/*    bottom: 0;*/
/*    z-index: 1020;*/
/*    background-color: #ffffff;*/
/*    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
/*    !*padding: 0.5rem 1rem;*!*/
/*}*/

/* Brand & links */
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--btc-dark);
    transition: color 0.2s;
}

.navbar-brand:hover {
    color: var(--btc-orange-dark);
}

.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--btc-dark);
    margin: 0 0.75rem;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--btc-orange);
}

/* Login button in navbar */
.navbar-nav .btn-outline-bitcoin {
    font-weight: 500;
    padding: 0.35rem 0.9rem;
}

/* Collapse on mobile: full-width items */
@media (max-width: 991px) {
    .navbar-nav .nav-link,
    .navbar-nav .btn-outline-bitcoin {
        width: 100%;
        text-align: center;
        margin: 0.25rem 0;
    }
}

/* ―― Custom Bitcoin-orange Pagination ―― */

/* 1) Wrap the whole pagination in a single orange border & radius */
/* Collapse on mobile: full-width items */

/* ―― Book-style horizontal pagination ―― */
.book-pagination-container {
    position: relative;
    overflow: hidden;
}

.book-page-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 0.25rem 0.5rem;
    color: var(--btc-orange);
    transition: color .2s ease;
}

.book-page-btn:hover,
.book-page-btn:focus {
    color: var(--btc-orange-dark);
    outline: none;
}

.book-page-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.book-prev {
    left: 0.5rem;
}

.book-next {
    right: 0.5rem;
}

.book-pages-container {
    perspective: 1000px;
}

.book-page {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.page-exit-left {
    transform: rotateY(-90deg);
    opacity: 0;
}

.page-exit-right {
    transform: rotateY(90deg);
    opacity: 0;
}

.page-enter-left {
    transform: rotateY(90deg);
    opacity: 0;
}

.page-enter-right {
    transform: rotateY(-90deg);
    opacity: 0;
}

.page-enter-active {
    transform: rotateY(0deg);
    opacity: 1;
}

.badge {
    color: var(--base-orange);
    border: 1px solid;
    border-color: var(--base-orange);
}

.content-body {
    white-space: pre-line; /* respect \n but still collapse multiple spaces */
    /* white-space: pre-wrap;  <-- use this if you also want to keep multiple spaces/tabs */
}

.icon-btn {
    background: none;
    border: 0;
    padding: 0;
    line-height: 1;
    color: var(--btc-dark);
}

.custom-dropdown {
    min-width: 220px;
    z-index: 1050;
}


.custom-dropdown .dropdown-item {
    font-size: 1.1rem;
    font-weight: 500;
}

#burgerMenu {
    right: 0;
    transform: none; /* disable translateX */
    min-width: 220px;
}

#custom-spinner {
    color: #FF9500;
    border-color: #FF9500;
    border-right-color: transparent;
}

.orange-link {
    color: #FF9500 !important;
}

.orange-link:hover {
    color: var(--base-orange);
    text-decoration: underline;
}

.bp-sidebar {
    position: sticky;
    top: 0;
    height: 99vh;
    overflow-y: auto;
    border-right: 1px solid #e9ecef;
    background: #fff;
}

.bp-link {
    display: block;
    color: #2b2b2b;
    text-decoration: none;
    /*font-size: 12px;*/
    font-weight: 600;
    line-height: 1.25;
    margin: 8px 0
}

.bp-link:hover {
    color: var(--base-orange);
    border-color: var(--base-orange);
    text-decoration: none
}

.bp-search {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    max-height: 54px;
    border-radius: 12px;
    border: 1px;
}


.bp-search:focus {
    background: #fff;
    border-color: var(--base-orange);
    box-shadow: 0 0 0 .2rem var(--base-orange);
}

.bp-kpi-label {
    /*font-size: 12px;*/
    color: #6c757d
}

.bp-kpi-value {
    font-weight: 800;
    /*font-size: 12px;*/
    color: var(--base-orange);
}


@media (max-width: 991.98px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}