/* Downloads Stack - macOS Style */
.downloads-stack {
    position: fixed;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 12px;
    z-index: 9997;
    min-width: 180px;
    animation: stackAppear 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    --arrow-left: 28px;
}

@keyframes stackAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.downloads-stack::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: var(--arrow-left, 28px);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 20px solid rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: #1d1d1f;
}

.stack-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.stack-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.stack-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stack-item-name {
    font-size: 11px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    font-weight: 500;
}
