/* ==========================================================================
   Nova OS Layout System
   ========================================================================== */

/* Main Desktop */
.desktop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    overflow: hidden;
}

/* ==========================================================================
   System Island (Top Center)
   ========================================================================== */
#nova-island-container {
    position: absolute;
    top: 20px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.nova-island {
    pointer-events: auto;
    height: 40px;
    background: var(--surface-glass);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--border-glass-strong);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 20px;
    box-shadow: var(--shadow-elevated), var(--shadow-inset);
    transition: all 0.3s var(--curve-spring);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.nova-island:hover {
    background: var(--surface-glass-hover);
    transform: scale(1.02);
}

.island-left, .island-center, .island-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.island-app-name {
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.island-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.island-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}

/* ==========================================================================
   Command Shelf (Bottom Center)
   ========================================================================== */
#nova-shelf-container {
    position: absolute;
    bottom: 24px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    z-index: 900;
    pointer-events: none;
}

.nova-shelf {
    pointer-events: auto;
    height: 64px;
    background: var(--surface-glass);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid var(--border-glass-strong);
    border-radius: 32px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    box-shadow: var(--shadow-elevated), var(--shadow-inset);
}

.shelf-item {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--curve-spring);
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.shelf-item svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    transition: transform 0.2s var(--curve-spring);
}

.shelf-item:hover {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    transform: translateY(-8px) scale(1.1);
}

.shelf-item:active {
    transform: translateY(-4px) scale(0.95);
}

.shelf-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.shelf-item.is-running::after {
    opacity: 0.5;
}

.shelf-item.is-active::after {
    opacity: 1;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ==========================================================================
   Spotlight Search
   ========================================================================== */
.spotlight-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.spotlight-modal {
    width: 600px;
    max-width: 90vw;
    background: var(--surface-glass);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--border-glass-strong);
    border-radius: 20px;
    box-shadow: var(--shadow-elevated), var(--shadow-inset);
    overflow: hidden;
    animation: slideDown 0.3s var(--curve-spring);
}

.spotlight-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 32px;
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 300;
    color: var(--text-primary);
    outline: none;
}

.spotlight-input::placeholder {
    color: var(--text-disabled);
}

.spotlight-results {
    max-height: 400px;
    overflow-y: auto;
}

.spotlight-item {
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    border-top: 1px solid var(--border-glass);
    transition: background 0.2s;
}

.spotlight-item:hover, .spotlight-item.selected {
    background: rgba(255, 255, 255, 0.05);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Notifications
   ========================================================================== */
.notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
    pointer-events: none;
}

.notification {
    background: var(--surface-glass);
    backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--border-glass-strong);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-elevated);
    pointer-events: auto;
    color: var(--text-primary);
    animation: slideInRight 0.4s var(--curve-spring);
}

.notification-title { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.notification-body { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Context Menu
   ========================================================================== */
.context-menu {
    position: absolute;
    background: var(--surface-glass);
    backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--border-glass-strong);
    border-radius: 12px;
    padding: 6px;
    min-width: 200px;
    box-shadow: var(--shadow-elevated), var(--shadow-inset);
    z-index: 3000;
    font-size: 13px;
    color: var(--text-primary);
}

.context-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.context-item:hover {
    background: var(--accent-primary);
}

.context-separator {
    height: 1px;
    background: var(--border-glass);
    margin: 4px 0;
}
