/* =========================================================
   desktop.css — navigation icons, recycle bin, taskbar
========================================================= */

.navigation-icons {
    position: fixed;
    left: 30px;
    top: 45%;
    transform: translateY(-50%) scale(var(--ui-scale));
    transform-origin: left center;
    width: 310px;
    height: 375px;
    z-index: 9999;
}

/* exact position for each icon */
.icon {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: inherit;
    white-space: nowrap;
    transition: transform .18s ease;
}

.icon:nth-child(1) { left: 21%; top: 26%; }   /* home */
.icon:nth-child(2) { left: 58%; top: 43%; }   /* music */
.icon:nth-child(3) { left: 21%; top: 60%; }   /* vn */
.icon:nth-child(4) { left: 56%; top: 79%; }   /* outfits */
.icon:nth-child(5) { left: 21%; top: 93%; }   /* journal */

.icon img {
    display: block;
    width: 72px;
    opacity: 0.9;
    transition: transform .18s ease, opacity .18s ease;
}

.icon p {
    margin: 0;
    font-size: 16px;
    color: #eaeaea;
    opacity: 0.8;
    text-align: center;
    transition: opacity .18s ease;
}

.icon:hover { transform: translate(-50%, -50%) translateY(-3px); }
.icon:hover img { transform: scale(1.08); opacity: 1; }
.icon:hover p { opacity: 1; }
.icon:active { transform: translate(-50%, -50%) translateY(0px) scale(0.96); }

@keyframes iconGlow {
    from { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .55)); }
    to   { filter: drop-shadow(0 0 11px rgba(255, 255, 255, .95)); }
}

.icon.is-active img {
    opacity: 1;
    animation: iconGlow 2.6s ease-in-out infinite alternate;
}

.icon.is-active p { opacity: 1; }

.recycle-bin {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 3000;
    transform: scale(min(var(--ui-scale), 1.3));
    transform-origin: bottom right;
}

.recycle-bin img {
    width: 92px;
    display: block;
    margin-bottom: -15px;  
    opacity: 0.9;
}

.recycle-bin p {
    margin: 0;
    font-size: 16px;
    color: #eaeaea;
}

.footer-image {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("../Images/footer.png");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
}

/* one tab per open window (current page + any vn review popups) */

.footer-window-tabs {
    position: absolute;
    left: 7.5vw;
    width: 84vw;
    top: 0;
    height: 60px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6px;
    gap: 6px;
    overflow: hidden;
}

.taskbar-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 250px;   /* fixed width so tabs stay consistent */
    padding: clamp(6px, 1.2vh, 13px) 8px;
    background: #626262;  
    border: 1px solid #333;
    border-radius: 2px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(11px, 1.1vw, 16px);   /* scales with the tab's own width */
    color: #eaeaea;
    cursor: pointer;
}

.taskbar-tab[data-tab-id="currentPage"] {
    cursor: default; 
}

.taskbar-tab img {
    width: clamp(12px, 1.6vw, 20px);
    height: clamp(12px, 1.6vw, 20px);
    flex: 0 0 auto;
    object-fit: contain;
}

.taskbar-tab span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.taskbar-tab.is-active {
    background: #626262;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .5);
}
