/* =========================================================
   NNOBAE PROMO
   Shared promo strip and inline link pointing to nnobae.com.
   Used on the homepage, projects, portfolio and Nnobae pages.
   ========================================================= */

.nnobae-promo {
    --np-green: #5bb780;
    --np-green-bright: #7fd3a1;
    --np-ink: #0f1712;
    --np-text: #e9f3ec;
    --np-muted: #a9bfb0;

    position: relative;
    padding: clamp(1.25rem, 3vw, 2rem) 0;
    background:
        radial-gradient(circle at 12% 50%, rgba(91, 183, 128, 0.22), transparent 45%),
        linear-gradient(120deg, #0f1712 0%, #142219 60%, #0f1712 100%);
    color: var(--np-text);
    border-top: 1px solid rgba(91, 183, 128, 0.18);
    border-bottom: 1px solid rgba(91, 183, 128, 0.18);
    overflow: hidden;
}

.nnobae-promo-inner {
    width: min(100% - 32px, 1200px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.nnobae-promo-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(91, 183, 128, 0.14);
    border: 1px solid rgba(91, 183, 128, 0.32);
    color: var(--np-green-bright);
}

.nnobae-promo-mark svg {
    width: 26px;
    height: 26px;
}

.nnobae-promo-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.nnobae-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--np-green-bright);
}

.nnobae-promo-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--np-green-bright);
    box-shadow: 0 0 0 4px rgba(127, 211, 161, 0.18);
}

.nnobae-promo-title {
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
}

.nnobae-promo-title strong {
    color: var(--np-green-bright);
    font-weight: 700;
}

.nnobae-promo-text {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--np-muted);
}

.nnobae-promo-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    background: var(--np-green);
    color: var(--np-ink);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nnobae-promo-cta:hover {
    background: var(--np-green-bright);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(91, 183, 128, 0.32);
}

.nnobae-promo-cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.nnobae-promo-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Inline link used inside project cards */

.nnobae-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    margin-left: 1.25rem;
    color: #3f9566;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(63, 149, 102, 0.35);
}

.nnobae-site-link:hover {
    color: #2f7a52;
    border-bottom-color: currentColor;
}

.nnobae-site-link:focus-visible {
    outline: 2px solid #3f9566;
    outline-offset: 3px;
    border-radius: 4px;
}

.nnobae-promo .nnobae-visually-hidden,
.nnobae-site-link .nnobae-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .nnobae-promo-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .nnobae-promo-mark {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .nnobae-promo-copy {
        flex-basis: calc(100% - 44px - 1rem);
    }

    .nnobae-promo-cta {
        width: 100%;
        justify-content: center;
    }

    .nnobae-site-link {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nnobae-promo-cta {
        transition: none;
    }

    .nnobae-promo-cta:hover {
        transform: none;
    }
}

/* Portfolio cards already style their action links */

.portfolio-project-link.nnobae-site-link {
    margin: 0;
    border-bottom: 0;
    color: #3f9566;
}
