/* ==========================================================================
   Melted Moon - Shared Site Components (Header, Mobile Navigation & Footer)
   ========================================================================== */

/* Ambient Background System */
site-background {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

#geomCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 1.0;
}

.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
}

site-header {
    display: block;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 10px;
    overflow: visible;
}

site-footer {
    display: block;
    width: 100%;
    margin-top: auto;
}

/* Site Header - Strictly locked slim height so header bar NEVER expands */
header.site-header {
    position: relative;
    width: 100%;
    height: 48px;
    max-height: 48px;
    z-index: 100;
    background: rgba(6, 6, 8, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-hairline, rgba(255, 255, 255, 0.08));
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    box-sizing: border-box;
}

.nav-container {
    width: 100%;
    max-width: 960px;
    height: 48px;
    max-height: 48px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    box-sizing: border-box;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    height: 48px;
    position: relative;
    z-index: 105;
    overflow: visible;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand:hover {
    opacity: 0.95;
}

/* On index.html: Brand is hidden at the top so it doesn't duplicate the hero logo/title, fades in on scroll */
.nav-brand.brand-scroll-reveal {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
}

.nav-brand.brand-scroll-reveal.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Logo enlarged by additional +10%: 88px height, protrudes 10px top and 30px bottom over the 48px header bar */
.nav-brand-logo {
    height: 88px;
    width: auto;
    aspect-ratio: 759 / 648;
    margin-top: -10px;
    margin-bottom: -30px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(255, 255, 255, 0.25));
    transition: transform 0.25s ease, filter 0.25s ease;
    pointer-events: auto;
}

.nav-brand:hover .nav-brand-logo {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 22px rgba(255, 255, 255, 0.5));
}

.nav-brand-name {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-mono, 'Space Grotesk', monospace);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted, #8e8e96);
    padding: 6px 14px;
    border-radius: var(--radius-full, 9999px);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Mobile 3-Bar Hamburger Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm, 6px);
    padding: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 102;
}

.nav-hamburger:hover,
.nav-hamburger:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Fullscreen Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 6, 8, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px 32px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.mobile-nav-tag {
    font-family: var(--font-mono, 'Space Grotesk', monospace);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--text-faint, #52525b);
}

.mobile-nav-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm, 6px);
    color: #ffffff;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--radius-sm, 6px);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.mobile-nav-item:active,
