/* =========================================================
   SCOTT PRICE MEDIA
   SPM BLOG v1
   ========================================================= */

.spm-blog-page {
    font-family: "Inter", sans-serif;
    min-height: 100vh;
}

.spm-blog-masthead {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    background:
        radial-gradient(circle at 15% 20%, rgba(102, 16, 242, .22), transparent 38%),
        radial-gradient(circle at 88% 20%, rgba(216, 201, 74, .10), transparent 32%);
}

.spm-blog-masthead::after {
    content: "";
    position: absolute;
    inset: auto -10% -70px;
    height: 130px;
    background: linear-gradient(90deg, transparent, rgba(102, 16, 242, .20), transparent);
    filter: blur(30px);
    pointer-events: none;
}

.spm-blog-masthead-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.spm-blog-eyebrow,
.spm-section-kicker {
    color: #8b5cf6;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

[data-bs-theme="dark"] .spm-blog-eyebrow,
[data-bs-theme="dark"] .spm-section-kicker {
    color: #d8c94a;
}

.spm-blog-categories {
    position: sticky;
    top: 0;
    z-index: 1010;
    padding: .65rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    background: rgba(var(--bs-body-bg-rgb), .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.spm-blog-category-rail {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
}

.spm-category-scroller {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .25rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
}

.spm-category-scroller::-webkit-scrollbar {
    display: none;
}

#spmBlogCategories {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
    padding: .25rem;
}

#spmBlogCategories .nav-link {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
    scroll-snap-align: start;
    border: 1px solid #6610f2;
    color: #fff;
    background: #6610f2;
    font-weight: 700;
}

#spmBlogCategories .nav-link:hover,
#spmBlogCategories .nav-link:focus-visible {
    color: #fff;
    border-color: #4f0bc2;
    background: #4f0bc2;
}

#spmBlogCategories .nav-link.active {
    color: #fff;
    background: #6610f2;
    border-color: #6610f2;
    box-shadow: 0 0 0 2px rgba(102, 16, 242, .16);
}

.spm-blog-category-arrow {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(102, 16, 242, .55);
    border-radius: 50%;
    background: rgba(var(--bs-body-bg-rgb), .88);
    color: #6610f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    box-shadow: 0 .15rem .45rem rgba(0, 0, 0, .08);
}

.spm-blog-category-arrow[hidden] {
    display: none;
}

.spm-blog-category-arrow:hover {
    color: #fff;
    border-color: #6610f2;
    background: #6610f2;
}

.spm-blog-category-arrow:focus-visible {
    color: #6610f2;
    border-color: #6610f2;
    background: rgba(var(--bs-body-bg-rgb), 1);
    outline: 3px solid rgba(102, 16, 242, .30);
    outline-offset: 2px;
}

[data-bs-theme="dark"] #spmBlogCategories .nav-link {
    color: #fff;
    background: #6610f2;
    border-color: rgba(216, 201, 74, .72);
}

[data-bs-theme="dark"] .spm-blog-category-arrow {
    color: #d8c94a;
    background: rgba(255, 255, 255, .055);
    border-color: rgba(216, 201, 74, .55);
    box-shadow: 0 .15rem .45rem rgba(0, 0, 0, .28);
}

[data-bs-theme="dark"] #spmBlogCategories .nav-link:hover,
[data-bs-theme="dark"] #spmBlogCategories .nav-link:focus-visible {
    color: #0b011d;
    background: #d8c94a;
    border-color: #d8c94a;
}

[data-bs-theme="dark"] .spm-blog-category-arrow:hover {
    color: #0b011d;
    background: #d8c94a;
    border-color: #d8c94a;
}

[data-bs-theme="dark"] .spm-blog-category-arrow:focus-visible {
    color: #d8c94a;
    background: rgba(255, 255, 255, .08);
    border-color: #d8c94a;
    outline-color: rgba(216, 201, 74, .30);
}

[data-bs-theme="dark"] #spmBlogCategories .nav-link.active {
    color: #0b011d;
    background: #d8c94a;
    border-color: #d8c94a;
    box-shadow: 0 0 0 2px rgba(216, 201, 74, .16);
}

@media (max-width: 575.98px) {
    .spm-blog-category-rail {
        gap: .25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spm-category-scroller {
        scroll-behavior: auto;
    }
}

.spm-featured-carousel {
    overflow: hidden;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 1.25rem;
    background: #090313;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .16);
}

.spm-featured-media {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 330px;
}

.spm-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spm-featured-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
        to top,
        rgba(6, 2, 14, .94) 0%,
        rgba(6, 2, 14, .70) 35%,
        rgba(6, 2, 14, .20) 72%,
        rgba(6, 2, 14, .10) 100%
    );
}

