/**
 * Courage Garage — Bike Page Unified Styles
 * All sections rendered by bike-page.js
 */

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */

.bp-hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 3rem;
}

.bp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
}

.bp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #222427 0%, rgba(34, 36, 39, 0.5) 45%, transparent 80%),
        linear-gradient(to right, rgba(34, 36, 39, 0.7) 0%, transparent 60%);
}

.bp-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(230, 12, 12, 0.4);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-family: monospace;
    font-size: 0.65rem;
    color: #E60C0C;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    width: fit-content;
}

.bp-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E60C0C;
    animation: pulse 2s infinite;
}

.bp-title {
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.88;
    color: white;
    max-width: 700px;
}

.bp-subtitle-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.bp-subtitle {
    font-family: monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-left: 2px solid #E60C0C;
    padding-left: 0.75rem;
}

.bp-price-inline {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: rgba(230, 12, 12, 0.15);
    border: 1px solid rgba(230, 12, 12, 0.3);
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
}

.bp-price-inline span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    margin-left: 2px;
}

.bp-description {
    font-family: 'Public Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    line-height: 1.7;
    border-left: 3px solid #E60C0C;
    padding-left: 1rem;
    font-weight: 300;
}

.bp-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bp-feature-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
}

.bp-hero-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.bp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.bp-back-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.bp-back-link .material-symbols-outlined {
    font-size: 1rem;
}

/* Desktop Specs Card */
.bp-specs-card {
    display: none;
}

@media (min-width: 1024px) {
    .bp-hero {
        align-items: center;
        min-height: 100svh;
    }

    .bp-hero-content {
        max-width: 55%;
    }

    .bp-specs-card {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        position: absolute;
        right: 2.5rem;
        bottom: 3rem;
        z-index: 10;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 2rem;
        border-radius: 1.5rem;
        min-width: 260px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    }

    .bp-specs-card-label {
        font-family: monospace;
        font-size: 0.65rem;
        color: #E60C0C;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 0.75rem;
    }

    .bp-specs-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

/* ════════════════════════════════════════
   SECTION COMMON
════════════════════════════════════════ */

.bp-gallery-section,
.bp-perks-section,
.bp-specs-section,
.bp-cta-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.bp-section-header {
    margin-bottom: 2.5rem;
}

.bp-section-tag {
    display: block;
    font-family: monospace;
    font-size: 0.65rem;
    color: #E60C0C;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.bp-section-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: white;
    line-height: 1;
}

/* ════════════════════════════════════════
   GALLERY
════════════════════════════════════════ */

.bp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.bp-gallery-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.03);
}

.bp-gallery-main {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.bp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s;
    filter: grayscale(0.3);
}

.bp-gallery-item:hover img {
    transform: scale(1.04);
    filter: grayscale(0);
}

@media (min-width: 768px) {
    .bp-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .bp-gallery-main {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
    }
}

/* ════════════════════════════════════════
   PERKS
════════════════════════════════════════ */

.bp-perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.bp-perk {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.bp-perk:hover {
    border-color: rgba(230, 12, 12, 0.3);
    background: rgba(230, 12, 12, 0.04);
}

.bp-perk-icon {
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.bp-perk-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .bp-perks-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bp-perk {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
    }
}

/* ════════════════════════════════════════
   SPECS FULL (for mobile / unified display)
════════════════════════════════════════ */

.bp-specs-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bp-specs-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    overflow: hidden;
}

.bp-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem;
    background: rgba(34, 36, 39, 1);
    transition: background 0.2s;
}

.bp-spec-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.bp-spec-label {
    font-family: monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.35);
}

.bp-spec-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .bp-specs-section {
        display: none;
        /* Desktop sees the hero card instead */
    }
}

/* ════════════════════════════════════════
   CTA BOTTOM
════════════════════════════════════════ */

.bp-cta-section {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 6rem;
}

.bp-cta-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.bp-cta-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: white;
}

.bp-cta-sub {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    font-weight: 300;
}

.bp-price-badge {
    position: absolute;
    right: 1.5rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
}

.bp-price-num {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    color: white;
    line-height: 1;
    letter-spacing: -0.05em;
}

.bp-price-unit {
    font-family: monospace;
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}