/* ═══════════════════════════════════════════════════════════
   JOIN BUTTON — Premium navbar CTA
   Golden gradient border, glass morphism, breathing glow.
   ═══════════════════════════════════════════════════════════ */

.nav-join-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 19px;
    margin-left: 10px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
    isolation: isolate;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 4px rgba(191, 149, 63, 0.12);
}

/* ── Glass body ────────────────────────────── */
.nav-join-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(
        135deg,
        rgba(119, 83, 10, 0.18) 0%,
        rgba(255, 210, 119, 0.10) 40%,
        rgba(191, 149, 63, 0.08) 100%
    );
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    z-index: -1;
}

/* ── Aurora golden border (animated) ──────── */
.nav-join-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1.5px;
    background: linear-gradient(
        270deg,
        #77530a,
        #ffd277,
        #bf953f,
        #fcf6ba,
        #b38728,
        #77530a
    );
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: joinBorderFlow 4s linear infinite;
    z-index: -1;
}

/* ── Inner shimmer sweep ───────────────────── */
.nav-join-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.nav-join-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: -110%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 210, 119, 0.08) 20%,
        rgba(252, 246, 186, 0.18) 50%,
        rgba(255, 210, 119, 0.08) 80%,
        transparent 100%
    );
    animation: joinShimmer 3.5s ease-in-out infinite;
    transform: skewX(-20deg);
}

/* ── Outer pulse ring (disabled — minimal mode) */
.nav-join-pulse::after {
    display: none;
}

/* ── Text ──────────────────────────────────── */
.nav-join-text {
    position: relative;
    z-index: 3;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #b38728 0%, #fcf6ba 35%, #fff 55%, #fcf6ba 75%, #bf953f 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: joinTextShine 4s linear infinite;
    filter: none;
    transition: filter 0.3s ease;
}

/* ── Hover ─────────────────────────────────── */
.nav-join-btn:hover {
    box-shadow: 0 0 8px rgba(191, 149, 63, 0.2);
    transform: scale(0.83) translateY(-1px);
}

.nav-join-btn:hover::before {
    background: linear-gradient(
        135deg,
        rgba(119, 83, 10, 0.28) 0%,
        rgba(255, 210, 119, 0.18) 40%,
        rgba(191, 149, 63, 0.14) 100%
    );
}

.nav-join-btn:hover .nav-join-text {
    filter: drop-shadow(0 0 4px rgba(252, 246, 186, 0.4));
}

.nav-join-btn:hover .nav-join-pulse::after {
    animation: none;
    border-color: rgba(255, 210, 119, 0.6);
    box-shadow: 0 0 8px rgba(255, 210, 119, 0.2);
}

/* ── Active press ──────────────────────────── */
.nav-join-btn:active {
    transform: scale(0.77);
    box-shadow: 0 0 3px rgba(191, 149, 63, 0.15);
}

/* ── Animations ────────────────────────────── */
@keyframes joinBreathe {
    0%, 100% { box-shadow: 0 0 4px rgba(191, 149, 63, 0.12); }
    50%      { box-shadow: 0 0 6px rgba(191, 149, 63, 0.18); }
}

@keyframes joinBorderFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes joinShimmer {
    0%   { left: -110%; }
    60%  { left: 110%; }
    100% { left: 110%; }
}

@keyframes joinPulseRing {
    0%   { transform: scale(1);    opacity: 0.5; }
    60%  { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

@keyframes joinTextShine {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .nav-join-btn {
        padding: 5px 16px;
        margin-left: 6px;
    }
    .nav-join-text {
        font-size: 9px;
        letter-spacing: 1px;
    }
}
