/* =========================================================
   MistroAstro — Public Discover Astrophotography
   File: css/discover-astrophotography.css
   Scope: discover-astrophotography.php only
   Updated: 2026-11-18 — reduced section spacing by 25%.
   ========================================================= */

.discover-page {
    overflow-x: hidden;
    background: var(--bg-dark, #071426);
    color: var(--text-light, #f5f8ff);
}

.discover-page .section { padding: clamp(3.375rem, 6vw, 6rem) 0; }
.discover-page .eyebrow {
    color: var(--astro-gold, #c8a96b);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.discover-page h1, .discover-page h2, .discover-page h3 { text-wrap: balance; }
.discover-page h2 {
    color: var(--astro-blue, #66ccff);
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    line-height: 1.15;
    margin: 1rem 0 1.7rem;
}
.discover-page p { line-height: 1.8; }

/* Hero: uses an image already referenced by the existing About stylesheet. */
.discover-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(638px, 69vh);
    padding: 6rem 0 4.5rem;
    isolation: isolate;
    background: #06101f url('../images/about/about-hero.jpg') center / cover no-repeat;
}
.discover-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(3,9,22,.65), rgba(3,9,22,.48) 45%, #071426 100%);
}
.discover-hero-content {
    max-width: 1100px;
    text-align: center;
    animation: discover-rise .9s ease-out both;
}
.discover-page .discover-hero h1 {
    max-width: 1050px;
    margin: 1.2rem auto 1.5rem;
    color: var(--astro-blue, #66ccff);
    font-size: clamp(3rem, 6vw, 5.7rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    text-shadow: 0 5px 24px rgba(0,0,0,.6);
}
.discover-lead {
    max-width: 780px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(1.2rem, 2.1vw, 1.6rem);
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* Story sections */
.discover-section-content { max-width: 880px; text-align: center; }
.discover-section-content > p:not(.eyebrow) {
    max-width: 790px;
    margin: 0 auto 1.3rem;
    color: rgba(255,255,255,.87);
    font-size: clamp(1.15rem, 1.7vw, 1.35rem);
}
.discover-introduction {
    background: radial-gradient(ellipse at 50% 0%, rgba(102,204,255,.10), transparent 65%);
}
.discover-wonders {
    background: linear-gradient(180deg, #071426, #0b1c32 50%, #071426);
}
.discover-wonders .section-header { text-align: center; margin-bottom: 3rem; }
.discover-wonders-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: clamp(1rem, 2vw, 2rem);
}
.discover-wonder {
    overflow: hidden;
    padding: 0 0 2rem;
    border: 1px solid rgba(200,169,107,.24);
    border-radius: 1.3rem;
    background: rgba(255,255,255,.035);
    text-align: center;
    transition: transform .25s ease, border-color .25s ease;
}
.discover-wonder:hover { transform: translateY(-5px); border-color: rgba(200,169,107,.65); }
.discover-wonder-image {
    aspect-ratio: 4 / 5;
    margin-bottom: 1.7rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* Gallery photographs supplied for the public discovery cards. */
.discover-wonder-moon {
    background-image: url("../images/gallery/moon-placeholder.jpg");
}
.discover-wonder-nebula {
    background-image: url("../images/gallery/crab-nebula.jpg");
}
.discover-wonder-galaxy {
    background-image: url("../images/gallery/m81-placeholder.jpg");
}
.discover-wonder h3 { margin: 0 1rem .8rem; color: var(--astro-gold, #c8a96b); font-size: 1.75rem; }
.discover-wonder p { max-width: 320px; margin: 0 auto; padding: 0 1.5rem; color: rgba(255,255,255,.86); font-size: 1.1rem; }
.discover-beginners { background: radial-gradient(ellipse at 50% 50%, rgba(200,169,107,.07), transparent 70%); }
.discover-journey { background: linear-gradient(180deg, #0b1c32, #071426); }
.discover-page .discover-closing {
    margin-top: 2.5rem !important;
    color: var(--astro-gold, #c8a96b) !important;
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-weight: 700;
}
@keyframes discover-rise { from {opacity:0; transform:translateY(20px)} to {opacity:1; transform:translateY(0)} }
@media (max-width: 800px) {
    .discover-wonders-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .discover-wonder-image { aspect-ratio: 5 / 4; }
    .discover-hero { min-height: 56.25vh; }
}
@media (prefers-reduced-motion: reduce) {
    .discover-hero-content { animation: none; }
    .discover-wonder { transition: none; }
    .discover-wonder:hover { transform: none; }
}


/* =====================================================
   Section 6 — Your Adventure Starts Here
===================================================== */

.discover-next-step {
    background:
        radial-gradient(
            ellipse at 50% 35%,
            rgba(200, 169, 107, 0.12),
            transparent 65%
        ),
        #071426;

    text-align: center;
}

.discover-next-step-content {
    max-width: 900px;
    margin-inline: auto;
}

.discover-next-step h2 {
    max-width: 800px;
    margin: 0 auto 1.6rem;

    color: var(--astro-blue, #66ccff);
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    line-height: 1.16;
}

.discover-next-step p:not(.eyebrow) {
    max-width: 760px;
    margin: 0 auto 1.4rem;

    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.12rem, 1.8vw, 1.35rem);
    line-height: 1.8;
}

/* Account Creation and Exit Buttons */

.discover-next-step-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.discover-next-step-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 3.7rem;
    padding: 0.9rem 1.6rem;

    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
}

/* Exit MistroAstro Button */

.discover-exit-button {
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.discover-exit-button:hover,
.discover-exit-button:focus-visible {
    border-color: var(--astro-gold, #c8a96b);
    color: var(--astro-gold, #c8a96b);
}

/* Mobile Layout */

@media (max-width: 520px) {

    .discover-next-step-actions {
        flex-direction: column;
    }

    .discover-next-step-actions .btn {
        width: 100%;
    }

}