.spm-featured-copy {
    width: min(900px, 88%);
    padding: clamp(1.4rem, 4vw, 3.5rem);
    color: #fff;
}

.spm-featured-copy h3 {
    max-width: 850px;
    font-size: clamp(1.65rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.spm-featured-copy p {
    max-width: 760px;
    font-size: clamp(.95rem, 1.6vw, 1.15rem);
}

.spm-featured-category {
    display: inline-flex;
    margin-bottom: .75rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #6610f2;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.spm-story-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 1rem;
    background: rgba(var(--bs-body-bg-rgb), .72);
    box-shadow: 0 .65rem 1.8rem rgba(0, 0, 0, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.spm-story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 16, 242, .55);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .13);
}

.spm-story-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(var(--bs-secondary-bg-rgb), 1);
}

.spm-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.spm-story-card:hover .spm-story-thumb img {
    transform: scale(1.025);
}

.spm-story-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - auto);
    padding: 1.15rem 1.15rem 1.25rem;
}

.spm-story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: .65rem;
    color: var(--bs-secondary-color);
    font-size: .82rem;
}

.spm-story-category {
    color: #6610f2;
    font-weight: 800;
}

[data-bs-theme="dark"] .spm-story-category {
    color: #d8c94a;
}

.spm-story-title {
    font-size: 1.2rem;
    line-height: 1.25;
}

.spm-story-title a {
    color: var(--bs-heading-color);
    text-decoration: none;
}

.spm-story-title a:hover,
.spm-story-title a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: .12em;
    text-underline-offset: .16em;
}

.spm-story-description {
    color: var(--bs-secondary-color);
    font-size: .95rem;
}

.spm-read-link {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 800;
    text-decoration: none;
}

.spm-read-link i {
    transition: transform .2s ease;
}

.spm-read-link:hover i {
    transform: translateX(3px);
}

.spm-blog-status {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 110px;
    justify-content: center;
    border: 1px dashed var(--bs-border-color);
    border-radius: 1rem;
}

.spm-empty-state {
    padding: 3rem 1.25rem;
    text-align: center;
    border: 1px dashed var(--bs-border-color);
    border-radius: 1rem;
}

.spm-empty-state > i {
    font-size: 2.5rem;
    color: #6610f2;
}

.spm-blog-console {
    position: sticky;
    top: 78px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 1rem;
    background: rgba(var(--bs-body-bg-rgb), .78);
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.spm-console-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #6610f2;
    color: #fff;
    font-weight: 800;
    letter-spacing: .04em;
}

.spm-console-heading small {
    font-weight: 600;
    opacity: .85;
}

.spm-console-panel {
    padding: 1.15rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.spm-console-panel:first-of-type {
    border-top: 0;
}

.spm-latest-item + .spm-latest-item {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

.spm-latest-item a {
    color: var(--bs-heading-color);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.spm-latest-item a:hover,
.spm-latest-item a:focus-visible {
    color: #6610f2;
    text-decoration: underline;
}

.spm-latest-item time {
    display: block;
    margin-top: .3rem;
    color: var(--bs-secondary-color);
    font-size: .78rem;
}

.spm-explore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.spm-console-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 48px;
    padding: .7rem .75rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .75rem;
    color: var(--bs-body-color);
    font-weight: 700;
    text-decoration: none;
}

.spm-console-link:hover,
.spm-console-link:focus-visible {
    color: #fff;
    background: #6610f2;
    border-color: #6610f2;
}

.spm-console-quote {
    font-weight: 700;
    font-style: italic;
}

#spmLoadMore {
    min-width: 180px;
    min-height: 48px;
}

@media (max-width: 991.98px) {
    #spmBlogCategories {
        justify-content: flex-start;
    }

    .spm-blog-console {
        position: static;
    }

    .spm-featured-media {
        min-height: 290px;
    }
}

@media (max-width: 575.98px) {
    .spm-blog-masthead .lead {
        font-size: 1rem;
    }

    .spm-featured-media {
        min-height: 390px;
        aspect-ratio: 4 / 5;
    }

    .spm-featured-copy {
        width: 100%;
        padding: 1.35rem;
    }

    .spm-featured-copy h3 {
        font-size: 1.75rem;
    }

    .spm-featured-copy .btn {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spm-story-card,
    .spm-story-thumb img,
    .spm-read-link i {
        transition: none !important;
    }

    .spm-story-card:hover {
        transform: none;
    }
}
