/* ==========================================================================
   RocketRide — light customization over the original Edition theme
   Original layout untouched. Only: brand color, heading font, logo placement.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Colors — brand accent (overridden by Accent color in Ghost admin)
   -------------------------------------------------------------------------- */
:root {
    --brand-color: var(--ghost-accent-color, #f93822); /* RocketRide red */
}

/* --------------------------------------------------------------------------
   2. Fonts — Space Grotesk for headings, body stays Mulish (theme default)
   -------------------------------------------------------------------------- */
h1, h2, h3,
.gh-head-logo,
.cover-title {
    font-family: "Space Grotesk", Mulish, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Helvetica, Arial, sans-serif;
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   3. RocketRide logo
   -------------------------------------------------------------------------- */

/* Hero: the logo is the focal point */
.cover-brand-logo {
    display: block;
    width: min(500px, 80vw);
    height: auto;
    margin: 0 auto 2.2rem;
}

/* Soft shadow so the white logo stays legible on busy cover photos */
.with-full-cover .cover-brand-logo {
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

/* Hero subtitle (site description) — Michroma, soft lavender (matches Discord banner) */
.cover-description,
.with-full-cover .cover-description {
    font-family: "Michroma", var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #a9a4e6 !important;
    max-width: 430px;
    margin: 1.4rem auto 0;
}

/* Subscribe box sits right under the logo; small gap to the subtitle below */
.cover-form {
    margin-top: 0.6rem;
    max-width: 530px;
}

/* --------------------------------------------------------------------------
   3b. Top navigation bar — exact copy of the approved preview bar.
       Transparent, absolute, overlays the cover / feature image on every page.
   -------------------------------------------------------------------------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 80px;
    padding: 0 40px;
    background: transparent;
    transition: background-color 0.25s ease, box-shadow 0.25s ease,
        backdrop-filter 0.25s ease;
}

/* Once scrolled down, the fixed bar gains a translucent brand backdrop */
.top-nav.scrolled {
    background-color: rgba(26, 23, 48, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 28px -14px rgba(0, 0, 0, 0.6);
}

.top-nav nav {
    display: flex;
    gap: 24px;
}

/* Ghost {{navigation}} renders a <ul class="nav"> — strip list styling */
.top-nav .nav {
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-nav .nav li {
    margin: 0;
}

.top-nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.top-nav a:hover {
    color: #fff;
}

.top-nav .nav-logo {
    height: 32px;
    display: block;
}

.top-nav .spacer {
    flex: 1;
}

.top-nav .btn {
    display: inline-flex;
    align-items: center;
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 11px 22px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
}

.top-nav .btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* --------------------------------------------------------------------------
   3c. Inner pages (post, archive, etc.) keep the original Edition navbar,
       styled as a dark gradient bar so the white logo + links stay visible.
   -------------------------------------------------------------------------- */
#gh-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background:
        radial-gradient(900px 240px at 80% 0%, rgba(124, 58, 237, 0.30), transparent 60%),
        linear-gradient(160deg, #211c46, #1a1730);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#gh-head .gh-head-logo,
#gh-head .gh-head-menu a,
#gh-head .nav a,
#gh-head .gh-head-link,
#gh-head .gh-search,
#gh-head .nav-more-toggle {
    color: rgba(255, 255, 255, 0.88);
}

#gh-head .gh-head-menu a:hover,
#gh-head .nav a:hover,
#gh-head .gh-head-link:hover {
    color: #fff;
    opacity: 1;
}

#gh-head .gh-burger::before,
#gh-head .gh-burger::after {
    background-color: #fff;
}

/* Inner-page "Subscribe" button: white pill + dark navy brand text */
#gh-head .gh-head-btn {
    background-color: #ffffff;
    color: #1e1a34;
    font-weight: 800;
}

#gh-head .gh-head-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

/* --------------------------------------------------------------------------
   5. Featured section ("Newsletters"): vertical list, image left / text right
      (slider is disabled via the renamed .featured-list class)
   -------------------------------------------------------------------------- */
.featured-wrapper {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
}

.featured-list .post {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2.4rem;
}

.featured-list .u-placeholder {
    flex: 0 0 200px;
    padding-bottom: 0;
    height: 125px;
    margin-bottom: 0;
    border-radius: 3px;
    overflow: hidden;
}

.featured-list .post-text {
    flex: 1;
}

.featured-list .post-title {
    margin-bottom: 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.featured-list .post:hover .post-title {
    color: var(--brand-color);
}

.featured-list .post-excerpt {
    margin: 0.8rem 0 0;
    font-size: 1.45rem;
    line-height: 1.6;
    color: var(--secondary-text-color);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.featured-list .post-meta {
    margin-top: 1.2rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--secondary-text-color);
}

@media (max-width: 640px) {
    .featured-list .post {
        flex-direction: column;
        align-items: flex-start;
    }

    .featured-list .u-placeholder {
        flex: none;
        width: 100%;
        height: auto;
        padding-bottom: 56.25%;
    }
}

/* "See More" button under the Newsletters list */
.featured-see-more {
    margin-top: 4rem;
    text-align: center;
}

.featured-see-more .button {
    height: 44px;
    padding: 0 28px;
    font-size: 1.2rem;
    color: var(--brand-color);
    border-color: var(--brand-color);
}

.featured-see-more .button:hover {
    color: #fff;
    background-color: var(--brand-color);
}

/* Fallback: if routes.yaml isn't uploaded, hide the homepage post feed */
.home-template .site-main .feed-header,
.home-template .site-main .post-feed,
.home-template .site-main .gh-pagination,
.home-template .site-main .pagination {
    display: none;
}

/* --------------------------------------------------------------------------
   Post page: centered title; excerpt below; share button at the bottom
   -------------------------------------------------------------------------- */
.single-header {
    text-align: center;
}

.single-header .single-meta,
.single-header .single-excerpt {
    margin-left: auto;
    margin-right: auto;
}

/* Title: keep it centered, less cramped, with balanced line breaks */
.single-title {
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.single-header .single-excerpt {
    margin-top: 2.4rem;
    margin-bottom: 0;
}

.single-share-bottom {
    margin-top: 4rem;
    text-align: center;
}

.single-share-bottom .gh-meta-share {
    justify-content: center;
    margin: 0;
}

/* --------------------------------------------------------------------------
   In-content button (Ghost editor "button" card) — match the homepage button
   -------------------------------------------------------------------------- */
.gh-content .kg-button-card .kg-btn,
.gh-content .kg-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff !important;
    text-decoration: none;
    background-color: var(--brand-color);
    border: none;
    border-radius: 3px;
    transition: opacity 0.2s var(--animation-base);
}

.gh-content .kg-button-card .kg-btn:hover,
.gh-content .kg-btn-accent:hover {
    color: #fff !important;
    opacity: 0.9;
}

/* Always center the in-content button card */
.gh-content .kg-button-card {
    display: flex;
    justify-content: center;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Prev / next: long arrows with labels
   -------------------------------------------------------------------------- */
.navigation-link.navigation-long {
    display: inline-flex;
    flex-direction: column;
    gap: 0.8rem;
    color: var(--primary-text-color);
    text-decoration: none;
    transition: color 0.2s var(--animation-base);
}

.navigation-previous .navigation-long {
    align-items: flex-start;
}

.navigation-next .navigation-long {
    align-items: flex-end;
}

.navigation-long-arrow {
    display: block;
    line-height: 0;
}

.navigation-long-label {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.navigation-link.navigation-long:hover {
    color: var(--brand-color);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Comments ("Member discussion"): boxed card
   -------------------------------------------------------------------------- */
.gh-comments {
    padding: 3.2rem;
    margin-top: 6rem;
    border: 1px solid var(--light-gray-color);
    border-radius: 8px;
    background-color: var(--lighter-gray-color);
}

.gh-comments-header {
    padding-bottom: 1.6rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray-color);
}

@media (max-width: 640px) {
    .gh-comments {
        padding: 2rem 1.6rem;
    }
}

/* --------------------------------------------------------------------------
   Footer: social links on top, signup row, then copyright + powered-by
   -------------------------------------------------------------------------- */
.gh-foot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.gh-foot-inner .gh-social-links {
    justify-content: center;
}

.gh-foot-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--secondary-text-color);
}

.gh-powered-by {
    text-align: center;
}

/* --------------------------------------------------------------------------
   Unified button corner radius across the website (matches the image buttons)
   -------------------------------------------------------------------------- */
.gh-head-btn,
.gh-content .kg-btn,
.gh-content .kg-btn-accent,
.featured-see-more .button,
.form-button,
.single-cta-button,
.button {
    border-radius: 8px !important;
}

/* Footer copyright link */
.gh-copyright a {
    color: inherit;
    text-decoration: none;
}

.gh-copyright a:hover {
    color: var(--brand-color);
    text-decoration: underline;
}

/* Footer legal links separator */
.gh-copyright .gh-legal-sep {
    margin: 0 0.5em;
    opacity: 0.4;
}

/* Hide the Ghost Portal floating subscribe / sign-up button */
iframe[title="portal-trigger"] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   6. Discord banner (replaces the "Join the Community" section)
   -------------------------------------------------------------------------- */
.discord-banner {
    --discord-blurple: #5865f2;
    display: flex;
    align-items: center;
    gap: 2.4rem;
    margin: 5rem 0 1rem;
    padding: 2.4rem 2.8rem;
    text-decoration: none;
    background:
        radial-gradient(900px 500px at 75% 0%, rgba(124, 58, 237, 0.30), transparent 60%),
        linear-gradient(160deg, #241b4a, #1a1730);
    border: none;
    border-radius: 16px;
    transition: transform 0.25s var(--animation-base),
        box-shadow 0.25s var(--animation-base);
}

.discord-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -18px rgba(124, 58, 237, 0.6);
}

.discord-banner-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--brand-color);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.discord-banner-mark img {
    width: 30px;
    height: 30px;
}

.discord-banner-text {
    flex: 1 1 auto;
    min-width: 0;
}

.discord-banner-title {
    display: block;
    font-family: "Michroma", "Space Grotesk", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #fff;
}

.discord-banner-subtitle {
    display: block;
    margin-top: 0.7rem;
    font-size: 1.55rem;
    line-height: 1.45;
    color: #a9a4e6;
}

.discord-banner-note {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.45rem;
    line-height: 1.45;
    color: #847fa3;
}

.discord-banner-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    height: 48px;
    padding: 0 24px;
    font-size: 1.55rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    color: #1a1730;
    background: #fff;
    border-radius: 999px;
    transition: opacity 0.2s var(--animation-base),
        transform 0.2s var(--animation-base);
}

.discord-banner-cta:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #1a1730;
}

/* Tablet: tighten spacing */
@media (max-width: 820px) {
    .discord-banner {
        gap: 1.8rem;
    }
}

/* Mobile: stack into a centered card */
@media (max-width: 600px) {
    .discord-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.6rem;
        padding: 2.8rem 2rem;
    }
    .discord-banner-cta {
        width: 100%;
        justify-content: center;
    }
}
