/* Stealth Header & Footer Core */

/* Nano Bar */
.stealth-nano-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transition: all 0.3s ease;
}

.stealth-nano-bar:hover {
    transform: translateX(-50%) scale(1.05);
}

.nano-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
}

.nano-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .stealth-nano-bar {
        display: none;
        /* Mobile only usually */
    }
}

/* Smart Banner */
.stealth-banner {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

/* Neural Search */
.stealth-modal {
    display: none;
    /* Hidden by default */
}

.stealth-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    backdrop-filter: blur(5px);
}

.stealth-search-container {
    width: 600px;
    max-width: 90%;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    animation: modalSlide 0.2s forwards;
}

@keyframes modalSlide {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#stealth-search-input {
    width: 100%;
    border: none;
    font-size: 20px;
    padding: 10px;
    outline: none;
    border-bottom: 2px solid #eee;
}

/* Dynamic Island */
#stealth-dynamic-island-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
    /* Let clicks pass through outside the island */
}

#stealth-dynamic-island {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 300px;
    max-width: 900px;
}

.island-expanded {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.island-logo {
    font-weight: 800;
    text-decoration: none;
    color: #000;
    margin-right: 20px;
}

.island-nav a,
.island-actions a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.2s;
}

.island-nav a:hover,
.island-actions a:hover {
    color: #000;
}

.island-contact {
    display: none;
    /* Hidden by default */
}

/* Scrolled State (Mini Mode) */
#stealth-dynamic-island.scrolled:not(.expanded) {
    min-width: 0;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

#stealth-dynamic-island.scrolled:not(.expanded) .island-expanded {
    display: none;
}

#stealth-dynamic-island.scrolled:not(.expanded) .island-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.island-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

/* Spinner for Admin */
.spinner.is-active {
    display: inline-block;
    visibility: visible;
}