.mobile-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.mobile-nav-num {
    font-family: var(--font-mono, 'Space Grotesk', monospace);
    font-size: 0.76rem;
    color: var(--text-faint, #52525b);
}

.mobile-nav-label {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.mobile-nav-subtext {
    font-family: var(--font-mono, 'Space Grotesk', monospace);
    font-size: 0.72rem;
    color: var(--text-faint, #52525b);
}

.mobile-nav-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-socials a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm, 6px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.mobile-nav-socials a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-nav-socials img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: invert(1) brightness(1.2);
}

/* Site Footer */
footer.site-footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 20px;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.footer-content {
    width: 100%;
    max-width: 960px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-family: var(--font-mono, 'Space Grotesk', monospace);
    font-size: 0.76rem;
    color: var(--text-faint, #52525b);
}

.footer-copy {
    color: var(--text-faint, #52525b);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm, 6px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.footer-social-btn img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: invert(1) brightness(1.2);
    transition: filter 0.2s ease;
}

.footer-social-btn:hover img {
    filter: invert(1) brightness(1.8) drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.footer-link {
    color: var(--text-muted, #8e8e96);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* Responsive Overrides (Mobile) */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }

    .nav-hamburger {
        display: flex !important;
    }

    .mobile-nav-overlay {
        display: flex !important;
    }

    site-header {
        padding-top: 8px;
    }

    header.site-header {
        height: 44px !important;
        max-height: 44px !important;
    }

    .nav-container {
        height: 44px !important;
        max-height: 44px !important;
        padding: 0 16px !important;
    }

    .nav-brand {
        height: 44px !important;
    }

    .nav-brand-logo {
        height: 77px !important;
        width: auto !important;
        aspect-ratio: 759 / 648;
        margin-top: -8px !important;
        margin-bottom: -25px !important;
        margin-left: -2px !important;
        margin-right: 0 !important;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
}

/* Portfolio Notice / Announcement Banner */
.portfolio-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md, 8px);
    background: rgba(10, 10, 16, 0.38) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 240, 255, 0.05);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.portfolio-notice-box:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 32px rgba(0, 240, 255, 0.12);
}

.notice-indicator-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
    margin-top: 6px;
    flex-shrink: 0;
    animation: noticePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes noticePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 12px #00f0ff;
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
        box-shadow: 0 0 4px #00f0ff;
    }
}

.notice-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notice-title {
    font-family: var(--font-mono, 'Space Grotesk', monospace);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00f0ff;
    font-weight: 600;
}

.notice-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #d4d4d8);
    line-height: 1.55;
    font-weight: 300;
}

/* ==========================================================================
   Universal Glass Transparency & High-Contrast Interactable Elements System
   - Surfaces/Cards/Panels: Translucent glass (0.36 alpha, 8px blur) so the
     animated constellation network shines cleanly through on all pages.
   - Truly Interactable Elements: Low transparency / high opacity (0.88-1.0)
     ensuring buttons, inputs, tags, and active states are always recognizable.
   ========================================================================== */

/* 1. Translucent Surfaces & Containers */
.glass-card,
.info-card,
.form-card,
.side-card,
.cta-box,
.portal-card-h,
.relic-item,
.editorial-row,
.form-success {
    background: rgba(10, 10, 16, 0.36) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

.relic-preview-box {
    background: rgba(12, 12, 18, 0.25) !important;
}

.filter-bar {
    background: rgba(10, 10, 14, 0.32) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.portal-icon-large {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* 2. Interactive Feedback on Hover (Elevates to High Opacity on Focus/Hover) */
.relic-item:hover,
.portal-card-h:hover {
    background: rgba(24, 24, 36, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* 3. Genuinely Interactable Elements: High Opacity / Solid Recognition */
/* Filter Buttons */
.filter-btn {
    background: rgba(24, 24, 34, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #e4e4e7 !important;
    opacity: 1 !important;
    transition: all 0.25s ease !important;
}

.filter-btn:hover {
    background: rgba(36, 36, 52, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
}

.filter-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35) !important;
}

/* Primary Action Buttons */
.btn-submit,
.submit-btn,
.btn-primary,
.cta-btn,
.action-btn {
    background: #ffffff !important;
    color: #050508 !important;
    font-weight: 700 !important;
    opacity: 0.98 !important;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.20) !important;
    transition: all 0.2s ease !important;
}

.btn-submit:hover,
.submit-btn:hover,
.btn-primary:hover,
.cta-btn:hover,
.action-btn:hover {
    background: #f4f4f5 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 255, 255, 0.35) !important;
}

/* Secondary Action & Social Buttons */
.band-link-btn,
.copy-pill-btn,
.contact-social-item {
    background: rgba(24, 24, 34, 0.90) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
}

.band-link-btn:hover,
.copy-pill-btn:hover,
.contact-social-item:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* Modal Close & Actions */
.modal-close-btn {
    background: rgba(30, 30, 42, 0.90) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.modal-close-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

.relic-modal-card {
    background: rgba(14, 14, 20, 0.92) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
}

/* Form Inputs, Selects & Textareas */
input.form-input,
select.form-input,
textarea.form-input,
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(18, 18, 26, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transition: all 0.25s ease !important;
}

input.form-input:focus,
select.form-input:focus,
textarea.form-input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background: rgba(22, 22, 32, 0.96) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.30) !important;
}

/* Status Badges & Informational Pills */
.relic-cat-badge,
.relic-status-badge,
.status-tag-mini,
.eyebrow-tag,
.eyebrow-badge {
    background: rgba(18, 18, 26, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    color: #f4f4f5 !important;
}
