/* ==============================
   eRIDE BIKE — THEME-EXTRA.CSS
   Custom design system styles that extend Tailwind.
   ============================== */

/* ── Glassmorphism ──────────────── */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Scroll reveal animation ────── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navigation ─────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-transform: uppercase;
    font-style: italic;
}

.nav-logo span {
    color: #2A7D4F;
}

/* Desktop dropdown */
.nav-group {
    position: relative;
}

.nav-group::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 60;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.nav-group:hover .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #e5e5e5;
    transition: all 0.3s ease;
}

.nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #2A7D4F;
    padding-left: 1.25rem;
}

/* Mobile burger overlay */
#mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
    z-index: 1000;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#mobile-menu.is-open {
    display: flex;
}

/* ── Hero Section ───────────────── */
.entry-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.entry-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.85) 100%);
}

.entry-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.entry-hero__title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
}

/* ── Article / Blog Cards ────────── */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: #2A7D4F;
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.blog-card__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.05);
}

.blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2A7D4F;
    margin-bottom: 0.5rem;
}

.blog-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title {
    color: #2A7D4F;
}

.blog-card__excerpt {
    font-size: 0.875rem;
    color: rgba(229, 229, 229, 0.6);
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card__footer {
    font-size: 0.75rem;
    color: rgba(229, 229, 229, 0.4);
    display: flex;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}

/* ── Article Single ─────────────── */
.entry-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #d4d4d4;
}

.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.03em;
}

.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e5e5e5;
    margin: 2rem 0 0.75rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: #2A7D4F;
    border-bottom: 1px solid rgba(42, 125, 79, 0.3);
}

.entry-content blockquote {
    border-left: 4px solid #2A7D4F;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(42, 125, 79, 0.07);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: rgba(229, 229, 229, 0.8);
}

.entry-content img {
    border-radius: 16px;
    margin: 2rem auto;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.75rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content code {
    background: rgba(255, 255, 255, 0.07);
    padding: 0.15em 0.4em;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85em;
}

/* ── CTA Button ──────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: #2A7D4F;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #236641;
    box-shadow: 0 0 24px rgba(42, 125, 79, 0.4);
    transform: scale(1.03);
    color: #ffffff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ── Product Page (CRO) ─────────── */
.product-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.product-hero__bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.product-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 50%, rgba(42, 125, 79, 0.15) 0%, transparent 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
}

/* Sticky CTA bar */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.sticky-cta.is-visible {
    transform: translateY(0);
}

/* Stars rating */
.stars {
    color: #F5A623;
    letter-spacing: 2px;
}

/* Accordion FAQ */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-trigger:hover {
    color: #2A7D4F;
}

.faq-trigger svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-trigger svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-size: 0.9375rem;
    color: rgba(229, 229, 229, 0.7);
    line-height: 1.7;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

/* ── Responsive ─────────────────── */
@media (max-width: 768px) {
    .entry-hero {
        min-height: 50vh;
    }

    .site-nav .desktop-menu {
        display: none;
    }

    .entry-hero__title {
        font-size: 2rem;
    }
}