/* ==========================================================================
   Neostella Buttons Block — Frontend Styles
   Block: neo/buttons

   Gradient-bordered pill buttons with Inter Tight font.
   Coral #F74B4A  ->  Light Blue #397CFD
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. @font-face — Inter Tight (loaded from Google Fonts CDN)
   -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   2. Container
   -------------------------------------------------------------------------- */

.neo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.neo-buttons *,
.neo-buttons *::before,
.neo-buttons *::after {
    box-sizing: border-box;
}

/* Alignment */
.neo-buttons--align-left {
    justify-content: flex-start;
}

.neo-buttons--align-center {
    justify-content: center;
}

.neo-buttons--align-right {
    justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   3. Gradient Button — outer wrapper
   --------------------------------------------------------------------------

   Technique: The outer element is positioned relative. A ::before
   pseudo-element draws the gradient border behind it. The inner
   element has a transparent background so the page background
   shows through, while the gradient is only visible as a 2px border.
   -------------------------------------------------------------------------- */

.neo-btn-gradient {
    display: inline-block;
    position: relative;
    border-radius: 999px;
    background: transparent;
    transition: box-shadow 0.35s ease, transform 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

/* Gradient border via pseudo-element */
.neo-btn-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(135deg, #F74B4A 0%, #397CFD 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.neo-btn-gradient:hover {
    box-shadow:
        0 0 16px rgba(247, 75, 74, 0.35),
        0 0 32px rgba(57, 124, 253, 0.25);
    transform: translateY(-1px);
}

.neo-btn-gradient:active {
    transform: translateY(0);
    box-shadow:
        0 0 8px rgba(247, 75, 74, 0.25),
        0 0 16px rgba(57, 124, 253, 0.15);
}

.neo-btn-gradient:focus-visible {
    outline: 2px solid #397CFD;
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Inner Button — transparent background, text only
   -------------------------------------------------------------------------- */

.neo-btn-inner {
    display: inline-block;
    position: relative;
    background: transparent;
    color: #ffffff !important;
    border-radius: 999px;
    font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.25s ease;
}

.neo-btn-gradient:hover .neo-btn-inner {
    background: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   4a. Shape Variant — Square (rectangle, no rounding)
   -------------------------------------------------------------------------- */

.neo-btn-square {
    border-radius: 0;
}

.neo-btn-square::before {
    border-radius: 0;
}

.neo-btn-square .neo-btn-inner {
    border-radius: 0;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   5. Size Variants
   -------------------------------------------------------------------------- */

/* Small */
.neo-btn--sm .neo-btn-inner {
    padding: 8px 22px;
    font-size: 0.8125rem;
    line-height: 1.4;
}

/* Medium (default) */
.neo-btn--md .neo-btn-inner {
    padding: 12px 34px;
    font-size: 0.9375rem;
    line-height: 1.4;
}

/* Large */
.neo-btn--lg .neo-btn-inner {
    padding: 16px 48px;
    font-size: 1.0625rem;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .neo-buttons {
        gap: 12px;
    }

    .neo-btn--lg .neo-btn-inner {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .neo-buttons {
        gap: 10px;
    }

    .neo-btn--md .neo-btn-inner {
        padding: 10px 26px;
        font-size: 0.875rem;
    }

    .neo-btn--lg .neo-btn-inner {
        padding: 12px 30px;
        font-size: 0.9375rem;
    }
}

/* --------------------------------------------------------------------------
   7. Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .neo-btn-gradient,
    .neo-btn-inner {
        transition: none;
    }

    .neo-btn-gradient:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   8. Print
   -------------------------------------------------------------------------- */

@media print {
    .neo-btn-gradient::before {
        background: none;
        border: 1px solid #999;
        -webkit-mask: none;
        mask: none;
        padding: 0;
    }

    .neo-btn-gradient {
        box-shadow: none;
    }

    .neo-btn-inner {
        background: none;
        color: #000 !important;
        padding: 4px 12px;
    }
}
