/* =====================================================
   MistroAstro Universal Button System

   File: button.css

   Purpose:
   Provides one consistent button system throughout
   the MistroAstro platform.

   IMPORTANT:
   These styles are designed to work identically with:

   <a class="button button-primary">
   <button class="button button-primary">

   Page-specific CSS should control button placement,
   not button appearance.
===================================================== */


/* =====================================================
   1. Base Button
===================================================== */

.button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.6rem;

    min-height: 46px;
    min-width: 150px;

    padding: 0.8rem 1.4rem;

    border: 1px solid transparent;
    border-radius: 8px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    user-select: none;

    appearance: none;
    -webkit-appearance: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =====================================================
   2. Primary Button

   Main action:
   Continue
   Begin Mission
   Complete Mission
   Save & Continue
===================================================== */

.button-primary {

    background:
        linear-gradient(
            135deg,
            rgba(22, 119, 177, 0.95),
            rgba(13, 86, 138, 0.95)
        );

    color: #ffffff;

    border-color: rgba(102, 204, 255, 0.65);

    box-shadow:
        0 10px 24px rgba(0, 102, 170, 0.18);
}


.button-primary:hover,
.button-primary:focus-visible {

    color: #ffffff;

    border-color: #66ccff;

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(0, 122, 204, 0.28);
}


/* =====================================================
   3. Secondary Button

   Supporting actions:
   Previous
   Back
   Cancel
   Alternate choice
===================================================== */

.button-secondary {

    background: rgba(102, 204, 255, 0.04);

    color: #9fdcff;

    border-color: rgba(102, 204, 255, 0.30);
}


.button-secondary:hover,
.button-secondary:focus-visible {

    background: rgba(102, 204, 255, 0.08);

    color: #ffffff;

    border-color: rgba(102, 204, 255, 0.60);

    transform: translateY(-2px);
}


/* =====================================================
   4. Outline Button

   Lower-priority action:
   Review
   Learn More
   Optional action
===================================================== */

.button-outline {

    background: transparent;

    color: #d8b568;

    border-color: rgba(216, 181, 104, 0.65);
}


.button-outline:hover,
.button-outline:focus-visible {

    background: rgba(216, 181, 104, 0.08);

    color: #f0d58e;

    border-color: #d8b568;

    transform: translateY(-2px);
}


/* =====================================================
   5. Gold Button

   Special MistroAstro emphasis.

   Use sparingly for important platform-level actions,
   not ordinary mission navigation.
===================================================== */

.button-gold {

    background: #c8a96b;

    color: #020617;

    border-color: #c8a96b;

    box-shadow:
        0 10px 24px rgba(200, 169, 107, 0.18);
}


.button-gold:hover,
.button-gold:focus-visible {

    background: #e6c98b;

    color: #020617;

    border-color: #e6c98b;

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(200, 169, 107, 0.28);
}


/* =====================================================
   6. Button Sizes
===================================================== */

.button-small {

    min-height: 38px;
    min-width: 0;

    padding: 0.6rem 1rem;

    font-size: 0.85rem;
}


.button-large {

    min-height: 52px;

    padding: 0.95rem 1.7rem;

    font-size: 1rem;
}


/* =====================================================
   7. Full Width
===================================================== */

.button-full {

    width: 100%;
}


/* =====================================================
   8. Disabled State
===================================================== */

.button:disabled,
.button.disabled,
.button[aria-disabled="true"] {

    opacity: 0.45;

    cursor: not-allowed;

    pointer-events: none;

    transform: none;

    box-shadow: none;
}


/* =====================================================
   9. Keyboard Focus
===================================================== */

.button:focus-visible {

    outline: 3px solid rgba(102, 204, 255, 0.30);

    outline-offset: 3px;
}


/* =====================================================
   10. Button Forms

   Prevent forms containing buttons from introducing
   unexpected margins or spacing.
===================================================== */

.button-form {

    display: inline-flex;

    margin: 0;
    padding: 0;
}


/* =====================================================
   11. Mobile
===================================================== */

@media (max-width: 600px) {

    .button-mobile-full {

        width: 100%;

    }

}

/* =====================================================
   Continue Exploring — Button Alignment
===================================================== */

.home-continue-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}